mojira.dev
MC-74123

Entering chunks causes a double server crash

Running a Vanilla 1.8 server and I've tested with hosting it on both Windows 7 and Centos 6.2 to rule out an OS/Java issue.

After a period of time, chunks on the server randomly get corrupted. When a player enters the corrupted chunk the whole server crashes, twice (one from the player entering the chunk and I think the second time from the watchdog timer when it tries to come back up). Visually the chunks look perfectly fine in game and they were chunks that had been generated for a while and used to be fine. Some of them have been built in, some of them have only been mined in, and some haven't been changed, just traveled through.

These could also be chunks that we've ran through dozens / hundreds of times without issue, but once corrupted we can't ever go in again.

Once the player has entered the chunk and crashed the server, it of course crashes every time they join until I can edit their position in their player dat to be outside of the problematic chunk.

I have not been able to discern a pattern to which ones are corrupted, they are randomly throughout the world.

I have seen this issue both on a brand new v1.8 map that is about a week old, as well as an old MC1.2.5 map that we hosted on v1.8.

I did try upgrading the server to 1.8pre4 but without regenerating any of the affected chunks and it continued to crash. I have not tried generating new 1.8pre4 map.

I've attached several of the crash reports. The excerpt included below is the first server crash that occurs when entering the corrupted chunk. It's always a Ticking Entity that is the player with a "java.lang.ArrayIndexOutOfBoundsException" failure. The second crash (Watching Server/watchdog) I consider a symptom of the first one, but there are a couple crash reports from that included since they usually follow the other crashes.

Let me know if there's anything else I can provide.

Example crash when loading corrupted chunk


Minecraft Crash Report ----
// Why is it breaking 😞

Time: 11/7/14 4:44 AM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException
at jr.a(SourceFile:113)
at jr.a(SourceFile:101)
at jt.<init>(SourceFile:32)
at qx.t_(SourceFile:221)
at aqr.a(SourceFile:1407)
at qu.a(SourceFile:600)
at aqr.g(SourceFile:1385)
at aqr.i(SourceFile:1278)
at qu.i(SourceFile:478)
at net.minecraft.server.MinecraftServer.A(SourceFile:608)
at pp.A(SourceFile:299)
at net.minecraft.server.MinecraftServer.z(SourceFile:532)
at net.minecraft.server.MinecraftServer.run(SourceFile:448)
at java.lang.Thread.run(Thread.java:745)

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

– Head –
Stacktrace:
at jr.a(SourceFile:113)
at jr.a(SourceFile:101)
at jt.<init>(SourceFile:32)
at qx.t_(SourceFile:221)
at aqr.a(SourceFile:1407)
at qu.a(SourceFile:600)
at aqr.g(SourceFile:1385)

– Entity being ticked –
Details:
Entity Type: null (qx)
Entity ID: 106
Entity Name: Kontu037
Entity's Exact location: 416.07, 63.00, -147.66
Entity's Block location: 416.00,63.00,-148.00 - World: (416,63,-148), Chunk: (at 0,3,12 in 26,-10; contains blocks 416,0,-160 to 431,255,-145), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Entity's Momentum: 0.00, -0.08, 0.00
Entity's Rider: ~ERROR~ NullPointerException: null
Entity's Vehicle: ~ERROR~ NullPointerException: null
Stacktrace:
at aqr.i(SourceFile:1278)
at qu.i(SourceFile:478)

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media]
migrated

Deleting the chunk and nearby chunk with MCEdit and regenerating them does not resolve the issue, same method of crash when entering the problematic chunk

migrated

Manually regenerated the chunks while server was offline (unfortunately was using the MC1.5.2 jar for generation), but still crashed in the same fashion.

Starting to suspect it's not the chunk itself (since it used to be fine but regenerating it breaks) but something else.

Completely deleting a player file and running back to the chunk location also makes no difference, it is not unique to a player, but to the chunk location.

migrated

Alright seems it's not even aligned to chunk boundaries, just area's on the map. Filled the problematic chunk with bedrock so it couldn't be entered, and just getting near it in a different chunk (about 5 blocks from the boundary) still crashed.

[media]

is from the adjacent chunks crash after getting halfway into the boundary.

migrated

Also unsure if I should mark 1.8pre4 as affected version since while it does occur, i haven't tested on a 1.8pre4 generated map, only a 1.8 generated map

migrated

Looks like it's a lot more than just chunks, or it's spreading. Pretty much anywhere past the Z axis of the original problem within 200 blocks on the X axis will crash the server now. Many dozens of chunks worth of space would be affected.

I did test on jdk7 as well with no change.

migrated

Duplicate of MC-63590 – If you have not, please use the search function in the future, to see if your bug has already been submitted.
For technical support, please use the Mojang Support Center.

--- This action was performed automagically. If you believe this was done erroneously, please :light_bulb_on: raise an issue.

migrated

(Unassigned)

Unconfirmed

Minecraft 1.8

Retrieved