Refined Storage

Refined Storage

115M Downloads

Crazy Lag and Crashing in Grid / Crafting Grid when displaying Items

EspiMKII opened this issue ยท 13 comments

commented

Describe the bug

I have hundreds of millions of items in my RS network (and no, they're not high nbt, I'm smart enough to know not to put those in my storage). They're stored in a big 1048m disk from the addon Extra Disks. I also have a lot of items going into my network at once as a result of heavy automation.

When I open my Grid, without any searching filters (I use JEI 2-way sync mode for my Grids), obviously the Grid will try to display all my items. Upon opening the Grid, sometimes it will completely tank the fps for a few seconds, leading to a very jittery experience. Furthermore, if I try to click the Resource type button to change it to display Items, the game freezes and I have to crash the game myself.

Taking my 1048m disk off of my drive fixes this issue, which reinforces my belief that the Items and Item IO are causing this issue.

Mods I added on my own to the modpack (since there's nowhere else to put this):
cabletiers-neoforge-1.21.1-0.4.1.jar
cc-tweaked-1.21.1-forge-1.116.1.jar
ExtraDisks-1.21.1-4.0.14.jar
ExtraStorage-1.21.1-5.0.7.jar
gjeb-neoforge-1.21.1-1.3.0.38.jar
industrial-foregoing-souls-1.21.1-1.10.4.jar
interdimensionalwirelesstransmitter-neoforge-1.21.1-0.1.5.jar
mekanism_extras-1.21.1-1.2.6.jar
mekmm-1.21.1-1.0.5.jar
polymorph-neoforge-1.1.0+1.21.1.jar
refined-types-1.21.1-0.2.1.jar
refinedstorage-curios-integration-1.0.0.jar
refinedstorage-jei-integration-neoforge-1.0.0.jar
refinedstorage-mekanism-integration-1.1.0.jar
refinedstorage-neoforge-2.0.0.jar
refinedstorage-quartz-arsenal-neoforge-1.0.6.jar
universalgrid-neoforge-1.21.1-0.2.3.jar

How can we reproduce this bug or crash?

  1. Set up a functional RS network.
  2. Put some big item disks in the network.
  3. Put a loooott of stuff in it, both in quantity and types (perhaps via Creative Vending Upgrades from Functional Storage, Creative Module from Modular Routers, etc... and use a mix of different Importer tiers and External Storage).
  4. Continuously open and close a Grid and observe the fps dropping effect (if you don't have a craptop like me then maybe it wouldn't be very noticeable).
  5. Click the Resource type button to change the displayed resources to Items and observe the game freeze.

What Minecraft version is this happening on?

Minecraft 1.21.1

What NeoForge or Fabric version is this happening on?

Neoforge 21.1.206

What Refined Storage version is this happening on?

2.0.0

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

https://www.curseforge.com/minecraft/modpacks/all-the-mods-10-sky/files/7057042

Relevant log output

I couldn't find any relevant log in what I've read, but I'll just upload the things listed by ATM's Crash Assistant anyway.
latest.log: https://mclo.gs/YOGWemA
debug.log: https://mclo.gs/MDHfOY4 (head) and https://mclo.gs/QU8im8G (tail)
KubeJS client.log https://mclo.gs/FsoFva8
KubeJS server.log https://mclo.gs/IvVabTG
KubeJS startup.log https://mclo.gs/6BlNh0y
crash_assistant_app.log https://mclo.gs/zlDA9q6
modlist.txt https://mclo.gs/C6rTbau
win_event.txt https://mclo.gs/3TE8Fh5
commented

I would either need a world download or a spark report from your client.

commented

You seem to be storing FE in your system as well; what happens if you don't do that and leave the items as-is?

commented

then the issue is resolved... huh.

commented

Looking at your debug log tail, I can see lots of logging about FE changes. Sending an update packet everytime the FE number changes is probably a bit much. (The logging overhead is probably also causing problems)

commented

Is this an issue to be resolved or something the player needs to optimize for?

commented

It's something we will solve.

commented

Update:

I eventually had to make a remedy for this issue by making a separate network just for energy.

As per the Spark profiler request, I did try moving my energy disk back in my main network and... it just bricks my game and I can't join my world anymore. Thankfully, atm10s has simplebackups.

Logs for the brick:
ATM10 To the Sky - 1.5.1b crashed. The logs have been uploaded to mclo.gs:

latest.log | debug.log head / tail (~13MB & ~69k lines) | crash-2025-10-04_23.08.13-server.txt | KubeJS: client.log / server.log / startup.log | crash_assistant_app.log | modlist.txt

Mod list changes beyond the modpack:

18 added, 0 removed, 0 updated.
commented

After restoring my world to the point where I put my energy disk back in my main storage again, here's the spark profiler:

https://spark.lucko.me/zIAzThKqkD

commented

Can you make a client profile? It seems like a server profile, without anything really lagging at first glance. If it's fps lag, I'd need the client profile.

commented

Here's the client profiler: https://spark.lucko.me/rAbgidR4ap

commented

That looks fine, so I assume you're encountering server-side lags? Maybe using the spark profiler on the server with --only-ticks-over 60 would provide more information.

commented
commented

That still looks fine, the only RS related stuff that really shows up is from cable tiers, but it looks like that is already fixed/improved on GitHub.