FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

Crash at game start when loading layout for a custom GUI that doesn't exist anymore

UnforgotenX opened this issue ยท 8 comments

commented

Describe the bug
After a crash on a world preview screen (From a different mod) it no longer wishes to launch the game and just keeps saying
FancyMenu (fancymenu) has failed to load correctly
java.lang.ExceptionInInitializerError: null
Screenshot

To Reproduce
No clue how to reproduce this as it happened after a crash and wasn't happening before

Crash Log
crash.txt
latest.log

Basic Informations:

  • Minecraft Version: 1.16.5
  • Forge Version: 36.2.34
  • Operating System: Windows 10 (amd64) version 10.0
  • Java Version: 1.8.0_51, Oracle Corporation
  • Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
  • Memory: 2114505080 bytes (2016 MB) / 3635937280 bytes (3467 MB) up to 15957229568 bytes (15218 MB)
  • CPUs: 12
  • FancyMenu Version: 2.7.2
  • Active Mods: 354 active mods modlist.txt
commented
  • Try to re-download FancyMenu + dependencies
  • Try to launch the game with only FancyMenu + dependencies installed
  • If it runs with only FM + dependencies, try to re-download your other mods
commented

I have tried it with only FancyMenu and it loads all the animations, I reinstalled FancyMenu into the modpack and it gave me a different crash... and then the same crash. I will reinstall all the mods

commented

I redownloaded every mod and it gave me the same issue, I dont know what happened with the crash.

[03:34:12] [modloading-worker-9/ERROR]: Failed to create mod instance. ModID: fancymenu, class de.keksuccino.fancymenu.FancyMenu
java.lang.ExceptionInInitializerError: null
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_51]
	at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_51]
	at de.keksuccino.fancymenu.menu.fancy.MenuCustomization.updateCustomizeableMenuCache(MenuCustomization.java:85) ~[?:1.0.0]
	at de.keksuccino.fancymenu.menu.fancy.MenuCustomization.init(MenuCustomization.java:64) ~[?:1.0.0]
	at de.keksuccino.fancymenu.FancyMenu.<init>(FancyMenu.java:107) ~[?:1.0.0]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_51]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_51]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_51]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_51]
	at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_51]
	at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) [?:36.2]
	at net.minecraftforge.fml.javafmlmod.FMLModContainer$$Lambda$2659/549207679.run(Unknown Source) [?:36.2]
	at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) [?:?]
	at net.minecraftforge.fml.ModContainer$$Lambda$3141/1757140418.run(Unknown Source) [?:?]
	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) [?:1.8.0_51]
	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51]
Caused by: java.lang.NullPointerException: Registry Object not present: supplementaries:globe
	at java.util.Objects.requireNonNull(Objects.java:290) ~[?:1.8.0_51]
	at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:120) ~[?:?]
	at net.mehvahdjukaar.supplementaries.compat.configured.CustomConfigScreen.<clinit>(CustomConfigScreen.java:45) ~[?:1.16.5-0.18.4]
	... 20 more
[03:34:12] [modloading-worker-2/INFO]: Destroyed
commented

I have tried it with only FancyMenu and it loads all the animations

So it works with only FancyMenu + dependencies?
Then it's probably a mod conflict that doesn't crash the game every time. Maybe it worked the first few times and now it's crashing. You have 350+ mods, which is an insane amount, so it's absolutely possible that things like this happen.

Another possible fix would be to re-download Forge.

But just in case it's really a bug in FancyMenu, I will see if I can reproduce it in a few hours. Just need some sleep first.

commented

I fixed it, I had a custom layout for a deleted GUI still in the files, I deleted that custom layout and it boots up fine now

commented

Ohhh, so you made a layout for a mod GUI, then uninstalled the mod and it started crashing at game start?

Interesting! I think it tries to find the GUI when loading layouts, but that shouldn't crash the game o.O

Will check this, thank you for telling me!

commented

I created a custom gui with fancy menu and deleted the gui without deleting the layout

commented

Hmm, I wasn't able to reproduce this. I think this was just a weird combination of many factors that caused this. It works now, so if it doesn't happen again, it's fine I guess.

But if it happens again, please tell me and I will take a further look into it!