How do you fix massive holes that appear in the ground?

Big hole in the groundAnother hole in the ground

This has happened in a couple of different places on my server. Does anyone have any idea what causes it to happen?

Some facts about the phenomenon:

  • other players on the server can't see them, only I can
  • other players can walk out onto the ground that's supposed to be there
  • animals can also walk out onto the missing ground, but their movement becomes sporadic
  • several holes can appear very close to one another
  • after leaving for some time, and then returning, the hole may be gone
  • mobs can sometimes be seen walking along the bottom of the recess
  • there appears to be a room (possibly a dungeon) suspended in the middle of the second one
  • these are incredibly creepy

I haven't been brave enough to venture out onto one yet, but will try and post results.

Edit: It turns out when you fully jump into one, you fall the length of a block, and then you're pushed back up again. This happens repeatedly, and very quickly, so that you get stuck midair and have to /tp to get out.

Also, the hole in the second picture came back, but there is no longer a big room at the bottom.


Solution 1:

Given the square nature of the missing pieces, I think it's some kind of Chunk error ("chunk" being the term for any given sector in the minecraft world).

Specifically, from the notes about patch 1.2_01 on Notch's blog, emphasis mine:

  • Added a temporary fix to get rid of chunk visibility errors

The last one is interesting.. The problem with chunk visibility errors was that for some reason the “dirty” flag on chunks and the list of “dirty chunks” got out of synch. There wasn’t time to try to do a proper fix today, so I just made the client check a couple of dirty chunks per frame to make sure they’re in the list.

So until we fix it proper, you might get invisible chunks, but they will fix themselves after a second or two, usually way before you even get close to them.

Solution 2:

A chunk is a block of 16x16x128 (X,Y,Z) blocks. Sometimes they disappear, but if you quit and rejoin, or go a few chucks away and come back it may fix itself.

Solution 3:

That bug is reported, although for me relogging isn't sufficient. My workaround:

  • Put your inventory in a box
  • (optional: if you're far away from spawn, ask someone else to stay here or /tp a sock puppet to your location)
  • disconnect
  • (have the server admin) delete your player file (world/players/username.dat IIRC)
  • reconnect as a "new" player at spawn
  • go to your box (or /tp to previously mentioned nice person/puppet)
  • the missing chunk's back

Of course, other chunks may get missing later on again, so use your openID to support the bug report, too!

Solution 4:

I still(!) encounter these often, so here's another method I use to get rid of them:

If you travel to the Nether, when you come back, it will reload the chunk, fixing the error.

Solution 5:

Also, if you have this error often, but a relog fixes it, try pressing F3 + A to reset the chunks.