question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[1.16.5] Invalidating storage cache on server thread causes hang after startup

See original GitHub issue

Issue description:

To preface this: We are running server software that works with forge and spigot to allow spigot plugins to load (Mohist). While I don’t think a plugin could be the cause (as we are using an extremely small number of them that all load before the server finishes booting and it still happens without them), I feel it is relevant information as Mohist modifies aspects of forge to work to my understanding.

While my server is booting, there are approximately 2-3 minutes of the server thread being frozen while refined storage is invalidating storage caches. Most of them appear to happen due to a CONNECTED_STATE_CHANGED event or a REDSTONE_MODE_OR_NETWORK_ENERGY_CHANGE. I believe it is refined storage as the debug log only has output from refined storage in this time where the server is frozen and all this processing is happening on the main server thread

What happens:

Server freezes after it finishes loading up

What you expected to happen:

The server to not freeze for multiple minutes

Steps to reproduce:

  1. Install refined storage
  2. No idea why it happens.

Version (make sure you are on the latest version before reporting):

  • Minecraft: 1.16.5
  • Forge: 36.2.0
  • Refined Storage: 1.9.13

Does this issue occur on a server? [yes/no] yes

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

Seems to start around the Network at position BlockPos... parts where it invalidates the cache of the networks. Each network appears to hang the server for ~30 seconds while processing. Debug Log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22

github_iconTop GitHub Comments

1reaction
egshelscommented, Aug 13, 2021

Same issue, but increasing max tick time prevents a crash, instead causing the server to run at extremely low TPS for around 20 minutes. My server does not use Mohist.

0reactions
Darkerecommented, Oct 15, 2021

The Eventbus seems to be causing various problems in 1.16…

Nothing we can do about Mohist though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug]: [Forge 1.16.5] Server crashes almost every time it ...
This has been happening for a really long time now and it's getting frustrating.
Read more >
Getting this crash report when joining and then getting kicked ...
Getting this crash report when joining and then getting kicked for "invalid player data" I have no clue what is causing the issue...
Read more >
Minecraft Crashed Due to Refined Storage - Java Edition ...
Hey all, I am still fairly new when it comes to modded Minecraft, however, from what I can tell my world crashed while...
Read more >
Server Crash 1.16.5 Null corruption? (HELP)
Made a mod pack and everything runs fine. When I stop the server (I do it correctly and wait for everything to save)...
Read more >
Minecraft Server crashing overnight (using too many threads?)
There is insufficient memory for the Java Runtime Environment to continue. Get a better server (install more RAM), or check if there aren't ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found