Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5379

ArrayIndexOutOfBoundsException saving chunk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • CentOS Linux release 7.7.1908 (Core) update-to-date

      Java 11.0.5

      Multiverse-Core controlled multiverse

      Many plugins (the servers are used for testing plugins)

    • This server is running CraftBukkit version git-Spigot-56f8471-7554e08 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    • Yes

      This error occurs frequently, but non-deterministically: 21 times in the last 7 days. It is usually associated with the same chunk, which is the spawn chunk in a Multiverse world, but other chunks have been reported, including one in a non-spawn area of the base world. The worlds were identified by review of the saved regions in each world; in all cases to date the identified region had been saved in only one world.

      No players have been connected during these incidents (they are test servers).

      I tried unsuccessfully, for several days each, to produce the error with vanilla MC and CraftBukkit. Since it occurs on average 3 times daily, I am reasonably confident that – while it may not be a Spigot issue per se (see SPIGOT-5194ArrayIndexOutOfBoundsException) – Spigot is required to generate it.

      [22:49:30] [Server thread/ERROR]: Failed to save chunk 803,11
      java.lang.ArrayIndexOutOfBoundsException: Index 45 out of bounds for length 33
              at org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap.get(Long2ObjectOpenHashMap.java:348) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.LightEngineStorage.h(SourceFile:77) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.LightEngineLayer.a(SourceFile:215) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:269) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.PlayerChunkMap.saveChunk(PlayerChunkMap.java:699) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.PlayerChunkMap.lambda$16(PlayerChunkMap.java:396) ~[spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714) [?:?]
              at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) [?:?]
              at net.minecraft.server.v1_14_R1.PlayerChunkMap.b(PlayerChunkMap.java:378) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.PlayerChunkMap.unloadChunks(PlayerChunkMap.java:344) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.ChunkProviderServer.tick(ChunkProviderServer.java:337) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.WorldServer.doTick(WorldServer.java:294) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1068) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:393) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:970) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:815) [spigot-1.14.4.jar-2019-10-20-0729:git-Spigot-56f8471-7554e08]
              at java.lang.Thread.run(Thread.java:834) [?:?]
      

            Unassigned Unassigned
            ram@straight8.com SlimeDog
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: