[SPIGOT-5379] ArrayIndexOutOfBoundsException saving chunk Created: 21/Oct/19  Updated: 26/Oct/19

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: SlimeDog Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: bug, error
Environment:

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)


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

 Description   

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) [?:?]

Generated at Tue Apr 22 06:07:33 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.