LoliKingdom / LoliASM

The lolis are now preparing to bytecode manipulate your game.
GNU Lesser General Public License v2.1
104 stars 22 forks source link

Load crash: `ClassFormatError: Duplicate field name "rtFullBright" in class VertexLighterFlat` #251

Closed Krutoy242 closed 3 weeks ago

Krutoy242 commented 3 weeks ago

Sometimes about 1 per 50 launching E2EE, game wont start. During load its crashing with this error:

java.lang.NoClassDefFoundError: net/minecraftforge/client/model/pipeline/VertexLighterFlat
at net.minecraft.client.renderer.BlockRendererDispatcher.<init>(BlockRendererDispatcher.java:31)
at net.minecraft.client.Minecraft.init(Minecraft.java:525)
at net.minecraft.client.Minecraft.run(Minecraft.java:7101)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Caused by: java.lang.ClassNotFoundException: net.minecraftforge.client.model.pipeline.VertexLighterFlat
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 10 more

Caused by: java.lang.ClassFormatError: Duplicate field name "rtFullBright" with signature "Z" in class file net/minecraftforge/client/model/pipeline/VertexLighterFlat
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
... 12 more

https://mclo.gs/TH8yjpr

We searched for the reason of this crash many months already, and just recently, with -Dmixin.debug.export=true java args, i found that this class is modified with LoliASM.

Krutoy242 commented 3 weeks ago

Further investigation shows that removing LoliASM wont have effect. crash-2024-06-14_14.25.40-client.txt

Its strange, because in .mixin.out i found only LoliaASM that making mixins: VertexLighterFlat.java

Update: Running MC with -Dmixin.debug.export=true on the client with VertexLighterFlat error shows that net/minecraftforge/client/model/pipeline/VertexLighterFlat wasnt changed by mixins o_O, since no classes generated in this folder.

Krutoy242 commented 3 weeks ago

Im closing the issue, since its not LoliASM probably, but verbal help how I could find reason of this error is appreciated 😅