Server crashes on large operations
Flying--Dutchman opened this issue ยท 1 comments
I'm wrting a ChunkLoader to load all Chunks from a given Location in a given radius.
At some point the server crashes, bc it didnt respond anymore.
Is there any way to prevent this? I tried using the "utils.foreach()" method, but it didn't help.
--- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - git-Paper-194 (MC: 1.14.4) ---,
[22:12:11 ERROR]: The server has not responded for 10 seconds! Creating thread dump,
[22:12:11 ERROR]: ------------------------------,
[22:12:11 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):,
[22:12:11 ERROR]: The server is waiting on these chunks: [],
[22:12:11 ERROR]: ------------------------------,
[22:12:11 ERROR]: Current Thread: Server thread,
[22:12:11 ERROR]: PID: 21 | Suspended: false | Native: false | State: RUNNABLE,
[22:12:11 ERROR]: Stack:,
[22:12:11 ERROR]: java.util.Scanner.hasNextLine(Scanner.java:1503),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$DMH/247944893.invokeSpecial_L_I(LambdaForm$DMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$BMH/722348394.reinvoke(LambdaForm$BMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/1820433239.delegate(LambdaForm$MH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/819168567.guard(LambdaForm$MH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/1337214728.linkToCallSite(LambdaForm$MH),
[22:12:11 ERROR]: jdk.nashorn.internal.scripts.Script$Recompilation$5004$1853AII$\^eval\_.L:1#DeleteLines(<eval>:90),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$DMH/1445085249.invokeStatic_L3II_L(LambdaForm$DMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$BMH/1640539440.reinvoke(LambdaForm$BMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/657888250.exactInvoker(LambdaForm$MH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/1285493133.linkToCallSite(LambdaForm$MH),
[22:12:11 ERROR]: jdk.nashorn.internal.scripts.Script$Recompilation$5001$2943AA$\^eval\_.L:1#ChunkLoadedHook(<eval>:134),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$DMH/811760110.invokeStatic_L3_L(LambdaForm$DMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$BMH/1375633155.reinvoke(LambdaForm$BMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/2142251096.exactInvoker(LambdaForm$MH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/1298484041.linkToCallSite(LambdaForm$MH),
[22:12:11 ERROR]: jdk.nashorn.internal.scripts.Script$Recompilation$4766$877AA$\^eval\_.L:1#on#eventExecutor(<eval>:43),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$DMH/1484531981.invokeStatic_L4_L(LambdaForm$DMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$BMH/927293257.reinvoke(LambdaForm$BMH),
[22:12:11 ERROR]: java.lang.invoke.LambdaForm$MH/1260878016.invokeExact_MT(LambdaForm$MH),
[22:12:11 ERROR]: org.bukkit.plugin.EventExecutor$$NashornJavaAdapter.execute(Unknown Source),
[22:12:11 ERROR]: co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80),
[22:12:11 ERROR]: org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70),
[22:12:11 ERROR]: org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:545),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.Chunk.loadCallback(Chunk.java:644),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunk.lambda$null$7(PlayerChunk.java:415),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunk$$Lambda$3096/384519642.accept(Unknown Source),
[22:12:11 ERROR]: com.mojang.datafixers.util.Either$Left.ifLeft(Either.java:43),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunk.lambda$a$8(PlayerChunk.java:413),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunk$$Lambda$2990/1901334916.accept(Unknown Source),
[22:12:11 ERROR]: java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656),
[22:12:11 ERROR]: java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632),
[22:12:11 ERROR]: java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunkMap$CallbackExecutor.run(PlayerChunkMap.java:102),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.PlayerChunk.a(PlayerChunk.java:420),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.ChunkMapDistance.a(ChunkMapDistance.java:105),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.ChunkProviderServer.tickDistanceManager(ChunkProviderServer.java:430),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.ChunkProviderServer.access$300(ChunkProviderServer.java:22),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.ChunkProviderServer$a.executeNext(ChunkProviderServer.java:793),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.ChunkProviderServer.runTasks(ChunkProviderServer.java:426),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:1022),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:1006),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:990),
[22:12:11 ERROR]: net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:923),
[22:12:11 ERROR]: java.lang.Thread.run(Thread.java:748),
[22:12:11 ERROR]: ------------------------------,