Chocohead / OptiFabric

OptiFabric venturing out into the 1.16+ world
https://www.curseforge.com/minecraft/mc-mods/optifabric
Mozilla Public License 2.0
379 stars 108 forks source link

My Minecraft Instant Crashes (1.19) #827

Closed THEHTNOEL closed 1 year ago

THEHTNOEL commented 2 years ago

Can somebody please help me? Here is the error code: 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_128.method_568(class_128.java:173) at net.minecraft.class_128.method_24305(class_128.java:343) at net.minecraft.client.main.Main.main(Main.java:152) 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_776 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:419) 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:145) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at net.optifine.reflect.FieldLocatorTypes.(FieldLocatorTypes.java:25) at net.optifine.reflect.Reflector.(Reflector.java:491) ... 6 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:414) ... 15 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Callback method addInfo(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1920;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;ZLnet/minecraft/class_5819;Ljava/lang/Object;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;Ljava/lang/Throwable;Lnet/minecraft/class_128;Lnet/minecraft/class_129;)V in optifabric.compat.fabric-renderer-api.new-mixins.json:BlockRenderManagerNewMixin from mod optifabric failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap optifabric-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) ... 18 more

Chocohead commented 2 years ago

What version of OptiFine and OptiFabric are you using?

Gabo075 commented 2 years ago

Can somebody please help me? Here is the error code: 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_128.method_568(class_128.java:173) at net.minecraft.class_128.method_24305(class_128.java:343) at net.minecraft.client.main.Main.main(Main.java:152) 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_776 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:419) 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:145) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at java.base/java.lang.Class.getDeclaredFields0(Native Method) at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) at java.base/java.lang.Class.getDeclaredFields(Class.java:2371) at net.optifine.reflect.FieldLocatorTypes.(FieldLocatorTypes.java:25) at net.optifine.reflect.Reflector.(Reflector.java:491) ... 6 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:414) ... 15 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Callback method addInfo(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1920;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;ZLnet/minecraft/class_5819;Ljava/lang/Object;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;Ljava/lang/Throwable;Lnet/minecraft/class_128;Lnet/minecraft/class_129;)V in optifabric.compat.fabric-renderer-api.new-mixins.json:BlockRenderManagerNewMixin from mod optifabric failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap optifabric-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) ... 18 more

I have the same problem

topia commented 2 years ago

@Gabo075 Could you add information about "Optifine and Optifabric version you are using"? The developer asked.

Gabo075 commented 2 years ago

@Gabo075 Could you add information about "Optifine and Optifabric version you are using"? The developer asked.

Ofc, Optifine: OptiFine HD U H9 Optifabric: OptiFabric-v1.13.10 And well of course taking into account that the instance is in CurseForge fabric

topia commented 2 years ago

@Gabo075 Could you add information about "Optifine and Optifabric version you are using"? The developer asked.

Ofc, Optifine: OptiFine HD U H9 Optifabric: OptiFabric-v1.13.10 And well of course taking into account that the instance is in CurseForge fabric

Hmm, Thanks info, but I can't reproduce this issue. What version are you using for Minecraft, fabric-api? (I tested with Minecraft 1.19, fabric-api 0.58.0+1.19) or, could you upload the whole latest.log just after a crash?

MysticcX commented 2 years ago

Having similar issue. Same as @Gabo075 and i'm using fabric API v0.59.0-1.19.1

Gabo075 commented 2 years ago

@Gabo075 Could you add information about "Optifine and Optifabric version you are using"? The developer asked.

Ofc, Optifine: OptiFine HD U H9 Optifabric: OptiFabric-v1.13.10 And well of course taking into account that the instance is in CurseForge fabric

Hmm, Thanks info, but I can't reproduce this issue. What version are you using for Minecraft, fabric-api? (I tested with Minecraft 1.19, fabric-api 0.58.0+1.19) or, could you upload the whole latest.log just after a crash?

Il reproduce the issue and give you a recording as well as the latest.log

topia commented 2 years ago

Having similar issue. Same as @Gabo075 and i'm using fabric API v0.59.0-1.19.1

https://modrinth.com/mod/fabric-api/versions I can't find fabric-api 0.59.0-1.19.1, but fabric-api-0.58.5+1.19.1. (found 0.59.0-1.19.2, but as you know, no 1.19.2 support for optifine). Also, I tried Minecraft 1.19.1 with fabric-api-0.58.5+1.19.1 and preview_OptiFine_1.19.1_HD_U_H9_pre1, and I confirmed it works.

topia commented 2 years ago

I have succeeded in reproducing the issue with the following, in version 1.19. Screen Shot 2022-08-09 at 8 51 57 PM Minecraft produced Exit Code: 1 Im not sure if it brings importance but it happens while running Mac OS

You said you are using optifabric-1.13.10, but in this screenshot, you are using optifabric-1.13.8. Could you update it to 1.13.10?

Gabo075 commented 2 years ago

I have succeeded in reproducing the issue with the following, in version 1.19. Screen Shot 2022-08-09 at 8 51 57 PM Minecraft produced Exit Code: 1 Im not sure if it brings importance but it happens while running Mac OS

You said you are using optifabric-1.13.10, but in this screenshot, you are using optifabric-1.13.8. Could you update it to 1.13.10?

I have just updated it and it has worked successfully, thank you.

MysticcX commented 2 years ago

Having similar issue. Same as @Gabo075 and i'm using fabric API v0.59.0-1.19.1

https://modrinth.com/mod/fabric-api/versions I can't find fabric-api 0.59.0-1.19.1, but fabric-api-0.58.5+1.19.1. (found 0.59.0-1.19.2, but as you know, no 1.19.2 support for optifine). Also, I tried Minecraft 1.19.1 with fabric-api-0.58.5+1.19.1 and preview_OptiFine_1.19.1_HD_U_H9_pre1, and I confirmed it works.

Yeah by bad I meant 1.19.2 for the API, also think I had the wrong version of Optifine in my mods however I now have 1.19.1 Optifabric and 1.19.1 OptifineHD_U_Pre1 but the game crashes on startup. Could be the fabric API however 0.59.0 is the only version that will work with my mods.

topia commented 2 years ago

Having similar issue. Same as @Gabo075 and i'm using fabric API v0.59.0-1.19.1

https://modrinth.com/mod/fabric-api/versions I can't find fabric-api 0.59.0-1.19.1, but fabric-api-0.58.5+1.19.1. (found 0.59.0-1.19.2, but as you know, no 1.19.2 support for optifine). Also, I tried Minecraft 1.19.1 with fabric-api-0.58.5+1.19.1 and preview_OptiFine_1.19.1_HD_U_H9_pre1, and I confirmed it works.

Yeah by bad I meant 1.19.2 for the API, also think I had the wrong version of Optifine in my mods however I now have 1.19.1 Optifabric and 1.19.1 OptifineHD_U_Pre1 but the game crashes on startup. Could be the fabric API however 0.59.0 is the only version that will work with my mods.

Now I think I understand your environment. but I tried Minecraft 1.19.1 + fabric-api-0.59.0+1.19.2 + optifabric-1.13.10 + preview_OptiFine_1.19.1_HD_U_H9_pre1 and it launches well. so I think your problem is the mod conflict between one of your mods and optifabric. For understanding such a problem, we usually use the latest.log. could you upload it just after a crash?

MysticcX commented 2 years ago

@topia

Latest.log:

[20:04:17] [main/INFO]: Loading Minecraft 1.19.1 with Fabric Loader 0.14.9 [20:04:18] [ForkJoinPool-1-worker-8/WARN]: Mod journeymap uses the version 5.9.0beta1 which isn't compatible with Loader's extended semantic version format (Could not parse version number component '0beta1'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [20:04:18] [ForkJoinPool-1-worker-4/WARN]: Mod nyfsquiver uses the version Fabric-0.5.0-1.19-rc2 which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'Fabric'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [20:04:18] [ForkJoinPool-1-worker-4/WARN]: The mod "sync" contains invalid entries in its mod json:

topia commented 2 years ago

In your latest log,

[20:05:06] [Render thread/ERROR]: Mod illuminations provides a broken implementation of ModMenuApi
net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'modmenu' provided by 'illuminations'
...
Caused by: java.lang.ClassNotFoundException: ladysnake.illuminations.client.IlluminationsModMenuIntegration
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]

Minecraft/fabric-loader can't find modmenu class ladysnake.illuminations.client.IlluminationsModMenuIntegration of illuminations mod. Is it works without optifabric? I can't believe this is an error caused by optifabric compatibility...

THEHTNOEL commented 2 years ago

What version of OptiFine and OptiFabric are you using?

I'am using optifabric-1.13.8 , Optifine_1.19_HD_U_H9 and fabric-api-0.55.3+1.19

topia commented 2 years ago

What version of OptiFine and OptiFabric are you using?

I'am using optifabric-1.13.8 , Optifine_1.19_HD_U_H9 and fabric-api-0.55.3+1.19

Please update optifabric to 1.13.10 first. If not working, update fabric-api too.

THEHTNOEL commented 2 years ago

What version of OptiFine and OptiFabric are you using?

I'am using optifabric-1.13.8 , Optifine_1.19_HD_U_H9 and fabric-api-0.55.3+1.19

Please update optifabric to 1.13.10 first. If not working, update fabric-api too.

Ok i am gonna try it

THEHTNOEL commented 2 years ago

Still the same issue Here is the error code: 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_128.method_568(class_128.java:173) at net.minecraft.class_128.method_24305(class_128.java:343) at net.minecraft.client.main.Main.main(Main.java:152) 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_630 failed at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:419) 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:145) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at net.optifine.reflect.Reflector.(Reflector.java:495) ... 6 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:414) ... 11 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector redirectRenderCuboids(Lnet/minecraft/class_630;Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_4588;IIFFFF)V in bendylib.mixins.json:IModelPartMixin from mod bendy-lib failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap bendy-lib-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) ... 14 more

topia commented 2 years ago

I don't know what bendy-lib mod is, but it's a mod compatibility issue between optifabric and it. "rendering" related mod and optifabric(optifine) are usually incompatible, except with special care.

THEHTNOEL commented 2 years ago

It was emotecraft. Thanks for helping have a great day. Bye

topia commented 2 years ago

@THEHTNOEL Nice, Could you close this issue, as your problem is solved? Thanks.

MysticcX commented 2 years ago

In your latest log,

[20:05:06] [Render thread/ERROR]: Mod illuminations provides a broken implementation of ModMenuApi
net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'modmenu' provided by 'illuminations'
...
Caused by: java.lang.ClassNotFoundException: ladysnake.illuminations.client.IlluminationsModMenuIntegration
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]

Minecraft/fabric-loader can't find modmenu class ladysnake.illuminations.client.IlluminationsModMenuIntegration of illuminations mod. Is it works without optifabric? I can't believe this is an error caused by optifabric compatibility...

Yeah Illuminations was working without optifabric and was able to get back on my laptop last night and removed illuminations and the game still didn't load properly. Then I just added optifabric and the latest optifine by themselves and it loaded so thinking it might be an odd compatibility with another mod.