question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Basins cause "Failed to store chunk [x, z]" error in log and eventually crashes servers

See original GitHub issue

Describe the Bug

I’m playing on a multiplayer server using a custom pack that contains create for the past week or so. Due to how I setup the pack the create mod is gated behind other content and I was the first person on the server to unlock/use create related items. After building an early game setup using a windmill/sailblocks + a press + a mixer/basin I noticed the same error being spammed in the log file: [03:08:24] [IO-Worker-7/ERROR]: Failed to store chunk [-33, 128] java.util.ConcurrentModificationException: null at Not Enough Crashes deobfuscated stack trace.(1.18.1+build.22) ~[?:?] at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?] at java.util.HashMap$KeyIterator.next(HashMap.java:1620) ~[?:?] at net.minecraft.nbt.NbtCompound.write(NbtCompound:163) ~[?:?] at net.minecraft.nbt.NbtIo.write(NbtIo:118) ~[?:?] at net.minecraft.nbt.NbtIo.write(NbtIo:83) ~[?:?] at net.minecraft.world.storage.RegionBasedStorage.write(RegionBasedStorage:79) ~[?:?] at net.minecraft.world.storage.StorageIoWorker.write(StorageIoWorker:174) ~[?:?] at net.minecraft.world.storage.StorageIoWorker.writeResult(StorageIoWorker:164) ~[?:?] at net.minecraft.util.thread.TaskQueue$PrioritizedTask.run(TaskQueue:59) ~[?:?] at net.minecraft.util.thread.TaskExecutor.runNext(TaskExecutor:91) ~[?:?] at net.minecraft.util.thread.TaskExecutor.runWhile(TaskExecutor:146) ~[?:?] at net.minecraft.util.thread.TaskExecutor.run(TaskExecutor:102) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:833) [?:?]

The error only occurs when the chunk in question was unloaded in a specific way (I log off the server OR I travel far away from the chunk so it unloads and then I change dimensions by going through a nether portal). The only things in chunk [-33, 128] were some shafts, a belt, a mechanical press, and a mixer+basin. I knew of a bug on forge related to basins that was fixed recently so that was the first thing that I removed and the error/log spam went away so I think that is most likely the culprit,

Before I removed the basin the above error was spammed in the log until eventually the server crashed. Crash report can be found in a pastebin linked below

Reproduction Steps

  1. Play on a multiplayer server?
  2. Place a basin in a chunk away from spawn chunks
  3. Log off the server OR travel far enough away from the basin chunk so that it unloads then enter the nether
  4. Check the log for “Failed to store chunk [x.z]” error and wait long enough for the server to crash (it doesn’t crash instantly)

Expected Result

Basins don’t cause problems

Screenshots and Videos

No response

Crash Report or Log

https://pastebin.com/ZvKBXcxn

Operating System

Client = Windows, Server = Linux

Mod Version

0.4.0c

Minecraft Version

1.18.1

Other Mods

see crash report

Additional Context

I was using this build of create btw: https://github.com/Fabricators-of-Create/Create/actions/runs/1775103261

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TropheusJcommented, Feb 8, 2022

This log is either cut off or very early into server start. Install the mod, and just play as normal, trying to reproduce the error. Check the logs for any CME in tag write!s and if there are any, send them here.

1reaction
TropheusJcommented, Feb 7, 2022

I threw together a little mod to print some debug info to the logs. BEWARE - this will prevent the original exception from being thrown. I have no idea what the implications of this are, but it might brick your world. MAKE A BACKUP Inside this zip is a mod jar. Install it and try to get it to happen again. Instead of a big error, you should see a line saying CME in tag write! with some information below it in the log. catastrophic_failure.zip Once it happens, please send the log here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to store/load/save chunk - Minecraft Forum
[p]This is the full error. (This error happened for almost every chunks(not all) that has positive z coordinates and negative x ...
Read more >
Server error: Failed to store chunk | The media is write protected
It means that for some reason, the server is unable to write on the Ramdisk, something is blocking it from doing so, this...
Read more >
Failed to save chunk · Issue #248 · bergerhealer/TrainCarts
The problem likely has to do with a null DimensionManager instance, something in-part caused by some broken CraftBukkit code.
Read more >
[1.18.2] Failed to store chunk - Minecraft Forge Forums
Hello I'm making a modpack me and me friends. While I pregen my world I got this error: [16Jul2022 21:04:10.692] [IO-Worker-23/ERROR] ...
Read more >
Reactor 3 Reference Guide
Before you learn about error-handling operators, you must keep in mind that any error in a reactive sequence is a terminal event. Even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found