[SPIGOT-5194] ArrayIndexOutOfBoundsException Created: 21/Jul/19  Updated: 23/Jul/19  Resolved: 22/Jul/19

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

Type: Bug Priority: Minor
Reporter: SlimeDog Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

All components up-to-date

CentOS Linux release 7.6.1810 (Core)

Java 11.0.3

Spigot 1.14.4

Multiverse-Core 4.0.0-b766


Version: git-Spigot-9de398a-8b09d98 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

After server had been running for 20 minutes (with no players connected since start-up):

[14:11:49] [Server thread/ERROR]: Failed to save chunk 2,-1
java.lang.ArrayIndexOutOfBoundsException: Index 36 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-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.LightEngineStorage.h(SourceFile:77) ~[spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.LightEngineLayer.a(SourceFile:215) ~[spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.ChunkRegionLoader.saveChunk(ChunkRegionLoader.java:269) ~[spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.saveChunk(PlayerChunkMap.java:699) ~[spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.lambda$16(PlayerChunkMap.java:396) ~[spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        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-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.PlayerChunkMap.unloadChunks(PlayerChunkMap.java:344) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.ChunkProviderServer.tick(ChunkProviderServer.java:329) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.WorldServer.doTick(WorldServer.java:259) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1069) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:971) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:816) [spigot-1.14.4.jar-2019-07-21-0454:git-Spigot-9de398a-8b09d98]
        at java.lang.Thread.run(Thread.java:834) [?:?]

I cannot replicate. I cannot see a way to attempt replication in vanilla or CraftBukkit. I will report if it recurs.

 



 Comments   
Comment by SlimeDog [ 23/Jul/19 ]

I'll try, but I've seen it only once, and no one was connected, so I cannot tie it a player action.

Comment by md_5 [ 22/Jul/19 ]

Needs a way to reproduce; almost certainly Vanilla - Spigot does not touch the light engine.

You can use --eraseCache or whatever to rebuild all light data

Generated at Sat Dec 13 15:23:14 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.