[MC-4001] Chunk reverts to an earlier state Created: 30/Nov/12 Updated: 19/Feb/21 Resolved: 13/Sep/19 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01b, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.5.2, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 14w05a, Minecraft 14w05b, Minecraft 14w06a, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.10, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.4, Minecraft 1.8.6 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Hamsterraecher | Assignee: | Unassigned |
| Resolution: | Awaiting Response | Votes: | 26 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CHK: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Confirmation Status: | Community Consensus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Category: |
(Unassigned)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
A chunk of my world is defect. When i place a block or remove it and i relog in the world, the placed block is disappeared and the removed block is back. So you cant change anything in the chunk. The following found in the devconsole: [18:38:09 INFO]: Client> [18:38:09] [Server thread/INFO]: Saving chunks for level '14w08a'/Overworld [18:38:09 INFO]: Client> s: Saving entity NBT [18:38:09 INFO]: Client> at sk.e(SourceFile:1123) [18:38:09 INFO]: Client> at sk.d(SourceFile:1090) [18:38:09 INFO]: Client> at atc.a(SourceFile:210) [18:38:09 INFO]: Client> at atc.a(SourceFile:99) [18:38:09 INFO]: Client> at oa.b(SourceFile:161) [18:38:09 INFO]: Client> at oa.a(SourceFile:192) [18:38:09 INFO]: Client> at ob.a(SourceFile:663) [18:38:09 INFO]: Client> at net.minecraft.server.MinecraftServer.a(SourceFile:305) [18:38:09 INFO]: Client> at cby.v(SourceFile:124) [18:38:09 INFO]: Client> at net.minecraft.server.MinecraftServer.run(SourceFile:387) [18:38:09 INFO]: Client> at mr.run(SourceFile:657) [18:38:09 INFO]: Client> Caused by: java.lang.NullPointerException [18:38:09 INFO]: Client> at aik.j(SourceFile:115) [18:38:09 INFO]: Client> at ail.a(SourceFile:125) [18:38:09 INFO]: Client> at aai.b(SourceFile:206) [18:38:09 INFO]: Client> at sk.e(SourceFile:1111) |
| Comments |
| Comment by [Bot] Arisa [ 09/Feb/21 ] |
|
This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for. |
| Comment by [Mod] CubeTheThird [ 13/Sep/19 ] |
|
Can this be reproduced in the latest snapshots (currently 19w37a)? There have been various fixes in regards to word saving and chunk storage. |
| Comment by Ron Asor [ 04/Jun/19 ] |
|
Still an issue on 1.14.3 pre 1, used the book duping method to reproduce this, note I didn't use the checkerboard pattern but instead used creative inventory to dupe a book 100 pages in size filled with random text and kept the duplicates to fill in 1x1 chest, as you can see from the logs, it surpassed the max allowed size which causes the exception and the revert first exception is thrown for pressing esc (which saves the world on singleplayer), 2nd is thrown upon exiting the world, which again saves the world, while I don't know if there are any differences for these functions, I assumed it'll be best if both were logged also note this behavior is similar in multiplayer, which makes this an exploit in many servers 14:25:29 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_end 14:25:29 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:overworld 14:25:29 r Client thread info Loaded 143 advancements 14:25:30 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_nether 14:25:47 dxl Server thread info Saving and pausing game... 14:25:47 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_end 14:25:47 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:overworld 14:25:47 us Server thread error Failed to save chunk -8,20 java.lang.RuntimeException: Too big to save, 1363104 > 1048576 at bya.a(SourceFile:244) at bya$a.close(SourceFile:231) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) at java.io.FilterOutputStream.close(FilterOutputStream.java:159) at java.io.FilterOutputStream.close(FilterOutputStream.java:159) at byb.a(SourceFile:61) at bxy.a(SourceFile:58) at us.a(SourceFile:695) at us.e(SourceFile:371) at us$$Lambda$2976/1348121416.accept(Unknown Source) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at us.a(SourceFile:368) at ve.a(SourceFile:282) at vg.a(SourceFile:741) at net.minecraft.server.MinecraftServer.a(SourceFile:529) at dxl.a(SourceFile:120) at net.minecraft.server.MinecraftServer.run(SourceFile:632) at java.lang.Thread.run(Thread.java:745) 14:25:47 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_nether 14:25:48 vy Server thread info KillA2k18 lost connection: Disconnected 14:25:48 net.minecraft.server.MinecraftServer Server thread info KillA2k18 left the game 14:25:48 vy Server thread info Stopping singleplayer server as player logged out 14:25:48 net.minecraft.server.MinecraftServer Server thread info Stopping server 14:25:48 net.minecraft.server.MinecraftServer Server thread info Saving players 14:25:48 net.minecraft.server.MinecraftServer Server thread info Saving worlds 14:25:48 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_end 14:25:48 us Server thread info ThreadedAnvilChunkStorage (DIM1): All chunks are saved 14:25:48 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:overworld 14:25:48 us Server thread error Failed to save chunk -8,20 java.lang.RuntimeException: Too big to save, 1363104 > 1048576 at bya.a(SourceFile:244) at bya$a.close(SourceFile:231) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:241) at java.io.FilterOutputStream.close(FilterOutputStream.java:159) at java.io.FilterOutputStream.close(FilterOutputStream.java:159) at byb.a(SourceFile:61) at bxy.a(SourceFile:58) at us.a(SourceFile:695) at us$$Lambda$3125/1876601227.test(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at us.a(SourceFile:358) at ve.a(SourceFile:282) at vg.a(SourceFile:741) at net.minecraft.server.MinecraftServer.a(SourceFile:529) at net.minecraft.server.MinecraftServer.l(SourceFile:564) at dxl.l(SourceFile:251) at net.minecraft.server.MinecraftServer.run(SourceFile:666) at java.lang.Thread.run(Thread.java:745) 14:25:48 us Server thread info ThreadedAnvilChunkStorage (New World (2)): All chunks are saved 14:25:48 net.minecraft.server.MinecraftServer Server thread info Saving chunks for level 'New World'/minecraft:the_nether 14:25:48 us Server thread info ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
|
| Comment by bdm68 [ 04/Jun/19 ] |
|
Possible fixes:
|
| Comment by Altus [ 04/Jun/19 ] |
|
Tested and is still a problem in 1.14.2. I used a method detailed in https://www.youtube.com/watch?v=sd8SM8YWP9U |
| Comment by bdm68 [ 18/Feb/19 ] |
|
I have attached a test world "ChunkRevert.zip" created with the instructions provided in the Youtube video: https://www.youtube.com/watch?v=sd8SM8YWP9U. Credit goes to the creators of this video and another linked video there. In this test world, the chunk at spawn has been almost filled. In this chunk are two chests: a chest filled with two different written books arranged in a specific alternating checkerboard pattern. A second chest has the same written books in two stacks of 8. If these written books are arranged alternately in the second chest, the chunk will become too large to be saved and will revert when it is unloaded. The cause is almost certainly the Anvil file limitation I described in my previous comment. |
| Comment by bdm68 [ 16/Feb/19 ] |
|
Chunks reverting to an earlier state can be triggered reliably and I know one of the causes. I have just watched a Youtube video that demonstrates how to force a chunk to revert to an earlier state for the purpose of duping items. The video is here: https://www.youtube.com/watch?v=sd8SM8YWP9U What's happening here is the chunk has too much data in it and Minecraft is refusing to save it. This is due to a known limitation of the Anvil file format. The Anvil file format stores data for up to 1024 chunks in 4096-byte sectors that are the same size as a hard disk cluster. The first sector in the file is reserved for headers. Each chunk in the Anvil file has its own header which consists of a 24-bit offset to the chunk data and an 8-bit length in sectors. The chunk data is stored compressed in one of two different formats. This 8-bit length is the limitation that can cause chunks to revert. This imposes a maximum chunk size of 1,044,480 bytes after compression. If a chunk is too large after compression, it cannot be saved, and it will revert to an earlier state. As for the causes, I suspect there are several. Some of these have since been patched, such as slimes not despawning. Others still exist, such as entity duplication. Still others can be forced by players, especially in situations where players have some control over the NBT content. 1.13 has introduced another potential cause. The Flattening has introduced block palettes for each chunk section in the Anvil files. These can be space inefficient if each chunk section has 4096 different blocks (including block properties). This is unlikely to be a problem for block data in chunks, but this possibility should not be ignored. The issue is going to keep happening randomly with different triggers until the real underlying cause of the issue is addressed. The limited size of chunks in the Anvil file format is one known cause as is demonstrated in the Youtube video. Expanding the Anvil file format so compressed chunks can be larger than 1,044,480 bytes is needed. One possibility is giving each chunk two 32-bit headers instead of one (32 bits for the length, 32 bits for the offset). The Anvil format was originally introduced when block data was only 12 bits and written books did not exist. Now that block data can be significantly larger, the Anvil file format is starting to show its age and some consideration should be given to replacing it. |
| Comment by Fabian Röling [ 12/Jul/16 ] |
|
Can anyone confirm for 1.10.2 or attach a test world with coordinates? |
| Comment by Mateus Gomes [ 26/Nov/14 ] |
|
I've been having issues with this in pretty much every world I have. Like Thomas said, I can confirm that after the chunk is defect for an unknown reason it may reset every time it is re-loaded. It reverts to it's previous state even though all other chunks surrounding it have maintained their latest data. My first guess of the cause was having a fast clock running somewhere in the world that would somehow delay chunk saves, but now I see that must not be the case. |
| Comment by Thomas Hall [ 02/Nov/14 ] |
|
I'm having an issue where I use a command block to spawn a custom mob (a villager,) then I do something else where the chunk gets unloaded, and come back and the mob has vanished and the command block that I broke has returned. This happens on the same chunk every time. |
| Comment by Galaxy_2Alex [ 26/Oct/14 ] |
|
Reopened, thanks |
| Comment by Asparuh Ivanov [ 26/Oct/14 ] |
|
I ran my old world which had this issue and it still persisted with the troublesome villager alive. As for whether it appears or not in a world where it previously wasn't a thing I'd suspect not as to my understanding it was caused by the villager transition form 1.7 to 1.8. Note that I am not backing up my suspicion nor my understanding of the matter with facts or code elements and may be completely in an opposite direction form the truth. I'm still too new to java to be able to inspect the code myself for such flaws. Yet I still keep the worlds archived and could easily send them to anyone willing to look into the matter. |
| Comment by Galaxy_2Alex [ 24/Oct/14 ] |
|
Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by Asparuh Ivanov [ 01/Sep/14 ] |
|
Ok, I have a suspicion. Both me and Etho had an identical issue, which was cased by villagers transferred form 1.7 to 1.8 snapshots. My suggestion is, check entities who's behavior/AI/visuals or whatever has been changed. Back up the world before doing anything. After backing the world just "/kill @e". See if issue persists. If not, reload the backup and start picking out the corrupting entities. If not, open another ticket with the same name to attract the attention of a developer, who will refer you to this issue. Note that in my case the corrupting entity was only one, where as in Etho's case it was two villagers in the chunk who were both causing the issue, which can tell us there can be multiple causes for chunk corruption. Hope this helps. |
| Comment by Sahara hawkins [ 31/Aug/14 ] |
|
it's impossible to play in that area of my game now because some things, like lava, torches, dogs and water, are refusing to update. just my luck that I have farms for several things in that chunk. |
| Comment by M Richter [ 01/Jul/14 ] |
|
added a logfile from today oh right and in my 'failchunk' there isn't any generated Structure apart from Caves and an Abandoned Mineshaft, that stretches in the chunk from outside, that was also the cause for noticing the Bug. |
| Comment by Asparuh Ivanov [ 13/Apr/14 ] |
|
My real hope is that, as said, Mojang can somehow use the information I was able to provide (I think this is the first ever chunk issue solved) as a guidelight to the solution. (Looking at the kind gentlemen form Mojang) As I said, for any more info, that I can provide ofcourse, PM me on youtube, I check that most often. |
| Comment by Whilyam [ 13/Apr/14 ] |
|
Interesting! I know that there is a broken Fisherman villager in the chunk I have problems with. I will try killing him. I know that the chunk duplicates mobs that were in the chunk in the previous state. I had a fletcher in that chunk, moved him, and now there's two of him. But when I moved one of my dogs into the chunk, the dog vanished upon reloading. So entities could be the source of the issue. |
| Comment by Asparuh Ivanov [ 13/Apr/14 ] |
|
Hay mates! I noticed something really strange on the Defect chunk on my server. There is a Fletcher Villager with the following incompletable trade: Air + Air = Emerald. I'm putting a link to a video for more detail, in which I import it to single player and will do a bit of experimenting. Fingers crossed this at least helps! Link: https://www.youtube.com/watch?v=n83-Q-_g44E&feature=youtu.be P.S.: BREAKTHROUGH! I FOUND THE CAUSE! Now that I've provided info for the it, the good gentlemen form mojang may have something to clink to. My guess is that it is an NBT error but let the experts say. HOPE THIS HELPS! Note: After the video ends and the villager is gone, all is normal. No chunk error, no crashes, propper chunk updates. Also, what I ment at the end is, if someone needs more info, or say mojang wants the world for closer inspection, then PM me. I will make a backup with the saves showed in this video (3 total: the gliched, the one where I kill the Villager and the one where he dissappears). Regards, Doomkaliber! |
| Comment by Whilyam [ 09/Apr/14 ] |
|
This is still occurring in the latest snapshots. I have a potential cause, or at least a curious correlation. The chunk that I notice resetting in my SSP world happens to also be a slime chunk. Could someone else with this problem check and see if the affected chunks are slime-spawning chunks? |
| Comment by Francisco Gimeno [ 25/Feb/14 ] |
|
I don't think so. |
| Comment by Kumasasa [ 25/Feb/14 ] |
|
Francisco Gimeno : Is your issue described in |
| Comment by Owen Krueger [ 25/Feb/14 ] |
|
I can confirm that I have the same problem in my survival world. |
| Comment by London Summers [ 25/Feb/14 ] |
|
I posted a duplicate of this (because I was specifically having problems with command block and didn't know it was a chunk error) This is on an adventure map I have been working on for ages, and the most recent bug fixes apparently caused all the chunks I have worked on to reload.... I am going to experiment with MCedit, but is there any thing I can do to save all of my bug fixes? If not I have a back up so that wont be a problem.... any help will be appreciated. |
| Comment by Francisco Gimeno [ 19/Feb/14 ] |
|
Yep, there you have the report. |
| Comment by [Mod] CubeTheThird [ 19/Feb/14 ] |
|
@Francisco, can you open your world, try interacting with this chunk, close your game, then do the following: |
| Comment by Francisco Gimeno [ 19/Feb/14 ] |
|
14w08a sadly still have the bug. Is anybody taking care of the bug or I should restart a new world? |
| Comment by Francisco Gimeno [ 14/Feb/14 ] |
|
14w07a, bug still there... |
| Comment by Francisco Gimeno [ 09/Feb/14 ] |
|
This is a video where you can clearly see what's is going on.The chunk recreate itself at each relog. I'm in the latest snapshot. |
| Comment by Michael Wallace [ 07/Feb/14 ] |
|
affecting 14w06b |
| Comment by Michael Wallace [ 04/Feb/14 ] |
|
It is only my spawn chunk that is affected |
| Comment by Michael Wallace [ 04/Feb/14 ] |
|
I have this problem in 14w05b but i am a noob! How do i update affected versions? |
| Comment by [Mod] Ezekiel (ezfe) [ 03/Feb/14 ] |
|
Is this still a concern in the latest Minecraft version 14w05b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. |
| Comment by John Distler [ 05/Jun/13 ] |
|
Seems like a very obnoxious bug. I have probably a couple of those phony chunks in my world. |
| Comment by Hamsterraecher [ 10/Apr/13 ] |
|
I´ve fixed my world a few days ago. I put my world into a Bukkitserver with the Worldedit plugin and marked the Chuck with the //wand tool. I made //expand vert, so that the whole Area is marked and i typed //regen and the chunk was regenerated. Since i´ve made this the Error is gone |
| Comment by Tails [ 09/Apr/13 ] |
|
Please start Minecraft by minecraft.bat java -Xmx1g -Xms512M -cp minecraft.exe net.minecraft.LauncherFrame 1> log.txt 2> error.txt and attach log.txt and error.txt after the error occured. |
| Comment by Cody Peyton [ 19/Mar/13 ] |
|
I've got this problem, too. A chunk where I built a staircase to traverse a cliff keeps reverting to an older state with a shoddy older staircase I built. Something strange used to happen, for a while, the old chunk (with the nice stone staircase) would flicker for a moment before going back to the old wooden shoddy one. |
| Comment by Hamsterraecher [ 05/Mar/13 ] |
|
In snapshot 13w10a, it looks like this.If you try to fly trough it, you stuck in it. Minecarts can drive normally trough it. The Minecarts, who are in this chunk, will double itselfs after relogging. |
| Comment by Bassmaster [ 04/Mar/13 ] |
|
How is the progress on this issue going on? I thought the past several snapshots would probably have it covered. Any news? |
| Comment by Bassmaster [ 14/Jan/13 ] |
|
The error persists at any height in the chunk. I tried building on top of where I was getting the error initially, and the same happened. All of this with and unmodded Minecraft.jar. |
| Comment by Hamsterraecher [ 30/Nov/12 ] |
|
With a unmodded Minecraft.jar it is the same. I had already tried this. It was in every version i had updated to. |
| Comment by Mustek [ 30/Nov/12 ] |
|
Can you try this without optifine? |
| Comment by Hamsterraecher [ 30/Nov/12 ] |
|
Yes, this appeared a few month ago and i just had installed optifine. |
| Comment by [Mod] CubeTheThird [ 30/Nov/12 ] |
|
Well I cannot seem to recreate this. Does this occur without any mods installed? |
| Comment by Hamsterraecher [ 30/Nov/12 ] |
|
The seed is -1063925407743966132 The coordinates are: |
| Comment by [Mod] CubeTheThird [ 30/Nov/12 ] |
|
Can you provide seed + coordinates? |
| Comment by Hamsterraecher [ 30/Nov/12 ] |
|
This is in my singleplayer world, which i created in the version 1.2.5. |
| Comment by [Mod] CubeTheThird [ 30/Nov/12 ] |
|
Is this singleplayer or multiplayer? |
| Comment by Hamsterraecher [ 30/Nov/12 ] |
|
The first screenshot shows the chunk before i place the blocks. After the second log in in the world, theres a block update and the changes on the chunk disappear. |
| Comment by [Mod] CubeTheThird [ 30/Nov/12 ] |
|
Can you attach a screenshot? |