Skip to content

Random startup crash (ConcurrentModificationException) #168

Description

@MarioSMB

Describe the bug
Depending on the mods (likely other Create addons) you have installed, the game may "randomly" just crash during startup, digging into the logs you'll find the error java.util.ConcurrentModificationException.
This is a common problem among Create addons and this report of it will help you resolve it: talrey/CreateDeco#215

To Reproduce
Steps to reproduce the behavior:
This is a difficult one to answer unfortunately, as it only happens sometimes.

Expected behavior
N/A

Screenshots
This is a snippet of the complete error:

[modloading-worker-0/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: createmetallurgy, class fr.lucreeper74.createmetallurgy.CreateMetallurgy
java.lang.ExceptionInInitializerError: null
	at fr.lucreeper74.createmetallurgy.CreateMetallurgy.<init>(CreateMetallurgy.java:55) ~[createmetallurgy-1.0.1-1.20.1.jar%23449!/:1.0.1-1.20.1]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:?]
	at java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) ~[?:?]
	at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:?]
	at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:77) ~[javafmllanguage-1.20.1-47.4.20.jar%23614!/:?]
	at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$5(ModContainer.java:126) ~[fmlcore-1.20.1-47.4.20.jar%23613!/:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.run(Unknown Source) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(Unknown Source) ~[?:?]
	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?]
	at java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?]
Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap.computeIfAbsent(Unknown Source) ~[?:?]
	at net.createmod.catnip.render.StitchedSprite.<init>(StitchedSprite.java:23) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at net.createmod.catnip.render.StitchedSprite.<init>(StitchedSprite.java:27) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at net.createmod.catnip.render.SpriteShiftEntry.set(SpriteShiftEntry.java:15) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at net.createmod.catnip.render.SpriteShifter.lambda$get$0(SpriteShifter.java:19) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at net.minecraftforge.fml.DistExecutor.unsafeRunWhenOn(DistExecutor.java:111) ~[fmlcore-1.20.1-47.4.20.jar%23613!/:?]
	at net.createmod.catnip.platform.ForgePlatformHelper.executeOnClientOnly(ForgePlatformHelper.java:54) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at net.createmod.catnip.render.SpriteShifter.get(SpriteShifter.java:19) ~[Ponder-Forge-1.20.1-1.0.92.jar%23817!/:1.0.92]
	at fr.lucreeper74.createmetallurgy.registries.CMSpriteShifts.get(CMSpriteShifts.java:25) ~[createmetallurgy-1.0.1-1.20.1.jar%23449!/:1.0.1-1.20.1]
	at fr.lucreeper74.createmetallurgy.registries.CMSpriteShifts.<clinit>(CMSpriteShifts.java:14) ~[createmetallurgy-1.0.1-1.20.1.jar%23449!/:1.0.1-1.20.1]
	... 15 more

Environment:

  • MC/Forge version: Forge 47.4.20 (1.20.1)
  • Create version: 6.0.8
  • Create Metallurgy version: 1.0.1
  • Others mods / modpacks, datapacks: Various, but this is not isolated to any single mod/datapack.

Additional context
If any further information is needed let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐜Something isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions