refinedmods / refinedstorage

An elegant solution to your hoarding problem.
https://refinedmods.com/refined-storage
MIT License
359 stars 177 forks source link

Issue Interacting with Grids when network busy #2806

Closed MadJinx1 closed 3 years ago

MadJinx1 commented 3 years ago

Context:

I have a Mekanism 5x ore generation system that needs cobblestone exported from the network. I have a separate system for generating cobblestone when needed that pumps into a drawer that is connected to the network via external storage. When processing ore, cobblestone is requested about once every 2 seconds and the resulting ingots are imported into the system about twice as fast.

Issue:

While the above is occurring, if I open a grid I see 0 count stacks of cobblestone added being added and I cannot pull anything out by hand. Through my experimentation with cutting off parts of the network to diagnose, this seems to stop when I cut off the cobblestone exporter.

Steps to reproduce:

  1. have network that has multiple connections (external storages, importers and exporters)
  2. have network export items (larger amounts last longer and effect is more visible)
  3. attempt to interact with a grid (have seen in crafting grid, pattern grid and wireless crafting grid from refined storage addons)

Versions:

Other Mods connected to the network:

Other Mods that may be related:

Does this issue occur on a server? haven't tested

If a (crash)log is relevant for this issue, link it here: N/A

raoulvdberge commented 3 years ago

@ScoreUnder any idea if this has anything to do with your PR?

ScoreUnder commented 3 years ago

Unfortunately I think it might be. I'm taking a look at it now, but I don't really know much about mekanism, so I can't find any way to reproduce it. Using just importers, exporters and constructors I can't seem to get the same thing to happen.

There are a few things I want to understand about the nature of the bug:

raoulvdberge commented 3 years ago

@MadJinx1 Any info on this?

DustRaven commented 3 years ago

I have the same issue, but in my case it appears when I have an exporter with a crafting card which exports bone dust into an attached Storage Drawer. If I have the grid opened, the 0-item stack appears and shortly after, 3 bone meal appear. This repeats (new 0-item stack, new bone meal stack) until I close the grid.

As soon as the first 0-item stack appears, I cannot interact with the grid anymore, with or without shift.

Poke5555 commented 3 years ago

im not sure if im having the exact same issue but whenever i export any item for more than a couple minutes the exporter slows down to only 1 export every 2 seconds, changing the upgrades in it doesnt do anything and the only way ive found to fix it is to break the exporter and replace it and having to do that every few minutes to export millions of items is kinda annoying.

ScoreUnder commented 3 years ago

I still haven't managed to reproduce this yet (I'll give it another go today, with Storage Drawers in particular) but in the meantime, here's a build with my GUI performance changes (#2705) removed: https://gurren.score.moe/jenkins/job/refinedstorage/job/mc1.16-gui-perf-reverted/1/artifact/build/libs/refinedstorage-1.9.12+1.jar

Note that this is an unofficial build, I'm not a maintainer or member of this project in any capacity.

That build might be able to give us a clear "yes" or "no" as to whether it's the changes I've made that have introduced this bug, which will narrow down the search for it in the code. Or it could change the nature of the bug, which would equally provide a clue into what is happening here.

Separate from that, if anyone has a means to provide a world save where it happens, or a screenshot of a setup that causes it, that would also help a lot. World saves can be large and often personal, so I understand if that's a "no". (They may need to be uploaded with a provider that supports large files like google drive or mega)

Knito58 commented 3 years ago

External storage from "router reborn mod" seems to block the grid sometimes. If the system crafted something I can pull it out. But items from the "external storage" are (mostly, not always) blocked from being used directly.