1.17.x Invalid call to EmtyPoolElement.getBoundingBox, filter me!

Discussion in 'Spigot Plugin Development' started by simbey, Jun 12, 2021.

  1. I got Spigot 1.17 running today, rebuilt my Java plug-in for 1.17, force updated my local test world from 1.16.5, and then saw this on startup (no other plug-ins were loaded):

    Code (Text):

    [17:21:06] [Server thread/ERROR]: Invalid bounding box data, inverted bounds for: StructureBoundingBox{minX=2147483647, minY=2147483647, minZ=2147483647, maxX=-2147483648, maxY=-2147483648, maxZ=-2147483648}
    [17:21:06] [Server thread/ERROR]: Exception loading structure piece with id minecraft:jigsaw
    java.lang.IllegalStateException: Invalid call to EmtyPoolElement.getBoundingBox, filter me!
     at net.minecraft.world.level.levelgen.feature.structures.WorldGenFeatureDefinedStructurePoolEmpty.a(SourceFile:39) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.levelgen.structure.WorldGenFeaturePillagerOutpostPoolPiece.<init>(SourceFile:57) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.levelgen.feature.StructureGenerator.a(SourceFile:151) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.chunk.storage.ChunkRegionLoader.a(ChunkRegionLoader.java:505) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.chunk.storage.ChunkRegionLoader.loadChunk(ChunkRegionLoader.java:216) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.server.level.PlayerChunkMap.lambda$20(PlayerChunkMap.java:561) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
     at net.minecraft.util.thread.IAsyncTaskHandler.executeTask(SourceFile:151) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.server.level.ChunkProviderServer$a.executeTask(ChunkProviderServer.java:603) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.util.thread.IAsyncTaskHandler.executeNext(SourceFile:125) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.server.level.ChunkProviderServer$a.executeNext(ChunkProviderServer.java:614) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.util.thread.IAsyncTaskHandler.awaitTasks(SourceFile:134) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.server.level.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:160) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.World.getChunkAt(World.java:277) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.IWorldReader.getChunkAt(SourceFile:140) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.World.getChunkAt(World.java:271) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at net.minecraft.world.level.World.getType(World.java:588) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.getType(CraftBlock.java:217) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at org.bukkit.craftbukkit.v1_17_R1.block.CraftBlock.getState(CraftBlock.java:319) ~[spigot-1.17.jar:3111-Spigot-66f9d3c-cbf2f67]
     at com.simbey.mod.DonationChest.getDonationChest(DonationChest.java:37) ~[?:?]
     
    This started with a getState() call.

    Code (Text):
    BlockState state = block.getState();
    I'm not sure where the block was. I connected to the server and played a little bit. Game play didn't seem impacted. I shut down the server, added logging for the block's location in case the exception was seen again, and rebuilt my plug-in. On the second startup, the exception did not occur.

    I'm not necessarily looking for a solution right now, just wanted to get this reported in case it's a real issue.
     
  2. Hello,
    today i updated to Spigot 1.17 i'm getting the same Errors. Did you found a solution?
     
  3. No, I didn't. I used a backup to return to 1.16.5. Was your world missing villagers, named mobs, armor stands, and item frames?

    If that's two of us now, then it's definitely not just me.
     
    • Like Like x 1