[Bug]: Pregenning fails to kill the watchdog thread
Raidobw2 opened this issue ยท 1 comments
Describe the bug
The watchdog thread will not be killed and result in the server closing at some point
Steps to reproduce
- Login to the server on an op account
- Run /pregen overworld 0 5000 0 5000 1 true
- Observe a timeout on the client
- Observe the server crashes
Expected behaviour
To not crash
Screenshots
[11Jul2022 14:36:33.859] [Server thread/INFO] [net.creeperhost.minetogether.MineTogetherCommon/]: We're about to kill the Server Watchdog. Don't worry, we'll resuscitate it! The next error is normal.
[11Jul2022 14:37:32.644] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.644] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.644] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.648] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
[11Jul2022 14:37:32.644] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.653] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
[11Jul2022 14:37:32.644] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.653] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
[11Jul2022 14:37:32.646] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[11Jul2022 14:37:32.646] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
[11Jul2022 14:37:32.646] [Server Watchdog/ERROR] [net.minecraft.server.dedicated.ServerWatchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
Version
minetogether-forge-1.18.2-5.2.7.jar
Minecraft Version
1.18.2
ModLoader Version
Forge 40.1.52
Additional Information
This is relayed from FTBTeam/FTB-Modpack-Issues#1102.
I'm really unsure if you can fix that, but reporting here in any case if there is room for improvement / changes.
It does seem to me that config in server.properties is more in reach of the user than the application, so I understand if this is hard to code. Maybe the user can be warned with a notice when pregenning, that turning off the watchdog will be useful while the pregeneration occurs, since it does look hard to "control" the watchdog in-game when it doesn't look like its to be handled there.
Thanks for any attention to this ticket in any case and have a good day