Skip to content

Resource loss occurs when outputting from a Mekanism crusher to an almost full compacting drawer (Storage Drawers) #618

Description

@Code7737

pretty much what I described in the title.
recently checked the logs and found the following block (with minor number deviations) being spammed every trigger (10 seconds). it's inputting into a two-tier compacting drawer (meaning that it has a limit of 2048 compacted versions of the block).
it's also being constantly filled to the brim.
this crusher is the only machine producing crushed deepslate, but, ofc, since it's a mekanism machine it has multiple output slots, so maybe that's what's causing it?
hope this is enough to reproduce the issue!

= [20:51:06] [Server thread/ERROR] [sfm/]: !!!RESOURCE LOSS HAS OCCURRED!!! TRANSFORMER/sfm@4.34.0/ca.teamdman.sfml.ast.OutputStatement.moveTo(OutputStatement.java:349)
=== Summary ===
Simulated extraction : 0 minecraft:air
Simulated insertion remainder : 0 minecraft:air (moved=0) <-- the output block lied here
Actual extraction : 30 techopolis:crushed_deepslate
Actual insertion : 27 minecraft:air
Actual insertion remainder : 3 techopolis:crushed_deepslate (sfm:item:minecraft:air) <-- this is what was lost
=== Manager ===
Level: minecraft:overworld (ServerLevel[b oosb])
Position: BlockPos{x=-18, y=63, z=-34}
=== Input Slot ===
Slot: 0
Position: BlockPos{x=-3, y=65, z=-5}
Direction: up
Capability: mekanism.common.capabilities.proxy.ProxyItemHandler@14adfb5f (mekanism.common.capabilities.proxy.ProxyItemHandler)
Block Entity: mekanism.common.tile.factory.TileEntityItemStackToItemStackFactory (mekanism:advanced_crushing_factory)
Block: mekanism.common.block.prefab.BlockFactoryMachine$BlockFactory (mekanism:advanced_crushing_factory)
Block State: Block{mekanism:advanced_crushing_factory}[active=true,facing=south,fluid_logged=empty]
=== Output Slot ===
Slot: 0
Position: BlockPos{x=-19, y=63, z=-31}
Direction: null
Capability: com.jaquadro.minecraft.storagedrawers.capabilities.PlatformDrawerItemHandler@5b71ffab (com.jaquadro.minecraft.storagedrawers.capabilities.PlatformDrawerItemHandler)
Block Entity: com.jaquadro.minecraft.storagedrawers.block.tile.PlatformBlockEntityController (storagedrawers:controller)
Block: com.jaquadro.minecraft.storagedrawers.block.BlockController (storagedrawers:controller)
Block State: Block{storagedrawers:controller}[facing=west]
This can be silenced in the SFM config.
Operators can use /sfm config edit to open a GUI to change the SFM config while the game is running.
This can be caused by output inventory logic encountering an integer overflow when moving large quantities of items.
The SFM issue tracker can be found at https://github.com/TeamDman/SuperFactoryManager/issues because this shouldn't be happening lol

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmod compatPlaying nice with other mods

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions