Server Hang when stopping
TheLostInPlace opened this issue ยท 5 comments
#9 or something similar seems to be happening again in 1.0.17. The last thing the server prints is "Shutting down map thread" and it just hangs.
Edit: Upon using Ctrl-C to end process, the console prints this https://i.imgur.com/gXzIr3w.png
Edit2: This is using the Fabric version of FTBBackups.
I have been unable to reproduce this issue, however, I have added a little more logging to help track down the issue in the next version.
I can't grantee that this is the same issue as I am on Forge and not Fabric, but I ended up having my server crash while shutting down after I disabled automatic backups. It was a little hard to track down as although they were written to the console, the stack trace, and the additional logging message added in 1.0.17/1.0.18 were not written to the log files.
Stack trace from the console:
> java.lang.NullPointerException: Cannot invoke "net.creeperhost.ftbbackups.org.quartz.Scheduler.isShutdown()" because "net.creeperhost.ftbbackups.FTBBackups.scheduler" is null
at TRANSFORMER/[email protected]/net.creeperhost.ftbbackups.FTBBackups.killOutThreads(FTBBackups.java:131)
at TRANSFORMER/[email protected]/net.creeperhost.ftbbackups.FTBBackups.lambda$init$1(FTBBackups.java:46)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at TRANSFORMER/[email protected]/dev.architectury.event.EventFactory.invokeMethod(EventFactory.java:53)
at TRANSFORMER/[email protected]/dev.architectury.event.EventFactory$1.handleInvocation(EventFactory.java:62)
at MC-BOOTSTRAP/[email protected]/com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:89)
at TRANSFORMER/jdk.proxy3/jdk.proxy3.$Proxy110.stateChanged(Unknown Source)
at TRANSFORMER/[email protected]/dev.architectury.event.forge.EventHandlerImplCommon.event(EventHandlerImplCommon.java:95)
at TRANSFORMER/[email protected]/dev.architectury.event.forge.__EventHandlerImplCommon_event_ServerStoppingEvent.invoke(.dynamic)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
at TRANSFORMER/[email protected]/net.minecraftforge.server.ServerLifecycleHooks.handleServerStopping(ServerLifecycleHooks.java:116)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:664)
at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244)
at java.base/java.lang.Thread.run(Thread.java:833)
I would like to reopen it due to reproduce it on:
Fabric 1.19.2 + ftbbackups2-fabric-1.19.2-1.0.23
[11:27:17 INFO] [Server thread]: [FTB Chunks] [dev.ftb.mods.ftbchunks.core.mixin.UtilMixin#handler$eeb000$ftbchunks$shutdownExecutorsFTBC] Shutting down map thread
And stuck.
Hello,
This is also happening on fabric 1.20.1 v1.0.23, Every time I close the server it hangs and I have to kill it
latest.log