Integrated Derivative

Integrated Derivative

156k Downloads

Crash on world loading (unstable to reproduce)

Krutoy242 opened this issue · 5 comments

commented

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

commented

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

commented

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.

commented

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.

commented
  1. I dont know why. I may just need to report this to CensoredASM github i guess.
  2. I dont know why. On world load MC window freezes and seems like it fall into crash loop while freezed
  3. 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?
commented

I haven't touched the network generation code. I do believe it may be some kind of a race condition, where the mod expects that capabilities expect by the time network is generated, and for some reason they don't exist. Idk, I'll need to do more work than just cursory read.