-
Bug
-
Resolution: Fixed
-
Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w44b, Minecraft 1.8.9, Minecraft 15w51b, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.2, Minecraft 1.9.4, Minecraft 16w21b, Minecraft 1.10.2, Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 1.13-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a
-
Confirmed
-
(Unassigned)
The bug
Under certain circumstances chunks can swap or reset.
As suggested by HeegeMcGee Minecraft should handle IOExceptions in a saner way and not just log them and carry on.
Known reasons
Full disk
It is confirmed that this bug happens when no free memory on the disk is left.
[16:40:12] [File IO Thread/ERROR]: Failed to save chunk java.lang.NullPointerException: null [16:40:12] [File IO Thread/INFO]: [STDERR]: java.io.IOException: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.io.RandomAccessFile.writeBytes(Native Method) [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.io.RandomAccessFile.write(Unknown Source) [16:40:12] [File IO Thread/INFO]: [STDERR]: at ayj.a(SourceFile:306) [16:40:12] [File IO Thread/INFO]: [STDERR]: at ayj$a.close(SourceFile:244) [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.util.zip.DeflaterOutputStream.close(Unknown Source) [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.io.FilterOutputStream.close(Unknown Source) [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.io.FilterOutputStream.close(Unknown Source) [16:40:12] [File IO Thread/INFO]: [STDERR]: at aye.b(SourceFile:160) [16:40:12] [File IO Thread/INFO]: [STDERR]: at aye.a(SourceFile:145) [16:40:12] [File IO Thread/INFO]: [STDERR]: at bgx.c(SourceFile:37) [16:40:12] [File IO Thread/INFO]: [STDERR]: at bgx.run(SourceFile:30) [16:40:12] [File IO Thread/INFO]: [STDERR]: at java.lang.Thread.run(Unknown Source)
"Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung" (German) should be equivalent to the American English "There is not enough space on the disk".
This shows that the exception message is an OS error message and therefore OS dependent and translated. See also this stackoverflow question and this (currently unresolved) JDK bug report from 2001 requesting a separate exception for a full disk.
This stackoverflow question suggests that you might not even be able to directly detect a full disk, and calling getFD().sync() could decrease performance. However, it appears currently the call to FilterOutputStream#close causes the exception.
The question is if at that point the save files could have already been corrupted. Additionally a full disk can cause all kind of other problems, like for example the logger being unable to create log files.
How to reproduce
Windows
- Use for example this guide to create a VHD and create a volume with a size of 10MB
- Add a new profile using this volume as game directory
- Create a new default world with gamemode Creative and fly around
Linux
See this comment (not checked)
Malfunctioning disk (?)
Hard to reproduce and likely difficult to detect.
In case an IOException happens possibly log the error and try shutting down the server?
- is cloned by
-
MC-161823 Chunks can occasionally be misplaced upon loading a world
- Reopened
- is duplicated by
-
MC-75167 Chunks are scrambled or replaced
- Resolved
-
MC-75509 Swapping Chunks
- Resolved
-
MC-75613 Chunks switching locations
- Resolved
-
MC-81538 Chunks load in the wrong place ruining a world.
- Resolved
-
MC-90475 Minecraft chunks not generating properly in 15w41b
- Resolved
-
MC-90885 The world is moving blocks in the ground and above ground to places they were not originally.
- Resolved
-
MC-92111 Cunks dupeing and replaceing after a mount of minecraft days
- Resolved
-
MC-93580 Copying chunks after server crashes
- Resolved
-
MC-94120 In my game, some Blocks (16x16 Block-squares, I'm not sure in wich height or depth) changed their place or disapeared.
- Resolved
-
MC-94259 Chunks teleporting and changing places
- Resolved
-
MC-94291 Chunk Glitch
- Resolved
-
MC-94814 Log on into my world and my chunk was replaced by a different chunk
- Resolved
-
MC-97970 Duplication of Build
- Resolved
-
MC-98112 Chunk load error
- Resolved
-
MC-98809 Chunks Spawning In Wrong Locations
- Resolved
-
MC-99039 Random chunks around my house have switched places with each other
- Resolved
-
MC-99339 Chunk out of nowhere
- Resolved
-
MC-99384 Chunks Reset and Scrambled in minecraft 1.9
- Resolved
-
MC-99639 Random chunk generation on crash
- Resolved
-
MC-100893 Randomly in 1.9.2 I went into my world and noticed that some chunks had switched places with each other.
- Resolved
-
MC-100936 A whole chunk of land from the bottom to top just magically moved
- Resolved
-
MC-102797 equal parts of the world will put to a other place
- Resolved
-
MC-104675 Chunks keep swapping out with one another
- Resolved
-
MC-104825 Random Mountain Spawning
- Resolved
-
MC-106785 A chunk was randomly cloned to another area
- Resolved
-
MC-111932 Random pieces of land mutliply, appear and dissapear where they aren't supposed to ruining my builds.
- Resolved
-
MC-112544 Singleplayer Bug
- Resolved
-
MC-114537 change in existing landscape
- Resolved
-
MC-114555 Zones changed into an other
- Resolved
-
MC-114788 Incorrectly generated chunks
- Resolved
-
MC-114975 Chunk Exchange Error
- Resolved
-
MC-115362 Chunk Distortion Error
- Resolved
-
MC-115824 Chunks duplicating nearby
- Resolved
-
MC-116626 Teleported parts
- Resolved
-
MC-117147 1.11.2+ Chunks keep changing/replacing themselves with new ones
- Resolved
-
MC-118150 Chunks getting replaced with other chunks
- Resolved
-
MC-118674 Upon joining a previously made world, 16 x 16 sections of terrain generate in the wrong area.
- Resolved
-
MC-118760 Several chunks are changed after upgrade to 12 on server
- Resolved
-
MC-118869 Weird Terrain Bug When Doing This
- Resolved
-
MC-119383 Loading Block Chunks Issue
- Resolved
-
MC-119716 chunks keeps moving
- Resolved
-
MC-120630 Huge chunk border suddenly appeared today close to my newbie house.
- Resolved
-
MC-120634 Chunk Displacement (1.12.1)
- Resolved
-
MC-121404 Nether Portal Chunk Loading Glitch
- Resolved
-
MC-123160 Wrong/Weird biome loading
- Resolved
-
MC-124157 A 16x16x16 chunk of blocks suddenly appeared ...
- Resolved
-
MC-124525 Random Piece of Land Teleporting
- Resolved
-
MC-124534 Moving Chunks
- Resolved
-
MC-125070 chunk replacement
- Resolved
-
MC-125139 Chunk Error
- Resolved
-
MC-127523 Erronous Chunk
- Resolved
-
MC-131068 Replacement of blocks when teleporting to already spawned place
- Resolved
-
MC-132215 Every time i log on to my survival map there is a random chunk that has spawned near my base in random spots. I've got rid of them but when I log out then log back in more chunks have randomly spawned back in.
- Resolved
-
MC-133740 Chunks keep going missing and other junks spawning where they shouldn't be.
- Resolved
-
MC-134503 1.13 Corrupted world
- Resolved
-
MC-136844 Chunks missing
- Resolved
-
MC-140810 chunks switching places
- Resolved
-
MC-141137 part of my village duplicated it's self a little bit away
- Resolved
-
MC-141851 New Chunks replacing preloaded chunks
- Resolved
-
MC-142127 chunk reload error
- Resolved
-
MC-142218 Chunk Errors
- Resolved
-
MC-143991 Strange Chunk Generation
- Resolved
-
MC-144998 chunks replicating and loading in wrongly
- Resolved
-
MC-159208 Chunks carved out and placed into random spots!
- Resolved
-
MC-159315 Chunks generate in a non-threadsafe manner after special conditions
- Resolved
-
MC-160969 chunk moved places
- Resolved
-
MCPE-19912 Random chunk cloning and placement near spawn chunks
- Resolved
- relates to
-
MC-87353 java.util.zip.ZipException: Not in GZIP format
- Resolved
-
MC-4001 Chunk reverts to an earlier state
- Resolved
-
MC-91279 Placed blocks randomly generating nearby
- Resolved
-
MC-150202 Chunks sometimes are dislocated / copied to another location
- Resolved
-
MC-2548 A chunk with previously generated data was cleared, all the blocks and data within vanish
- Resolved
- links to