Failed to decompress chunk data
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Stack trace
[20:33:08] [Paper Common Worker #0/ERROR]: [ca.spottedleaf.moonrise.patches.chunk_system.io.MoonriseRegionFileIO] Failed to decompress chunk data for task: Task for world: 'world_the_end' at (-135,4) type: CHUNK_DATA, hash: 901536466
net.minecraft.nbt.ReportedNbtException: Loading NBT data
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:538) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.loadCompound(CompoundTag.java:57) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:35) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:532) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.loadCompound(CompoundTag.java:57) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:35) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:532) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.loadCompound(CompoundTag.java:57) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:35) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:532) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.loadCompound(CompoundTag.java:57) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:35) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.NbtIo.readTagSafe(NbtIo.java:196) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.NbtIo.readUnnamedTag(NbtIo.java:190) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.NbtIo.read(NbtIo.java:126) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.NbtIo.read(NbtIo.java:117) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.world.level.chunk.storage.RegionFileStorage.moonrise$finishRead(RegionFileStorage.java:233) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at ca.spottedleaf.moonrise.patches.chunk_system.io.datacontroller.ChunkDataController.finishRead(ChunkDataController.java:48) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at ca.spottedleaf.moonrise.patches.chunk_system.io.MoonriseRegionFileIO$ChunkIOTask.performReadDecompress(MoonriseRegionFileIO.java:1140) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at ca.spottedleaf.concurrentutil.executor.queue.PrioritisedTaskQueue$PrioritisedQueuedTask.execute(PrioritisedTaskQueue.java:281) ~[concurrentutil-0.0.3.jar:?]
at ca.spottedleaf.concurrentutil.executor.queue.PrioritisedTaskQueue.executeTask(PrioritisedTaskQueue.java:101) ~[concurrentutil-0.0.3.jar:?]
at ca.spottedleaf.concurrentutil.executor.thread.PrioritisedThreadPool$ExecutorGroup$ThreadPoolExecutor.executeTask(PrioritisedThreadPool.java:533) ~[concurrentutil-0.0.3.jar:?]
at ca.spottedleaf.concurrentutil.executor.thread.PrioritisedThreadPool$PrioritisedThread.pollTasks(PrioritisedThreadPool.java:354) ~[concurrentutil-0.0.3.jar:?]
at ca.spottedleaf.concurrentutil.executor.thread.PrioritisedQueueExecutorThread.doRun(PrioritisedQueueExecutorThread.java:72) ~[concurrentutil-0.0.3.jar:?]
at ca.spottedleaf.concurrentutil.executor.thread.PrioritisedQueueExecutorThread.run(PrioritisedQueueExecutorThread.java:49) ~[concurrentutil-0.0.3.jar:?]
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:266) ~[?:?]
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:175) ~[?:?]
at net.minecraft.util.FastBufferedInputStream.fill(FastBufferedInputStream.java:94) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.util.FastBufferedInputStream.read(FastBufferedInputStream.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at java.base/java.io.DataInputStream.readFully(DataInputStream.java:208) ~[?:?]
at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:594) ~[?:?]
at java.base/java.io.DataInputStream.readUTF(DataInputStream.java:550) ~[?:?]
at net.minecraft.nbt.CompoundTag$1.readString(CompoundTag.java:131) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.loadCompound(CompoundTag.java:56) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:42) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag$1.load(CompoundTag.java:35) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.ListTag$1.loadList(ListTag.java:41) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.ListTag$1.load(ListTag.java:21) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.ListTag$1.load(ListTag.java:14) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
at net.minecraft.nbt.CompoundTag.readNamedTagData(CompoundTag.java:532) ~[paper-1.21.4.jar:1.21.4-126-fb5b173]
... 28 more
Plugin and Datapack List
Server Plugins (16):
Bukkit Plugins:
- floodgate, Geyser-Spigot, GSit, LoginSecurity, LuckPerms, PlaceholderAPI, SkBee, SkCheese, SkinsRestorer, SkReloader
Skript, skript-placeholders, skript-reflect, TAB, ViaBackwards, ViaVersion
There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
There are no more data packs available
Actions to reproduce (if known)
I ran out of disk space while the server was running. I stopped the server, upgraded my disk space and restarted. Everything was fine except for a specific chunk in the end, it was spamming it in the console for millions of lines.
Teleporting inside the chunk caused my CPU usage to spike to 300% and timed out everyone.
I deleted the chunk with mcaselector and the world is fine now and I was told to report this on Discord.
Here is a backup of the corrupted world_the_end folder. The corrupted chunk is inside the -5, 0 region
Paper version
This server is running Paper version 1.21.4-126-main@fb5b173 (2025-01-25T20:51:32Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are 12 version(s) behind
Other
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied world_the_end.zip and the stack trace through RegionFileStorage.moonrise$finishRead, NbtIo, and MoonriseRegionFileIO$ChunkIOTask.performReadDecompress. Reproduce loading the corrupted chunk at (-135,4) in the -5, 0 region and inspect how the EOFException is handled. Done should include reliable handling of this corrupted chunk without repeated console spam, CPU spikes, or server timeouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100