[1.16.5] Invalidating storage cache on server thread causes hang after startup
See original GitHub issueIssue 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:
- Install refined storage
- …
- 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:
- Created 2 years ago
- Comments:22
Top GitHub Comments
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.
The Eventbus seems to be causing various problems in 1.16…
Nothing we can do about Mohist though.