Critical Injection Failure on startup
atyshka opened this issue ยท 11 comments
Version
lithium-fabric-mc1.18.1-0.7.6
Reproduction Steps
Launching a clean server, no datapacks, no mods other than lithium. The game crashes, things work fine if I remove lithium. Looking at the crash backtrace, it seems like there is a mismatch in where it's trying to inject code?
[17:15:34] [main/ERROR]: Mixin apply for mod lithium failed lithium.mixins.json:entity.inactive_navigations.EntityNavigationMixin -> net.minecraft.class_1408: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on updateListeningState could not find any targets matching 'Lnet/minecraft/class_1408;method_6356()V' in net.minecraft.class_1408. Using refmap mixins.lithium.refmap.json [PREINJECT Applicator Phase -> lithium.mixins.json:entity.inactive_navigations.EntityNavigationMixin -> Prepare Injections -> -> handler$zda000$updateListeningState(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]
Crash Report File
Minecraft Save
This issue happens on a clean world, not save specific
Additional Information
Here is my launch command
java -Xms128M -Xmx3072M -Dterminal.jline=false -Dterminal.ansi=true -jar fabric-server-launch.jar
Try adding
mixin.entity.inactive_navigations=false
to the lithium config file
This works! But why? And what effects does it have?
Actually, after a few seconds of joining the world as a player I get this error:
[19:27:31] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchMethodError: 'boolean net.minecraft.class_3898.method_39975(int, int, int, int, int)'
Again there seems to be some mismatch of what Lithium is expecting vs my java binary
It looks like you are starting the game with 1.18 minecraft instead of 1.18.1 . I suggest to reinstall your server
Fabric is using 1.18.1:
Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
[19:30:53] [INFO] [FabricLoader/GameProvider]: Loading Minecraft 1.18.1 with Fabric Loader 0.12.9
I am downloading the server jar from this page:
https://fabricmc.net/use/server/
Ahh, replacing it seems to work? Even though the old one was also 1.18.1 with loader 0.12.9? Weird. Sorry about that
Should I try just zipping the whole server directory and seeing if you can reproduce that way?
Can you first get me a full crash report (should be in crash-reports directory), not the latest.log?