CloudNet
CloudNet copied to clipboard
PlayerExecutor#connect causing deadlock
Stacktrace
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: The server has stopped responding!
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: Please report this to PaperSpigot directly!
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: PaperSpigot version: git-PaperSpigot-445 (MC: 1.8.8)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: ------------------------------
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: Server thread dump (Look for plugins here before reporting to PaperSpigot!):
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: ------------------------------
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: Current Thread: Server thread
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: PID: 43 | Suspended: false | Native: false | State: WAITING
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: Stack:
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/jdk.internal.misc.Unsafe.park(Native Method)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.locks.LockSupport.park(LockSupport.java:221)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1864)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:4013)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3961)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1898)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2072)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//eu.cloudnetservice.driver.network.rpc.defaults.rpc.DefaultRPCChain.fireSync(DefaultRPCChain.java:167)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: eu.cloudnetservice.modules.bridge.platform.PlatformPlayerExecutor$RPC_BRIDGE/0x00007f1c0fb94400.connect(Unknown Source)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: eu.darkcube.system.lobbysystem.util.server.DefaultServerInformation.connectPlayer(DefaultServerInformation.java:97)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: eu.darkcube.system.lobbysystem.npc.ConnectorNPC$3.run(ConnectorNPC.java:176)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: app//net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.lang.Thread.runWith(Thread.java:1583)
[22:03:39] [PaperSpigot Watchdog Thread/ERROR]: [email protected]/java.lang.Thread.run(Thread.java:1570)
Actions to reproduce
I can't reproduce this. Happened the first time, I assume it is some sort of deadlock caused by a race condition, but I haven't had a look at the code
CloudNet version
[14.08 22:14:27.201] INFO :
[14.08 22:14:27.203] INFO : CloudNet Blizzard 4.0.0-RC11-SNAPSHOT e7f1bf0c
[14.08 22:14:27.205] INFO : Discord: <https://discord.cloudnetservice.eu/>
[14.08 22:14:27.208] INFO :
[14.08 22:14:27.209] INFO : ClusterId: 2d185b82-****-462d-****-2e4e70788f3d
[14.08 22:14:27.211] INFO : NodeId: Node-1
[14.08 22:14:27.213] INFO : Head-NodeId: Node-1
[14.08 22:14:27.215] INFO : CPU usage: (P/S) 1.34/7.36/100%
[14.08 22:14:27.217] INFO : Node services memory allocation (U/R/M): 0/0/4096 MB
[14.08 22:14:27.218] INFO : Threads: 19
[14.08 22:14:27.219] INFO : Heap usage: 38/256MB
[14.08 22:14:27.221] INFO : JVM: Eclipse Adoptium 22 (OpenJDK 64-Bit Server VM 22.0.1+8)
[14.08 22:14:27.222] INFO : Update Repo: CloudNetService/launchermeta, Update Branch: nightly
[14.08 22:14:27.223] INFO :
Other
playerManager.playerExecutor(uuid).connect(serverName);
is the relevant code used by my plugin. Works 99.9% of times, failed once a few minutes ago. Code called from server's main thread, causing timeout of the entire server.
I also have the stack trace of every running thread, if required.
Issue uniqueness
- [X] Yes, this issue is unique. There are no similar issues.