Server crash
Romz24 opened this issue ยท 16 comments
From time to time my server crashes and it seems to be related to your mod.
Minecraft version: 1.16.3
Mod version: 1.3.4+fabric-1.16.2
Fabric API: 0.24.1+build.412-1.16
Fabric loader: 0.10.1+build.209 and 0.10.3+build.211
crash-2020-10-22_18.31.00-server.txt
crash-2020-10-25_06.46.00-server.txt
I think that you are running out of memory because, allthough these crashes happen in this mod, they are always caused by java trying to allocate more memory.
Could you check your available RAM?
In Java there is also an option called "-Xmx" which controls how many of your actual memory can be used by java. Maybe it is misconfigured.
I will probably add an option to limit the amount of memory that can be consumed by the fluid source finder.
My server has 16GB of RAM, very strange that this is not enough.
UPD: The server has now crashed again.
crash-2020-10-25_09.04.37-server.txt
UPD2: I set a limit (-Xmx) of 10 GB, I'll see what happens. Hope this helps solve the problem.
UPD3: Limiting the allocated memory didn't help.
Thanks for confirming!
I just made a new version which limits the number of blocks checked by default.
https://github.com/LolHens/mc-fluid-physics/releases/tag/1.3.6
Should be ready in about 15 minutes.
I also saw that you were using lithium. I haven't tested this mod with lithium on 1.16.3 yet which is what I'll probably do next.
Also the OutOfMemoryError thing was just a guess. Somehow the exact error information is not visible in the log. It shows java.lang.Error but that could be any fatal error. Most of the time it's an OutOfMemoryError.
Updated the mod, and crashed again. And this looks like a different problem (but it is not certain). But the problem is clearly related to your mod, judging by the log.
well not directly. It might be an incompatibility because lithium is one of the more invasive mods allthough it is usually pretty stable but I saw it in the crashlog and that it replaces some of minecrafts underlying functions for performance reasons. I have not yet seen anyone else run into this crash so it might be a little harder for me to reproduce.
In fact, the problem is complex, it can crash the server immediately, or maybe after a long time. I will try to remove lithium, see how it works without it.
So, a very strange situation. I removed lithium, the server crashes after starting after a few seconds.
Today I tested it again in more detail, having previously removed the mods lithium and phosphor, the problem remained. The server still crashes after a while. And the problem is definitely not related to memory, at the time of the fall, the server uses within 4GB
I have currently removed the mod from the build. I can say that it is difficult to achieve a crash in a regular game, and it takes a long time. To get a more or less fast crash, I tried to detonate nuclear bombs in the ocean from the Modern Industrialization mod
I have tested this with the same versions and mods and sadly could not yet reproduce this Error.