AutoReferee

AutoReferee

9.1k Downloads

Critical "Bed Wars" bug

authorblues opened this issue ยท 2 comments

commented

After a "bed wars"-type match, the server sometimes crashes with:

---- Minecraft Crash Report ----
// You're mean.

Time: 7/29/13 11:38 PM
Description: Exception ticking world entities

java.lang.IndexOutOfBoundsException: Index: 183, Size: 183
        at java.util.ArrayList.rangeCheck(ArrayList.java:604)
        at java.util.ArrayList.remove(ArrayList.java:445)
        at net.minecraft.server.v1_5_R3.World.tickEntities(World.java:1242)
        at net.minecraft.server.v1_5_R3.WorldServer.tickEntities(WorldServer.java:480)
        at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:563)
        at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
        at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
        at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
        at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
        at java.util.ArrayList.rangeCheck(ArrayList.java:604)
        at java.util.ArrayList.remove(ArrayList.java:445)
        at net.minecraft.server.v1_5_R3.World.tickEntities(World.java:1242)
        at net.minecraft.server.v1_5_R3.WorldServer.tickEntities(WorldServer.java:480)

-- Affected level --
Details:
        Level name: world-autoref-1402c229fc5
        All players: 3 total; ...
        Chunk stats: ServerChunkCache: 1145 Drop: 61
        Level seed: 6202385554456789640
        Level generator: ID 01 - flat, ver 0. Features enabled: false
        Level generator options:
        Level spawn location: World: (235,149,-793), Chunk: (at 11,9,7 in 14,-50; contains blocks 224,0,-800 to 239,255,-785), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)
        Level time: 1640556 game time, 1921973 day time
        Level dimension: 0
        Level storage version: 0x04ABD - Anvil
        Level weather: Rain time: 2147433374 (now: false), thunder time: 55351 (now: false)
        Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
        at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:563)
        at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
        at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
        at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
        at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

Seems to be caused by entities being deleted from the world at the same time that a match ends (all players are set to spectator mode which makes them no longer affect spawning, which I believe would make the existing ones naturally despawn). I have attempted to delay removing the entities/mobs, but that doesn't seem to help completely.

commented

Reopens #94. Doesn't seem to be fixed.

commented

https://bukkit.atlassian.net/browse/BUKKIT-1331 seems almost certainly to be the issue here.