[Create Diesel Generators] Crashes on Minecraft 1.20.1 (Forge) Due to Concurrent Modification Exception
HSWJR opened this issue · 2 comments
Description
Minecraft 1.20.1 (Forge 47.4.0) crashes immediately on launch when the mod Create Diesel Generators (v1.20.1-1.3.5) is installed. The root cause is a java.util.ConcurrentModificationException during mod loading, which appears to stem from compatibility issues with Create's auxiliary rendering library and performance optimization mods.
Environment Details
Minecraft Version: 1.20.1
Loader & Version: Forge 47.4.0
Core Dependent Mod: Create (v6.0.6, runs stably independently)
Relevant Mods Involved:
Embeddium (v0.3.31, performance optimization mod)
Ponder-Forge (v1.20.1-1.0.80, Create's auxiliary rendering library)
Other Potentially Related Mods:
Entity Texture Features (v7.0.2)
Oculus (v1.8.0)
Note: Embeddium logs warn these two mods "taint" its instance, but the crash persists even after removing them.
Core Crash Log Snippet
plaintext
-- MOD createdieselgenerators --
Details:
Caused by 0: java.lang.ExceptionInInitializerError
at com.jesz.createdieselgenerators.CreateDieselGenerators.onClient(CreateDieselGenerators.java:79)
...
Failure message: Create Diesel Generators (createdieselgenerators) has failed to load correctly
java.lang.ExceptionInInitializerError: null
Exception message: java.util.ConcurrentModificationException
Stacktrace:
at java.util.HashMap.computeIfAbsent(HashMap.java:1221)
at net.createmod.catnip.render.StitchedSprite.(StitchedSprite.java:23) ~[Ponder-Forge-1.20.1-1.0.80.jar%23505!/:1.0.80]
at com.jesz.createdieselgenerators.CDGSpriteShifts.(CDGSpriteShifts.java:9) ~[createdieselgenerators-1.20.1-1.3.5.jar%23325!/:1.20.1-1.3.5]
Reproduction & Troubleshooting
Reproduction Steps:
Set up a mod pack with Create (v6.0.6) + Embeddium (v0.3.31) on Minecraft 1.20.1 (Forge 47.4.0).
Add Create Diesel Generators (v1.20.1-1.3.5) to the pack.
Launch Minecraft — crash occurs immediately during mod loading.
Remove Create Diesel Generators — Minecraft launches and runs normally.
Troubleshooting Conclusion:
The crash is not caused by other mods: Testing with only Create (core), Create Diesel Generators, and basic Forge loader still results in the same crash.
The issue lies in conflicting texture rendering logic: The exception occurs when StitchedSprite (from Create's Ponder library) initializes, triggered by CDGSpriteShifts in Create Diesel Generators. This suggests a race condition or improper handling of HashMap operations during concurrent mod loading.
Request
Could you confirm if Create Diesel Generators (v1.20.1-1.3.5) is fully compatible with:
Create v6.0.6
Embeddium v0.3.31
Minecraft 1.20.1 + Forge 47.4.0
It is compatible. Sometimes it crashes like this. I think I know what's the reason for this crash, so it may get fixed soon