-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freezing when in certain chunks #565
Comments
This is a real issue and it's been plaguing my server for the past week! I really hope the dev team looks into this. I believe it is due to some combination of sodium and the following mods: bewitchment, mo structures, and their dependencies. Please check this issue which has some more details: MoriyaShiine/bewitchment#44 (comment) This bug is causing some form of world corruption overtime which makes the server get progressively laggy and it has to do with loading/unloading chunks or generating new ones. If you try to stop and start the server, it will start but will spam "Preparing world spawn 0%" for a second and then just say it is done. When a player joins the server will crash. Moving the save to singleplayer and running the optimize world -> erase cache tool will fix the corrupted data and the server will run smoothly again. This issue is a huge pain in the ass to track down since the client just hangs and doesn't generate a crash report since you are forced to kill the instance. The log isn't super helpful. And the server crash report is useless (just spams: "server tick loop" or something). |
Also turning smooth lighting off reduces the frequency of the freezes but does not fix it entirely |
You say you're running this world on a server? Sodium is client side only, so while it can be involved in the client freeze you talk about it shouldn't have any involvement in the world corruption. Though maybe the server doesn't like some particular circumstance of how the client disconnects. I can see you're using a lot of mods that rely on the fabric rendering api, which sodium does not currently support (and I don't see indium in your list). This is likely to make those mods work incorrectly, possibly leading to client crashes. It'd take more investigation to figure out whether this particular client freeze is related to frapi support, but, I'm surprised your game is working that well at all. |
The client side freeze happens in single player as well. I assumed the client freeze is causing the server world corruption but maybe they are separate issues. I'll look into if adding indium will fix the freeze or not. Do you know of any good ways to track down bugs related to players joining/leaving worlds? |
Alright so adding Indium and comp500's fork of sodium fixed my issue with client freezing. I think it was some corrupt advancement data that was causing the server crash on player join. |
Well that's your issue solved, it doesn't seem very related to the original report though. |
latest.log This is the log |
I see you're using Barium 0.1.0, which I would suggest is a poor choice - a version this old from before their rebranding comes with a lot of thread safety concerns. I'm not sure how much it even applies to a client though. |
yes, the server is also using barium |
Older versions of that mod had a number of very serious issues, unless you can reproduce the issue without it sodium likely isn't at fault. On another note, I would highly recommend updating the version of it on your server as soon as possible given said issues. |
Had a second case on the discord that points to it likely being Barium, though it wasn't in use at the time of the error - just earlier in the world's use. |
This mirrors vanilla behavior (see `PalettedContainer.get(index)`). Fixes CaffeineMC#565
This mirrors vanilla behavior (see `PalettedContainer.get(index)`). Fixes #565
…feineMC#608) This mirrors vanilla behavior (see `PalettedContainer.get(index)`). Fixes CaffeineMC#565
…feineMC#608) This mirrors vanilla behavior (see `PalettedContainer.get(index)`). Fixes CaffeineMC#565
Expected Behavior
I can play.
Actual Behavior
The game freezes.
Reproduction Steps
Go to a certain chunk.
Attachments
https://pastebin.com/k7qw6wfU
System Information
The text was updated successfully, but these errors were encountered: