Freeze on player join
Closed this issue ยท 5 comments
My server froze today right when a player joined. The thread dump stacktrace seems to support the theory that it's caused by joining. The freeze is under CraftHumanEntity.hasPermission() and what is I'm guessing a database call or something
[11:37:46] [LoginProcessingThread/INFO]: UUID of player starmask is c6cfffdf-62ee-41df-958c-4155aa73c7fb
[11:38:03] [Paper Watchdog Thread/ERROR]: The server has stopped responding!
[11:38:03] [Paper Watchdog Thread/ERROR]: Please report this to https://github.com/PaperMC/Paper/issues
[11:38:03] [Paper Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[11:38:03] [Paper Watchdog Thread/ERROR]: Paper version: git-Paper-1460 (MC: 1.12.2)
[11:38:03] [Paper Watchdog Thread/ERROR]: ------------------------------
[11:38:03] [Paper Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[11:38:03] [Paper Watchdog Thread/ERROR]: ------------------------------
[11:38:03] [Paper Watchdog Thread/ERROR]: Current Thread: Server thread
[11:38:03] [Paper Watchdog Thread/ERROR]: PID: 19 | Suspended: false | Native: false | State: WAITING
[11:38:03] [Paper Watchdog Thread/ERROR]: Stack:
[11:38:03] [Paper Watchdog Thread/ERROR]: sun.misc.Unsafe.park(Native Method)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
[11:38:03] [Paper Watchdog Thread/ERROR]: me.lucko.luckperms.lib.caffeine.cache.LocalAsyncLoadingCache$LoadingCacheView.get(LocalAsyncLoadingCache.java:400)
[11:38:03] [Paper Watchdog Thread/ERROR]: me.lucko.luckperms.common.caching.AbstractCachedData.getPermissionData(AbstractCachedData.java:193)
[11:38:03] [Paper Watchdog Thread/ERROR]: me.lucko.luckperms.bukkit.model.permissible.LPPermissible.hasPermission(LPPermissible.java:168)
[11:38:03] [Paper Watchdog Thread/ERROR]: org.bukkit.craftbukkit.v1_12_R1.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:112)
[11:38:03] [Paper Watchdog Thread/ERROR]: me.kangarko.chatcontrol.final. .CoM3.const(SourceFile:418)
[11:38:03] [Paper Watchdog Thread/ERROR]: me.kangarko.chatcontrol.final. .bf.onPreLogin(SourceFile:76)
[11:38:03] [Paper Watchdog Thread/ERROR]: com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor513.execute(Unknown Source)
[11:38:03] [Paper Watchdog Thread/ERROR]: org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
[11:38:03] [Paper Watchdog Thread/ERROR]: co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[11:38:03] [Paper Watchdog Thread/ERROR]: org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[11:38:03] [Paper Watchdog Thread/ERROR]: org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:527)
[11:38:03] [Paper Watchdog Thread/ERROR]: org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:512)
[11:38:03] [Paper Watchdog Thread/ERROR]: protocolsupport.protocol.packet.handler.AbstractLoginListenerPlay.tryJoin(AbstractLoginListenerPlay.java:121)
[11:38:03] [Paper Watchdog Thread/ERROR]: protocolsupport.protocol.packet.handler.AbstractLoginListenerPlay.tick(AbstractLoginListenerPlay.java:93)
[11:38:03] [Paper Watchdog Thread/ERROR]: protocolsupport.zplatform.impl.spigot.network.handler.SpigotLoginListenerPlay.e(SpigotLoginListenerPlay.java:70)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:255)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:150)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:941)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:427)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767)
[11:38:03] [Paper Watchdog Thread/ERROR]: net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665)
[11:38:03] [Paper Watchdog Thread/ERROR]: java.lang.Thread.run(Thread.java:748)
It would help if you could provide the plugins you use...
I had similar issues with a plugin in the past, so it may be a similar thing here...
https://pastebin.com/12CiEJwU happened again
Seems to be locked waiting on a ForkJoinPool, but the only other tasks executing on those threads relate to net.cosmicconquest.starships.projectile.Projectile
and com.boydti.fawe.util.TaskManager.sync
- perhaps related?
There's not really any reason why the computations being executed by LP should hang on login.