BlueMap

BlueMap

85.1k Downloads

Render-Command does Chunk-Collection on the server-thread instead of async

TBlueF opened this issue ยท 1 comments

commented

Chunk-Collection needs to be done async!
Also optimize the chunk-collection if a chunk-filter is used.

Related Watchdog-Timeout:

[18:31:48] [Paper Watchdog Thread/ERROR]: Current Thread: Server thread
[18:31:48] [Paper Watchdog Thread/ERROR]: 	PID: 44 | Suspended: false | Native: false | State: RUNNABLE
[18:31:48] [Paper Watchdog Thread/ERROR]: 	Stack:
[18:31:48] [Paper Watchdog Thread/ERROR]: 		[email protected]/java.io.RandomAccessFile.read0(Native Method)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		[email protected]/java.io.RandomAccessFile.read(RandomAccessFile.java:368)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		[email protected]/java.io.RandomAccessFile.readByte(RandomAccessFile.java:710)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.core.mca.MCAWorld.getChunkList(MCAWorld.java:285)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.core.world.World.getChunkList(World.java:93)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.common.plugin.commands.CommandHelper.createMapRenderTask(CommandHelper.java:135)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.common.plugin.commands.CommandHelper.createWorldRenderTask(CommandHelper.java:115)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.common.plugin.commands.Commands.renderCommand(Commands.java:446)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.common.plugin.commands.Commands$$Lambda$3458/0x00000008014cbc40.run(Unknown Source)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.shadow.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:262)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.shadow.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:176)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.shadow.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:141)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		de.bluecolored.bluemap.bukkit.BukkitCommands$CommandProxy.execute(BukkitCommands.java:106)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:794)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PlayerConnection.handleCommand(PlayerConnection.java:1921)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1732)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.PlayerConnectionUtils$$Lambda$7262/0x0000000802dfa440.run(Unknown Source)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1191)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1184)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1160)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1004)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		app//net.minecraft.server.v1_16_R1.MinecraftServer$$Lambda$3061/0x0000000801329c40.run(Unknown Source)
[18:31:48] [Paper Watchdog Thread/ERROR]: 		[email protected]/java.lang.Thread.run(Thread.java:832)
commented

Fixed with 7f0df85.