Java.lang.IndexOutOfBoundsException error?

Discussion in 'Bukkit Help' started by emliee, May 28, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    emliee

    When trying to start my server this morning this error popped up:

    15:46:29 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 1068, Size: 1068
    15:46:29 [SEVERE] at java.util.ArrayList.RangeCheck(Unknown Source)
    15:46:29 [SEVERE] at java.util.ArrayList.set(Unknown Source)
    15:46:29 [SEVERE] at net.minecraft.server.RegionFile.a(SourceFile:288)
    15:46:29 [SEVERE] at net.minecraft.server.ChunkBuffer.close(SourceFile:262
    )
    15:46:29 [SEVERE] at java.util.zip.DeflaterOutputStream.close(Unknown Sour
    ce)
    15:46:29 [SEVERE] at java.io.FilterOutputStream.close(Unknown Source)
    15:46:29 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(ChunkRegionL
    oader.java:139)
    15:46:29 [SEVERE] at net.minecraft.server.ChunkRegionLoader.c(ChunkRegionL
    oader.java:126)
    15:46:29 [SEVERE] at net.minecraft.server.FileIOThread.b(SourceFile:29)
    15:46:29 [SEVERE] at net.minecraft.server.FileIOThread.run(SourceFile:22)
    15:46:29 [SEVERE] at java.lang.Thread.run(Unknown Source)

    Any idea what's going on? I hadn't changed anything since the last time I ran the server, so I'm really confused as to why it's randomly bugging out now.
     
  2. Offline

    Retricide

  3. Offline

    tyzoid

    emliee Retricide
    No, it appears to be a bug in craftbukkit.

    Try the region fixer, as it may solve your problem, but I believe that Wolvereness should be aware of this.

    To highlight this:
    Code:
    15:46:29 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 1068, Size: 1068
    notice the index and size are the same? It appears that someone forgot to subtract the size by one when accessing the arrayList.
     
  4. Offline

    Retricide

    tyzoid
    Come to think of it, that makes sense. I have been seeing a spike in this error recently, among the bukkit community, so a bug with a CB build would explain it. That and your explanation makes sense, :3.

    Given the rest of the error, I would imagine the bug is causing map corruptions.

    However, the causal relationship could be reversed: the corrupted map chunk could result in the OutOfBounds exception. I'm curious as to if other corrupted chunks produced the OutOfBounds exception, too.
     
    tyzoid likes this.
  5. Offline

    feildmaster

    This is most likely a bug in vanilla, as we don't mess with RegionFile.

    I do believe this is caused by corrupted chunks though. I'm not really willing to do a complete debug.

    EDIT: To be completely honest... I don't see any place that line exists, not in CraftBukkit, or in Minecraft.
     
  6. Offline

    emliee

    Thank you everyone!
    It was indeed a corrupted chunk.
     
Thread Status:
Not open for further replies.

Share This Page