Skip to content

Wrong behavior in Processing Patterns when double requesting a resource made in a machine with a full buffer #1225

@EspiMKII

Description

@EspiMKII

Describe the bug

Originated from a report of a friend having trouble with Modern Industrialization recipe, I've tried to reproduce the bug he encountered.

Example recipe: smelting recipes, via a Mekanism's Ultimate Smelting Factory (because i dont feel like waiting for that long... I've wrested with this bug for 3 days straight).

While an Autocrafter is attached directly to the Smelter, requesting 2 batches of the same item (and make sure both batches will make the smelter full, so the Autocrafter cannot push all the ingredients into the machine at once) results in 1 of the 2 jobs never finish. Upon closer inspection via the Autocrafting Monitor, it seems that the network never pushed enough materials into the Smelter, and thus not enough outputs were retrieved. The behavior of the 2 jobs in the Monitor will be shown in the reconstruction video below.

Note, this bug was not very consistent to reproduce, and I had a lot of trouble setting up my testing instance to do it semi-consistently. From my modlist without the next 3 mods, I tried adding Cable Tiers and Refined Types, then Modern Industrialization, then removed all 3 of them, then added MI again, then removed MI again, and only now is the reproduction somewhat consistent.

How can we reproduce this bug or crash?

Cleanroom testing instance. Modlist:
Architectury [13.0.8]
Balm [21.0.54]
Configured [2.6.2]
Crash Assistant [1.10.20]
Embeddium [1.0.15+mc1.21.1]
FTB Chunks [2101.1.13]
FTB Essentials [2101.1.8]
FTB Library [2101.1.26]
FTB Teams [2101.1.7]
Ferrite Core [7.0.2]
GJEB (GammaJustExtremeBright) [1.3.0.38]
GuideME [21.1.15]
Inventory Tweaks Refoxed [1.21.1-1.3.2]
Jade [15.10.3+neoforge]
Just Enough Items [19.25.1.328]
KeyBind Bundles [1.3.1]
Mekanism [10.7.17]
Mekanism: Generators [10.7.17]
Mekanism: Tools [10.7.17]
Refined Storage [2.0.0]
Refined Storage - JEI Integration [1.0.0]
Refined Storage - Mekanism Integration [1.1.1]
Refined Storage - Quartz Arsenal [1.0.6]
Simple Backups [1.21-4.0.23]
StepUp Mod [1.0.0]
SuperMartijn642's Config Library [1.1.8]
SuperMartijn642's Core Lib [1.1.18+a]
Trash Cans [1.0.18+c]
TrashSlot [21.1.4]

Reconstruction Video: https://youtu.be/Wr7bykXjGYU

  1. Set up a simple RS network with a controller, some storage, a Grid, and an Autocrafter hooked to a processing machine, obviously with valid patterns.
  2. Request a resource twice, ensuring both requests should fill up the machine's buffer completely (so the Monitor will say "Machine doesn't accept resource").
  3. Observe the jobs' behaviors in the Autocrafting Monitor.
  4. Observe in the Grid if the system has obtained the correct amount of product.

What Minecraft version is this happening on?

Minecraft 1.21.1

What NeoForge or Fabric version is this happening on?

Neoforge 21.1.215

What Refined Storage version is this happening on?

2.0.0

What modpack and modpack version, if any, are you using?

n/a

Relevant log output

https://mclo.gs/GmRVk9I
(not sure how useful this would be)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions