MCMT

MCMT

95.3k Downloads

Server crash upon joining

apertureos opened this issue ยท 1 comments

commented

Hi, I'm running a 1.15.2-forge-31.2.45 server with MCMT 0.18.60. Whenever the server starts and I attempts to join, console is spammed heavily before the entire server freezes. Then, the server crashes due to a single tick surpassing 90 seconds. The server appears to start fine, though. It also runs for a few seconds before the freeze, and I am capable of loading in. I've added the syncfu file as well, as without it I was unable to load in at all. I also tested with version 0.17.54, and the same thing happened.

commented

Ok, so this is a fun bug I've seen before but the crash log doesn't seem to indicate what actually caused it

To explain:

  • The dedicated server will hard terminate if a tick takes more than 90s to complete. (this is called a watchdog)
  • MCMT pauses the main tick thread until all execution is complete (to avoid multiple full ticks occuring in parallel)
  • If something goes wrong during the parallel ticking MCMT never unpauses, and thus the watchdog crashes the server due to timeout

The issue is you can clearly see that "server thread" is waiting for the end of tick phaser. But none of the actual threadpool threads are doing anything

Normally when this occurs you can see that something is stuck or the like.

Very odd

I'll try adding more debug code