Andrew6rant / Stacker

Minecraft mod to change the stack size of all items. Fabric 1.19, 1.18, and 1.17.
Creative Commons Zero v1.0 Universal
26 stars 17 forks source link

crash at launch #35

Closed arcticgalaxies closed 2 years ago

arcticgalaxies commented 2 years ago

Minecraft has crashed! net.fabricmc.loader.impl.FormattedException: java.lang.ExceptionInInitializerError at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:463) 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: java.lang.ExceptionInInitializerError at net.minecraft.class_5872.(class_5872.java:9) at net.minecraft.class_5871.method_33968(class_5871.java:16) at com.mojang.serialization.codecs.RecordCodecBuilder.mapCodec(RecordCodecBuilder.java:76) at net.minecraft.class_5871.(class_5871.java:12) at net.minecraft.class_2939.(class_2939.java:33) at net.minecraft.class_5463.(class_5463.java:19) at net.minecraft.class_5458.method_30572(class_5458.java:52) at net.minecraft.class_5458.method_30566(class_5458.java:86) at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) at net.minecraft.class_5458.(class_5458.java:85) at net.minecraft.class_2378.(class_2378.java:291) at net.minecraft.class_2966.method_12851(class_2966.java:49) at net.minecraft.client.main.Main.main(Main.java:153) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461) ... 2 more Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1706 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:418) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:322) at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at net.minecraft.class_2246.(class_2246.java:443) ... 16 more 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:413) ... 21 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector setDecrementSlot1StackCount(Lnet/minecraft/class_1263;ILnet/minecraft/class_1799;)V in stacker.mixins.json:AnvilScreenHandlerMixin from mod stacker failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap stacker-refmap.json at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1385) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1052) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421) at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403) at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ... 24 more

on version 2.1.3, java 17;

weird because i reset my computer today and i had it loaded up fine before, maybe its a conflict with something else?

Andrew6rant commented 2 years ago

Can you also share your logs? I'd need to see what version of Minecraft and what other mods are loaded in your instance to be able to fully diagnose what is going on.

This is just a guess because I can't see your modlist, but do you have Charm installed? (or any other mod that allows enchanted book stacking in anvils)

Stacker also mixins into the AnvilScreenHandler to do this, you can disable "StackableEnchantedBooks" on Charm's side to fix it

arcticgalaxies commented 2 years ago

i did have charm installed at one point but deleted it, is there leftover code somehow?

im not sure how to post logs, is this right?

2022-06-12-7.log.gz

Andrew6rant commented 2 years ago

This isn't the right log. According to this, Stacker isn't even installed and there is no crash, the game saved and exited properly.

arcticgalaxies commented 2 years ago

oops, my bad! is this the right one? 2022-06-13-1.log.gz

Andrew6rant commented 2 years ago

No. Stacker isn't installed here either and this isn't a crash log

arcticgalaxies commented 2 years ago

theres no crash log, should i post the output error?

(its physically not in the crash folder, it does not exist)

Andrew6rant commented 2 years ago

Start the game, and after it crashes, send me the latest.log in the logs folder.

arcticgalaxies commented 2 years ago

latest.log

Andrew6rant commented 2 years ago

I see the issue. AkashicTomeOfToolsFabric has a mixin conflict with Stacker: https://github.com/vlad2305m/AkashicTomeOfToolsFabric/blob/master/src/main/java/vazkii/akashictomeoftools/mixin/AnvilScreenHandler_2ndSlotDecrementMixin.java#L13

In the meantime before I get this fixed, you can use Stacker version 2.0 (it doesn't have the conflicting mixin at all). Just note that the later versions of Stacker have had a lot of fixes, namely:

Fixed Jukebox duplicating music disks Fixed stacked buckets being lost in dispensers Fixed Enchanted Books being consumed in stacks at once (this is the anvil mixin that conflicted) Fixed being able to put more than one saddle on a horse at once Proper dependency listing

Andrew6rant commented 2 years ago

This should be fixed in Stacker 3.0.2. Feel free to reopen if the issue pops up again