Legacy4J

Legacy4J

224k Downloads

[Bug/Glitch] Game Crashes when joining a server

Closed this issue ยท 8 comments

commented

Legacy4J Version

1.21.6

Mod Loader Version

Fabric 0.16.14-1.21.6

Bug/Glitch Occurrence Context

Attempting to connect to a vanilla server, my game will crash before loading in. I've tried changing the settings of the mod and removing mods that I had but the game continues to crash when I try to go into a Minecraft server.

Crash Report

Description: Rendering item java.lang.RuntimeException: Mixin transformation of net.minecraft.class_11245 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) at knot//net.minecraft.class_332.method_51425(class_332.java:469) at knot//net.minecraft.class_332.method_51423(class_332.java:458) at knot//net.minecraft.class_329.method_1762$mixinextras$wrapped$249(class_329.java:1262) at knot//net.minecraft.class_329.mixinextras$bridge$method_1762$mixinextras$wrapped$249$250(class_329.java) at knot//net.minecraft.class_329.mda53082$legacy$lambda$renderSlotWithTransparency$0$1d(class_329.java:3621) at knot//wily.legacy.util.client.LegacyRenderUtil.secureTranslucentRender(LegacyRenderUtil.java:315) at knot//net.minecraft.class_329.wrapMethod$ccf000$legacy$renderSlotWithTransparency(class_329.java:3620) at knot//net.minecraft.class_329.method_1762(class_329.java) at knot//net.minecraft.class_329.method_1759(class_329.java:609) at knot//net.minecraft.class_329.mixinextras$bridge$method_1759$217(class_329.java) at knot//net.minecraft.class_329.mda53082$fabric-rendering-v1$lambda$wrapHotbar$3$14(class_329.java:1575) at knot//net.fabricmc.fabric.impl.client.rendering.hud.HudElementRegistryImpl$RootLayer.render(HudElementRegistryImpl.java:217) at knot//net.minecraft.class_329.wrapOperation$bai000$fabric-rendering-v1$wrapHotbar(class_329.java:1575) at knot//net.minecraft.class_329.method_55805(class_329.java:555) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$245(class_329.java:226) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$245$246(class_329.java) at knot//net.minecraft.class_329.wrapMethod$bjo000$iris$handleHudHidingScreens(class_329.java:3049) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$247(class_329.java) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$247$248(class_329.java) at knot//net.minecraft.class_329.wrapMethod$cjp000$ok_zoomer$zoomGui(class_329.java:4586) at knot//net.minecraft.class_329.method_1753(class_329.java) at knot//net.minecraft.class_757.method_3192(class_757.java:533) at knot//net.minecraft.class_310.method_1523(class_310.java:1361) at knot//net.minecraft.class_310.method_1514(class_310.java:947) at knot//net.minecraft.client.main.Main.main(Main.java:265) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ... 32 more Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [legacy.mixins.json:client.GuiItemRenderStateMixin from mod legacy] from phase [DEFAULT] in config [legacy.mixins.json] FAILED during APPLY at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638) at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:589) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) ... 35 more Caused by: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: Unexpecteded ClassMetadataNotFoundException whilst transforming the mixin class: [MAIN Applicator Phase -> legacy.mixins.json:client.GuiItemRenderStateMixin from mod legacy -> Apply Methods -> (Ljava/lang/String;Lorg/joml/Matrix3x2f;Lnet/minecraft/class_11540;IILnet/minecraft/class_8030;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V:handler$cgi000$legacy$init -> Transform LVT -> var=trackingItemStackRenderState -> desc=Lnet/minecraft/class_11540;] at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformMethod(MixinTargetContext.java:520) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyNormalMethod(MixinApplicatorStandard.java:463) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMethods(MixinApplicatorStandard.java:449) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:308) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:246) at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:437) at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:418) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ... 35 more Caused by: org.spongepowered.asm.mixin.throwables.ClassMetadataNotFoundException: net.minecraft.class_11540 at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformSingleDescriptor(MixinTargetContext.java:1016) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformSingleDescriptor(MixinTargetContext.java:976) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformLVT(MixinTargetContext.java:573) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.transformMethod(MixinTargetContext.java:479) ... 42 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) at knot//net.minecraft.class_332.method_51425(class_332.java:469) at knot//net.minecraft.class_332.method_51423(class_332.java:458) at knot//net.minecraft.class_329.method_1762$mixinextras$wrapped$249(class_329.java:1262) at knot//net.minecraft.class_329.mixinextras$bridge$method_1762$mixinextras$wrapped$249$250(class_329.java) at knot//net.minecraft.class_329.mda53082$legacy$lambda$renderSlotWithTransparency$0$1d(class_329.java:3621) at knot//wily.legacy.util.client.LegacyRenderUtil.secureTranslucentRender(LegacyRenderUtil.java:315) at knot//net.minecraft.class_329.wrapMethod$ccf000$legacy$renderSlotWithTransparency(class_329.java:3620) at knot//net.minecraft.class_329.method_1762(class_329.java) at knot//net.minecraft.class_329.method_1759(class_329.java:609) at knot//net.minecraft.class_329.mixinextras$bridge$method_1759$217(class_329.java) at knot//net.minecraft.class_329.mda53082$fabric-rendering-v1$lambda$wrapHotbar$3$14(class_329.java:1575) at knot//net.fabricmc.fabric.impl.client.rendering.hud.HudElementRegistryImpl$RootLayer.render(HudElementRegistryImpl.java:217) at knot//net.minecraft.class_329.wrapOperation$bai000$fabric-rendering-v1$wrapHotbar(class_329.java:1575) at knot//net.minecraft.class_329.method_55805(class_329.java:555) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$245(class_329.java:226) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$245$246(class_329.java) at knot//net.minecraft.class_329.wrapMethod$bjo000$iris$handleHudHidingScreens(class_329.java:3049) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$247(class_329.java) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$247$248(class_329.java) at knot//net.minecraft.class_329.wrapMethod$cjp000$ok_zoomer$zoomGui(class_329.java:4586) at knot//net.minecraft.class_329.method_1753(class_329.java) -- Item being rendered -- Details: Item Type: minecraft:water_bucket Item Components: {minecraft:item_name=>translation{key='item.minecraft.water_bucket', args=[]}, minecraft:item_model=>minecraft:water_bucket, minecraft:max_stack_size=>1, minecraft:repair_cost=>0, minecraft:lore=>class_9290[lines=[], styledLines=[]], minecraft:attribute_modifiers=>class_9285[modifiers=[]], minecraft:rarity=>COMMON, minecraft:tooltip_display=>class_10712[hideTooltip=false, hiddenComponents={}], minecraft:enchantments=>ItemEnchantments{enchantments={}}, minecraft:break_sound=>Reference{ResourceKey[minecraft:sound_event / minecraft:entity.item.break]=class_3414[location=minecraft:entity.item.break, fixedRange=Optional.empty]}} Item Foil: false Stacktrace: at knot//net.minecraft.class_332.method_51425(class_332.java:469) at knot//net.minecraft.class_332.method_51423(class_332.java:458) at knot//net.minecraft.class_329.method_1762$mixinextras$wrapped$249(class_329.java:1262) at knot//net.minecraft.class_329.mixinextras$bridge$method_1762$mixinextras$wrapped$249$250(class_329.java) at knot//net.minecraft.class_329.mda53082$legacy$lambda$renderSlotWithTransparency$0$1d(class_329.java:3621) at knot//wily.legacy.util.client.LegacyRenderUtil.secureTranslucentRender(LegacyRenderUtil.java:315) at knot//net.minecraft.class_329.wrapMethod$ccf000$legacy$renderSlotWithTransparency(class_329.java:3620) at knot//net.minecraft.class_329.method_1762(class_329.java) at knot//net.minecraft.class_329.method_1759(class_329.java:609) at knot//net.minecraft.class_329.mixinextras$bridge$method_1759$217(class_329.java) at knot//net.minecraft.class_329.mda53082$fabric-rendering-v1$lambda$wrapHotbar$3$14(class_329.java:1575) at knot//net.fabricmc.fabric.impl.client.rendering.hud.HudElementRegistryImpl$RootLayer.render(HudElementRegistryImpl.java:217) at knot//net.minecraft.class_329.wrapOperation$bai000$fabric-rendering-v1$wrapHotbar(class_329.java:1575) at knot//net.minecraft.class_329.method_55805(class_329.java:555) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$245(class_329.java:226) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$245$246(class_329.java) at knot//net.minecraft.class_329.wrapMethod$bjo000$iris$handleHudHidingScreens(class_329.java:3049) at knot//net.minecraft.class_329.method_1753$mixinextras$wrapped$247(class_329.java) at knot//net.minecraft.class_329.mixinextras$bridge$method_1753$mixinextras$wrapped$247$248(class_329.java) at knot//net.minecraft.class_329.wrapMethod$cjp000$ok_zoomer$zoomGui(class_329.java:4586) at knot//net.minecraft.class_329.method_1753(class_329.java) at knot//net.minecraft.class_757.method_3192(class_757.java:533) at knot//net.minecraft.class_310.method_1523(class_310.java:1361) at knot//net.minecraft.class_310.method_1514(class_310.java:947) at knot//net.minecraft.client.main.Main.main(Main.java:265) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

What happened wrong?

I am no expert in fully understanding crash reports but I do believe it has something to do with the mod struggling to render water buckets and enchantments.

commented

try using it in 1.21.8

commented

Sadly I can't, the server is exclusively for 1.21.6.

However, if this is a game version problem, I might have some extra info that might be useful.

When using the mod for 1.21.6, Factory API wanted a 1.21.8 version of Fabric API. I went into the code of the Factory API and changed this but I wonder if this could be the cause of it.

commented

Sadly I can't, the server is exclusively for 1.21.6.

However, if this is a game version problem, I might have some extra info that might be useful.

When using the mod for 1.21.6, Factory API wanted a 1.21.8 version of Fabric API. I went into the code of the Factory API and changed this but I wonder if this could be the cause of it.

This seems to be something related to a compilation with the wrong version that caused the mixin to have invalid class metadata, but I'm not sure since this has never happened before

commented

Is there anything else I could try or do to give you a better idea on why this is happening?

commented

Is there anything else I could try or do to give you a better idea on why this is happening?

certainly it should be specifically compiled for 1.21.6

commented

Still have the same issue & same crash log after downloading Legacy4J 1.8.4 for 1.21.6 and Factory API 2.2.6 for 1.21.6. (I did not have to go into the code and tell Factory API to use 1.21.6 Fabric API this time)

commented

Still have the same issue & same crash log after downloading Legacy4J 1.8.4 for 1.21.6 and Factory API 2.2.6 for 1.21.6. (I did not have to go into the code and tell Factory API to use 1.21.6 Fabric API this time)

Legacy4J and Factory API aren't available for 1.21.6, 1.8.4 and 2.2.6 are compiled for 1.21.8

commented

I'll close this issue, as L4J and Factory API aren't really available for 1.21.6-7, sorry for this.