Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neoforge 1.21 Config Crash #190

Closed
Saereth opened this issue Aug 19, 2024 · 6 comments
Closed

Neoforge 1.21 Config Crash #190

Saereth opened this issue Aug 19, 2024 · 6 comments

Comments

@Saereth
Copy link

Saereth commented Aug 19, 2024

Issue type:

  • 🐛 Bug

Short description:

When updating Flopper and Cyclopse core to latest the pack no longer launches with the following error:

The game crashed whilst unexpected error
Error: java.lang.IllegalStateException: Cannot get config value before config is loaded.

https://mclo.gs/ApoHSVV

Steps to reproduce the problem:

Currently Working:
CyclopsCore-1.21.1-neoforge-1.19.11.jar
Flopper-1.21-neoforge-1.1.5.jar

Whenever I update to these versions it no longer loads/crashes:
cyclopscore-1.21.1-neoforge-1.20.0-570.jar
flopper-1.21.1-neoforge-1.1.6-139.jar

Expected behaviour:

I would expect to to load as normal


@rubensworks
Copy link
Member

Thanks for reporting!

@rubensworks
Copy link
Member

Since the crashlog doesn't mention CC or Flopper, I don't see yet how this is connected. (it seems to be SimpleWeather triggering the problem)
Could you share your full NeoForge logs? There might be something else in there.

@rubensworks rubensworks moved this from To Do to On hold (awaiting input) in Maintenance Aug 20, 2024
@Saereth
Copy link
Author

Saereth commented Aug 20, 2024

This is a pretty common issue with neoforge mods these days, its misreported in the log, but yeah the debug log shows it better.
https://mclo.gs/DMc0cCk

You can see around line 13276 all of the cyclopscore reliant mods fail to load with the newer version

Revelant exerpt:


[net.neoforged.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: integratedterminals, class org.cyclops.integratedterminals.IntegratedTerminals
java.lang.NullPointerException: Cannot invoke "org.cyclops.cyclopscore.init.IModBase.getModHelpers()" because "org.cyclops.cyclopscore.helper.CyclopsCoreInstance.MOD" is null
	at TRANSFORMER/[email protected]/org.cyclops.cyclopscore.helper.IModHelpers.get(IModHelpers.java:12) ~[cyclopscore-1.21.1-neoforge-1.20.0-570.jar%23532!/:1.20.0-570]
	at TRANSFORMER/[email protected]/org.cyclops.cyclopscore.helper.MinecraftHelpers.isClientSide(MinecraftHelpers.java:130) ~[cyclopscore-1.21.1-neoforge-1.20.0-570.jar%23532!/:1.20.0-570]
	at TRANSFORMER/[email protected]/org.cyclops.cyclopscore.init.ModBase.<init>(ModBase.java:95) ~[cyclopscore-1.21.1-neoforge-1.20.0-570.jar%23532!/:1.20.0-570]
	at TRANSFORMER/[email protected]/org.cyclops.cyclopscore.init.ModBaseVersionable.<init>(ModBaseVersionable.java:22) ~[cyclopscore-1.21.1-neoforge-1.20.0-570.jar%23532!/:1.20.0-570]
	at TRANSFORMER/[email protected]/org.cyclops.integratedterminals.IntegratedTerminals.<init>(IntegratedTerminals.java:60) ~[IntegratedTerminals-1.21.1-neoforge-1.5.1.jar%23598!/:1.5.1]
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62) ~[?:?]
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502) ~[?:?]
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486) ~[?:?]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:115) ~[loader-4.0.24.jar%23106!/:4.0]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$constructMods$3(ModLoader.java:153) ~[loader-4.0.24.jar%23106!/:4.0]
	at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.lambda$dispatchParallelTask$7(ModLoader.java:231) ~[loader-4.0.24.jar%23106!/:4.0]
	at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) [?:?]
	at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) [?:?]
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483) [?:?]
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) [?:?]
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) [?:?]
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) [?:?]
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) [?:?]
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [?:?]
[20Aug2024 01:04:28.886] [modloading-worker-0/ERROR] [net.neoforged.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: integratedterminalscompat, class org.c

Only these 2 mods seem impacted, and flopper may be unrelated but I cant update it without the new cyclopscore to test, it also works fine on the older version
image

@rubensworks
Copy link
Member

Aha, that's the stacktrace I need indeed, thanks!

@rubensworks
Copy link
Member

rubensworks commented Aug 20, 2024

Note to self: Use getModHelpers() instead of MinecraftHelpers on https://github.com/CyclopsMC/CyclopsCore/blob/master-1.21/loader-neoforge/src/main/java/org/cyclops/cyclopscore/init/ModBase.java#L95C9-L95C47

GitHub
Minecraft library mod for EvilCraft, Integrated Dynamics and others. - CyclopsMC/CyclopsCore

@rubensworks rubensworks moved this from On hold (awaiting input) to To Do (Major) in Maintenance Aug 20, 2024
@rubensworks
Copy link
Member

For reference, this was caused by some refactoring changes due to my recent addition of multiloader support.

@github-project-automation github-project-automation bot moved this from To Do (Major) to Done in Maintenance Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants