Basins cause "Failed to store chunk [x, z]" error in log and eventually crashes servers
See original GitHub issueDescribe 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
- Play on a multiplayer server?
- Place a basin in a chunk away from spawn chunks
- Log off the server OR travel far enough away from the basin chunk so that it unloads then enter the nether
- 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
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:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
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.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.