MohistMC / Mohist

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API, formerly known as Thermos/Cauldron/MCPC+
https://mohistmc.com
GNU General Public License v3.0
1.28k stars 206 forks source link

[1.12.2] Server stops responding then crashes #467

Closed Globibluk closed 3 years ago

Globibluk commented 4 years ago

Describe the bug While playing, the server stops responding, then crashes. That's totally random, as no particular events seems to trigger this.

To Reproduce Steps to reproduce the behavior:

  1. Just play.

Expected behavior No crash.

Info (please complete the following information):

Additional context Only overworld is loaded, pregenerated with Worldborder. Run on Oracle JRE 8 for ARM as running on raspberry pi 4 4go ram / 2go zram. Runs like a charm, very few lags (0.5 sec each 10 min approx). There's no machinery / redstone yet as it is a small and new server (2-3 players).

Start file content: java -XX:+UnlockExperimentalVMOptions -XX:ActiveProcessorCount=4 -Xmx4096M -jar Mohist.jar

Tell me if I can help with other logs.

Globibluk commented 4 years ago

Here is the stack:

14:05:28 ERROR: The server has stopped responding! 14:05:28 ERROR: Mohist version: git-Mohist-1.12.2-41827ed (MC: 1.12.2) 14:05:28 ERROR: Memory using: 1041MB/1528MB/3641MB

14:05:28 ERROR: Server thread dump (Look for plugins here before reporting to Mohist!):

14:05:28 ERROR: Current Thread: Server thread 14:05:28 ERROR: PID: 20 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Entire Thread Dump:

14:05:28 ERROR: Current Thread: process reaper 14:05:28 ERROR: PID: 160 | Suspended: false | Native: false | State: TIMED_WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: AE Compass Service 14:05:28 ERROR: PID: 157 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: Forge Chunk I/O Executor Thread-2 14:05:28 ERROR: PID: 146 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: Forge Chunk I/O Executor Thread-1 14:05:28 ERROR: PID: 145 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: Mohist Watchdog Thread 14:05:28 ERROR: PID: 36 | Suspended: false | Native: false | State: RUNNABLE

14:05:28 ERROR: sun.management.ThreadImpl.dumpThreads0(Native Method)

14:05:28 ERROR: Current Thread: Server console handler 14:05:28 ERROR: PID: 23 | Suspended: false | Native: true | State: RUNNABLE 14:05:28 ERROR: Thread is waiting on monitor(s): 14:05:28 ERROR: Locked on:java.io.BufferedInputStream.read(BufferedInputStream.java:265) 14:05:28 ERROR: Locked on:jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:166) 14:05:28 ERROR: Locked on:jline.internal.InputStreamReader.read(InputStreamReader.java:257) 14:05:28 ERROR: Locked on:jline.internal.InputStreamReader.read(InputStreamReader.java:194)

14:05:28 ERROR: java.io.FileInputStream.readBytes(Native Method)

14:05:28 ERROR: Current Thread: TerminalConsoleWriter - 2 14:05:28 ERROR: PID: 24 | Suspended: false | Native: false | State: RUNNABLE

14:05:28 ERROR: Current Thread: DestroyJavaVM 14:05:28 ERROR: PID: 22 | Suspended: false | Native: false | State: RUNNABLE

14:05:28 ERROR: Current Thread: Server thread 14:05:28 ERROR: PID: 20 | Suspended: false | Native: false | State: WAITING 14:05:28 ERROR: Thread is waiting on monitor(s): 14:05:28 ERROR: Locked on:org.cache2k.core.HeapCache.put(HeapCache.java:933)

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: Server Infinisleeper 14:05:28 ERROR: PID: 21 | Suspended: false | Native: false | State: TIMED_WAITING

14:05:28 ERROR: java.lang.Thread.sleep(Native Method)

14:05:28 ERROR: Current Thread: NonBlockingInputStreamThread 14:05:28 ERROR: PID: 18 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: java.lang.Object.wait(Native Method)

14:05:28 ERROR: Current Thread: Snooper Timer 14:05:28 ERROR: PID: 16 | Suspended: false | Native: false | State: TIMED_WAITING

14:05:28 ERROR: java.lang.Object.wait(Native Method)

14:05:28 ERROR: Current Thread: Mohist Async Task Handler Thread - 1 14:05:28 ERROR: PID: 15 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: sun.misc.Unsafe.park(Native Method)

14:05:28 ERROR: Current Thread: Signal Dispatcher 14:05:28 ERROR: PID: 4 | Suspended: false | Native: false | State: RUNNABLE

14:05:28 ERROR: Current Thread: Finalizer 14:05:28 ERROR: PID: 3 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: java.lang.Object.wait(Native Method)

14:05:28 ERROR: Current Thread: Reference Handler 14:05:28 ERROR: PID: 2 | Suspended: false | Native: false | State: WAITING

14:05:28 ERROR: java.lang.Object.wait(Native Method)

14:05:28 INFO: Java has been asked to exit (code 0) 14:05:28 INFO: Exit trace:

ishland commented 4 years ago

It seems like it is stuck by a mod or a plugin. Can you reproduce this bug on a pure forge server?

Globibluk commented 4 years ago

I'll try do test this, but it could be long as the crashes are random. Thanks for tip.

Globibluk commented 4 years ago

Ok it looks like Opencomputers generates the issue. Maybe the problem comes from the fact it can't download native lua librairies for Arm. If anyone is using computercraft with Arm without problem, please contact me.

Globibluk commented 4 years ago

Sadly it wasn't Opencomputers related. Error happened again this morning. I'm still investigating.

Globibluk commented 4 years ago

Ok, I've done a few tests, but still not located the (maybe) faulty mod. The issue doesn't appear on a magma server, so it's surely an implementation issue.

Shawiizz commented 4 years ago

Can you reproduce this without any mods and plugins ?

Globibluk commented 4 years ago

Sadly, i don't have enough players willing to play on a vanilla server, so i can't tell :/

Shawiizz commented 4 years ago

Ok ok, do you have an idea from where this bug comes ? And did this bug reappear since you created this issue ?

Globibluk commented 4 years ago

The only thing I know are that it only seems to happen when there's more than one player connected. It's likely a mod issue, but it is not triggered by a special action. I know that's little help, but as I seem to be the only one to have this issue, you may close it if you think it's not relevant.

jupjohn commented 3 years ago

I've also seen this happen recently on a FTB Revelation server. The mods in common with the ones reported here are:

AE2
Baubles
Botania
Forgelin
Immersive Engineering
Industrialcraft
JEI
Mantle
Tinkers' Construct
Thaumcraft
TwilightForest

If I have some spare time I'll look at running a server for each one and having people idle on it. It's not easy to reproduce though so who knows if I'll see it.