Skip to content

java.util.ConcurrentModificationException: null #310

@Kettle5000

Description

@Kettle5000

After a damn looooooooooooooooooong investigation
we found out that your mods, this library, enhanced visuals, ambient sounds are causing random crashes to happen
those have been detected by modernfix but even this mod cant handle those crashes sometimes

if you need more info:

https://github.com/embeddedt/ModernFix/wiki/registerReloadListener-called-on-wrong-thread

i got the exact same crash as expressed here:
embeddedt/ModernFix#512
and when i checked the logs, modernfix said this

[17:55:00] [Worker-ResourceReload-16/ERROR]: A mod is calling registerReloadListener at the wrong time. This will cause random concurrency crashes when ModernFix is not installed. Please report this to them. If you are a modder, refer to https://github.com/embeddedt/ModernFix/wiki/registerReloadListener-called-on-wrong-thread for more information.
java.lang.Exception: registerReloadListener called on wrong thread
	at net.minecraft.server.packs.resources.ReloadableResourceManager.wrapMethod$zie000$checkCallingThread(ReloadableResourceManager.java:540) ~[client-1.20.1-20230612.114412-srg.jar%23516!/:?]
	at net.minecraft.server.packs.resources.ReloadableResourceManager.m_7217_(ReloadableResourceManager.java) ~[client-1.20.1-20230612.114412-srg.jar%23516!/:?]
	at team.creative.enhancedvisuals.client.EVClient.init(EVClient.java:25) ~[EnhancedVisuals_FORGE_v1.8.2_mc1.20.1.jar%23394!/:1.8.2]
	at team.creative.creativecore.CreativeForgeLoader.registerClientStarted(CreativeForgeLoader.java:123) ~[CreativeCore_FORGE_v2.12.36_mc1.20.1.jar%23373!/:2.12.36]
	at team.creative.enhancedvisuals.EnhancedVisuals.onInitializeClient(EnhancedVisuals.java:58) ~[EnhancedVisuals_FORGE_v1.8.2_mc1.20.1.jar%23394!/:1.8.2]
	at team.creative.creativecore.CreativeForgeLoader.lambda$registerClient$2(CreativeForgeLoader.java:63) ~[CreativeCore_FORGE_v2.12.36_mc1.20.1.jar%23373!/:2.12.36]
	at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:260) ~[eventbus-6.0.5.jar%2387!/:?]
	at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:252) ~[eventbus-6.0.5.jar%2387!/:?]
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2387!/:?]
	at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2387!/:?]
	at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:121) ~[javafmllanguage-1.20.1-47.4.13.jar%23518!/:?]
	at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$5(ModContainer.java:127) ~[fmlcore-1.20.1-47.4.13.jar%23517!/:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]

now i would try to help you with this but after checking your code.....
I have absolutely no clue how to lol
this has happened on 1.20.1 minecraft and forge 47.4.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions