java.lang.RuntimeException when tranferring mods from fabric to quilt

---- Crashed! ----
Date/Time: 2023/04/13 15:19:08.5137

– Crash –

org.quiltmc.loader.impl.FormattedException: java.lang.BootstrapMethodError: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1665 failed
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:529)
at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82)
at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)
Caused by: java.lang.BootstrapMethodError: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1665 failed
at net.minecraft.class_1299.(class_1299.java:171)
at net.minecraft.class_3103.(class_3103.java:28)
at net.minecraft.class_3031.(class_3031.java:84)
at net.minecraft.class_6800.(class_6800.java:20)
at net.minecraft.class_6803.method_39702(class_6803.java:24)
at net.minecraft.class_5458.method_44104(class_5458.java:98)
at net.minecraft.class_5458.method_30566(class_5458.java:105)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
at net.minecraft.class_5458.(class_5458.java:104)
at net.minecraft.class_2378.(class_2378.java:326)
at net.minecraft.class_2966.method_12851(class_2966.java:50)
at net.minecraft.client.main.Main.method_44604(Main.java:161)
at net.minecraft.client.main.Main.main(Main.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:527)
… 2 more
Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1665 failed
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:456)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:246)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
at org.quiltmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:228)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at org.quiltmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:310)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:301)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
at org.quiltmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:228)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
… 20 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 org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:451)
… 34 more
Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Constant modifier method multiplyGravity(D)D in #gravity_api:gravity_api.mixins.json:PersistentProjectileEntityMixin from mod gravity_api failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap gravity-api-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:1062)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:402)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327)
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)
… 37 more

Can you upload the entire log to https://mclo.gs/

From this one I can only tell, that some mod’s gravity API is failing

gravity API is one of the mods that I have

Here’s the link

That does indeed seem to indicate, that Gravity API breaks on Quilt. What mod needs it? Try removing them and see if that works. If it does - report to the dev of either Gravity API or the mod using it (might be the same person).

I removed gravity API and it worked, although the Github page indicated that I also need cloth config for it to work, so I will try adding cloth config

ok so cloth config is not supported on quilt, I will try my best to reach out to the devs about the issue

So I found an older version of Gravity API which supports both fabric and quilt, except this is an older Minecraft version, but surprisingly, it worked, I have gravity API running on quilt now

Cloth Config is not supported period. The dev warned others against implementing it into their mods, as they have no plans on working on it further beyond basic porting to newer versions. The mod itself should work on Quilt, though, as I’m using it myself.

I still think it was Gravity API at fault here, but anyways, you’ve already found a solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.