Corrupt Chunks

Discussion in 'Bukkit Help' started by ManBeastPig, Mar 5, 2013.

Thread Status:
Not open for further replies.
  1. Error pasted below.
    When a player (any) logs in at this location the server crashes.
    I've had it before and had to make a new map.
    But now i have it again. Its in a part of the map no one lives in and there is nothing
    much going on there. It crashes when i spawn at that location too, so its not the player.

    I've downloaded it and found an old copy of mcedit that still has the repair option.
    The new one took it out it seems. It says its fixed it and it works locally.
    But Its going to take my 6 hours to upload the file again to test it live.
    All the while the server could crash at any moment.
    Its so annoying this is so flakey.

    Is there anything I can do to stop this or is it just bukkit?
    Would spigot still do it?
    I have a load of plugins but they've been working without fault for a month and no changes.
    So i'm guessing its not them.


    =================================



    2013-03-05 00:30:03 [INFO] mrboody[/174.95.141.181:54484] logged in with entity id 73962208 at ([SurvivalWorld] -586.6896329838783, 37.0, 1259.5296165699344)
    2013-03-05 00:30:03 [INFO] Loaded player file for mrboody
    2013-03-05 00:30:03 [INFO] Chunk file at -33,70 is in the wrong location; relocating. (Expected -33, 70, got -36, 74)
    2013-03-05 00:30:03 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: -37
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.ChunkSection.a(ChunkSection.java:41)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.Chunk.getTypeId(Chunk.java:350)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.Chunk.a(Chunk.java:637)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.Chunk.a(Chunk.java:624)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.ChunkRegionLoader.loadEntities(ChunkRegionLoader.java:350)
    2013-03-05 00:30:03 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:47)
    2013-03-05 00:30:03 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:13)
    2013-03-05 00:30:03 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179)
    2013-03-05 00:30:03 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287)
    2013-03-05 00:30:03 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:30)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:537)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
    2013-03-05 00:30:03 [SEVERE] at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    2013-03-05 00:30:03 [SEVERE] Encountered an unexpected exception ArrayIndexOutOfBoundsException
    java.lang.ArrayIndexOutOfBoundsException: -37
    at net.minecraft.server.v1_4_R1.ChunkSection.a(ChunkSection.java:41)
    at net.minecraft.server.v1_4_R1.Chunk.getTypeId(Chunk.java:350)
    at net.minecraft.server.v1_4_R1.Chunk.a(Chunk.java:637)
    at net.minecraft.server.v1_4_R1.Chunk.a(Chunk.java:624)
    at net.minecraft.server.v1_4_R1.ChunkRegionLoader.loadEntities(ChunkRegionLoader.java:350)
    at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:47)
    at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:13)
    at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179)
    at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287)
    at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:30)
    at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:537)
    at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
    at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
    at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    2013-03-05 00:30:03 [SEVERE] This crash report has been saved to: /home/minecraft/multicraft/servers/server2/./crash-reports/crash-2013-03-05_00.30.03-server.txt
     
  2. Offline

    Onionbro

    I experienced the same issue a long time ago. I never used the mcedit chunk fixer. Instead I deleted the corrupt chunks using mcedit and the issue was fixed. Once a player enters the deleted chunks they are generated again correctly. This was a long time ago, pre-1.8 beta so I can not say that this will work for sure. If you try it and it works let me know.
     
  3. The problem i've found is that I can only go to coordinates with mcedit not chunk numbers.
    Aside from th above problem i'm getting this...

    06.03 10:04:25 [Server] INFO Chunk file at -43,83 is in the wrong location; relocating. (Expected -43, 83, got -33, 70)

    Which happens when i spawn in the above areas coords.
    I did a rollback and it seems now i just get this error and not a crash, so some improvement..
    I still need to fix it tho as it would appear to be degenerative.

    This seems to be a common problem that no one is addressing or has a solution for.
    I can't find anywhere to report errors to bukkit directly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  4. Offline

    Onionbro

    Create a test server with the same world seed as your world. Use /chunkinfo the worldguard command and make your way towards the correct chunks. Write down the coords. Open your corrupted world in mcedit and go to the coords.

    Make sense? Use the non-corrupt world to gather info, go to location in corrupt world.

    This probably is not a bukkit bug. This gets reported allot because users don't create enough backups or shut down their servers correctly.
     
  5. Hmm not sure how a backup would cause it? maybe they lock the files? But yeah i'll try /chunkinfo.
    I have a local copy of the map just downloaded, thanks will try it now.

    Just a thought, as i'm looking at the live map with /chunkinfo its giving me the file names.
    Could i just delete them ? would it regen the land?

    It seems they are all part of file r.-2.2.mca
    I deleted it on a local copy and went to the map.
    It seems to have regened it.
    It will annoy a few players but would that solve it or is it a systemic fault?


    Across the different crashes i have a list of chunks.
    But they are all inside file r.-2.2
    Then tho some are 100 blocks away, guessing its one file per so-many chunks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  6. Offline

    Evilshallwin

    What he's talking about is that this corruption of the world is a natural error that occurs in Vanilla as well. It's nearly impossible to stop from happening due to it being part of the natural read/write errors any file gets when it is written to or read from a large number of times. It can also happen when you shut down your server improperly.

    What you need to do to defend against this is make regular backups (usually daily), so that the damage will not be as destructive as you can rollback to an older version of the world.
     
  7. I back up every 8 hours but if the server doesn't crash the error goes un noticed. I have backups every 8 hours but they are all containing the error at this stage. Its a dedicated server with a ups etc. As far as i know its not been rebooted or had an outage. Maybe its just the quantity of r/w. But how are other large servers still running?
    I only have a few thousand users, some have hundreds of thousands but they dont crash.
    something must be wrong surely?
     
  8. Offline

    Evilshallwin

    If your server has heavy editing (WorldEdit and stuff), it may cause a faster corruption. What are the specs of your server?

    EDIT: You should also reboot servers periodically, leaving them running for long amounts of time may cause lag.
     
  9. Its a Xeon quad core i think 2.5ghz. 32gb ram and twin 32 GB SSDs in raid parallel.
    Bukkit reboots daily but the server isn't on a schedule as its linux and i have no idea how to use such
    antiquated junk. I can log on and reboot it but there crazy text based cron program is an illogical mystery to me.

    But yeah we've had a lot of worldedits.
    But ironically not in the area thats affected.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  10. Offline

    Evilshallwin

  11. I saw that but its some kind of linux thing.
    My experience thus for of linux walk thrus has been patchy at best.

    Oh i just spyed the windows version , i can use it locally to test at least.

    Spoke too soon, it wont run.
    Guess its 32 bit only.
    I dont have anything 32 bit anymore.
    I'll take a second look at the python script....eeeeek

    I tried that python thing and i just get this....
    I copied the script files to the bukkit root and ran it from there, it gave no instructions on how to install or use.(as always with linux)


    SyntaxError: invalid syntax
    root@35:/home/minecraft/multicraft/servers/server2# python region-fixer.py /SurvivalWorld
    File "region-fixer.py", line 4
    <!DOCTYPE html>
    ^

    To anyone in the future reading this thread.
    There is no cure, there is no program that will work and dont bother talking to the bukkit people its a waste of time.
    They'll assume its all your fault and not listen to anything.
    Just delete your map, loose your players and ultimately just give up on this crappy software and maybe take up golf or something that actually works.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  12. Offline

    Evilshallwin

    To anyone in the future who is inclined to believe this guy,

    Ignore his stupidity. It's been stated multiple times that this is an unfixable error and is due to the inherent nature of a file to become corrupted after being read or written to many times.

    He assumes that it's fixable, even after it's been said multiple times that it's not.

    He's angry because he couldn't be assed to have checked his server logs for errors which had warned him this was coming, nor to keep proper backups so that this may have been avoided.

    Just don't be like this guy. Take up being literate and actually understanding how stuff works.
     
  13. Just read the comments plugin devs leave on bukkitdev to know what bukkit are like.

    I take "proper backups" and always have, as not point have i said otherwise.
    I can't check my server log constantly as its a busy server and i have a life.

    I wont bother posting on this forum again.
    But my actual problem is with the replies i got from bukkit not here.

    There must be something in the developer genes.
    At least in the real world we all know they're loosers.
     
  14. Offline

    Onionbro

    I know I already mentioned this but I had the same problem and I fixed it.
     
Thread Status:
Not open for further replies.

Share This Page