Crash on world loading (unstable to reproduce)
Krutoy242 opened this issue · 5 comments
I found that loading my old world causing crash:
java.lang.NullPointerException: Cannot invoke "org.cyclops.cyclopscore.modcompat.capabilities.ICapabilityConstructor.createProvider(Object, Object)" because "capabilityConstructor" is null
at org.cyclops.cyclopscore.modcompat.capabilities.CapabilityConstructorRegistry.createProvider(CapabilityConstructorRegistry.java:186)
at org.cyclops.cyclopscore.modcompat.capabilities.CapabilityConstructorRegistry.addLoadedCapabilityProvider(CapabilityConstructorRegistry.java:223)
at org.cyclops.cyclopscore.modcompat.capabilities.CapabilityConstructorRegistry.onLoad(CapabilityConstructorRegistry.java:208)
at org.cyclops.cyclopscore.modcompat.capabilities.CapabilityConstructorRegistry.onLoad(CapabilityConstructorRegistry.java:192)
at org.cyclops.cyclopscore.modcompat.capabilities.CapabilityConstructorRegistry$TileEventListener.onTileLoad(CapabilityConstructorRegistry.java:284)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_3414_TileEventListener_onTileLoad_AttachCapabilitiesEvent.invoke(.dynamic)
- This crash does not happens each game=>world load
- After crash, when I dropped into main meny, joining any world will cause same crash
- Reloading game fix the issue but not always. I restarted game abut 20 times today and about 7 times it was crashing
- Removing IntegratedDerivative fix the issue, but this is not 100% confirmed. Today i restarted game about 12 times without the mod with
0
crashes, so i suspect its Derivative.
debug.log
This does not look like my fault. Might still look at it when I have time. No promises though.
I assume this happens in E2EE right? If you can reproduce it in a behavior with only mixin mods installed (VintageFix, CensoredASM, etc) + ID + Deriv that would go a long way towards debugging it
Yes, this is happen on E2EE.
I cant test it with only few mods installed since the world is heavy-filled with modded blocks, and removing content mods will cause world malfunction.
Some weird things in this debug log:
Part 1: Censored ASM fails to guess the mod name due to bad path to its jar file
Suspected Mods: java.lang.RuntimeException: java.io.IOException: Синтаксическая ошибка в имени файла, имени папки или метке тома
at zone.rong.loliasm.common.crashes.ModIdentifier.makeModMap(ModIdentifier.java:79)
at zone.rong.loliasm.common.crashes.ModIdentifier.identifyFromStacktrace(ModIdentifier.java:24)
at net.minecraft.crash.CrashReport.md46d950$unknown_owner$lambda$afterPopulateEnvironment$0$0(CrashReport.java:550)
at net.minecraft.crash.CrashReportCategory.func_189529_a(CrashReportCategory.java:96)
Part 2: Minecraft crashed 53 times while trying to load this world.
Part 3: The crash happens when trying to load an Energy Battery, which I clearly have not modified. The crash says that some capability is null, but it happens in highly generic part of code which means it's hard to debug it (but that happens sometimes). After grepping through my code, I am not modifying any capability code substantially enough to cause this crash.
What the hell.
- I dont know why. I may just need to report this to CensoredASM github i guess.
- I dont know why. On world load MC window freezes and seems like it fall into crash loop while freezed
- Maybe its related to some network update mechanic? Maybe you changed some code that update nodes or changing other nodes way of adding new ones?