Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

[Bug]: Mod crashes on startup [MC 1.19, mod v3.0.0] #4

Open
1 task done
ielenia opened this issue Jun 24, 2022 · 4 comments · May be fixed by #10
Open
1 task done

[Bug]: Mod crashes on startup [MC 1.19, mod v3.0.0] #4

ielenia opened this issue Jun 24, 2022 · 4 comments · May be fixed by #10
Labels
bug Something isn't working

Comments

@ielenia
Copy link

ielenia commented Jun 24, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Description

The mod crashes on startup from java.lang.ClassNotFoundException: The specified mixin 'wraith.fwaystones.mixin.ClientPlayerEntityAccessor' was not found.
This error occurs even without any other mods.

To Reproduce

Install Fabric 0.14.8 for Minecraft 1.19, then add this mod and Fabric API.

Expected behavior

The game should start.

Mod Version

v3.0.0

Minecraft Version

1.19

Java Version

Java 17

Fabric Version

0.14.8 (1.19) - Fabric: ex. 0.12.5-1-17-1
0.56.0+1.19 - Fabric API: ex. 0.42.1+1.17

Relevant log output

A mod crashed on startup!
net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'cull-less-leaves'!
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:164)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	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.multimc.impl.OneSixLauncher.invokeMain(OneSixLauncher.java:104)
	at org.multimc.impl.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:175)
	at org.multimc.impl.OneSixLauncher.launch(OneSixLauncher.java:185)
	at org.multimc.EntryPoint.listen(EntryPoint.java:127)
	at org.multimc.EntryPoint.main(EntryPoint.java:57)
Caused by: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'cull-less-leaves'!
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
	at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:162)
	... 11 more
Caused by: net.fabricmc.loader.api.EntrypointException: Exception while loading entries for entrypoint 'preLaunch' provided by 'cull-less-leaves'
	at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:56)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47)
	... 13 more
Caused by: java.lang.RuntimeException: Mixin transformation of dev.isxander.culllessleaves.CullLessLeaves 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.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:467)
	at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50)
	at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117)
	at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53)
	... 14 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [fwaystones.mixins.json:ClientPlayerEntityAccessor from mod fwaystones] from phase [DEFAULT] in config [fwaystones.mixins.json] FAILED during PREPARE
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinPrepareError(MixinProcessor.java:585)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:543)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290)
	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)
	... 23 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: The specified mixin 'wraith.fwaystones.mixin.ClientPlayerEntityAccessor' was not found
	at org.spongepowered.asm.mixin.transformer.MixinInfo.<init>(MixinInfo.java:865)
	at org.spongepowered.asm.mixin.transformer.MixinConfig.prepareMixins(MixinConfig.java:852)
	at org.spongepowered.asm.mixin.transformer.MixinConfig.prepare(MixinConfig.java:781)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:540)
	... 29 more
Caused by: java.lang.ClassNotFoundException: The specified mixin 'wraith.fwaystones.mixin.ClientPlayerEntityAccessor' was not found
	at org.spongepowered.asm.mixin.transformer.MixinInfo.loadMixinClass(MixinInfo.java:1314)
	at org.spongepowered.asm.mixin.transformer.MixinInfo.<init>(MixinInfo.java:858)
	... 32 more

Anything else?

(edited to correct the mod version option)

@ielenia ielenia added the bug Something isn't working label Jun 24, 2022
@Patbox
Copy link
Member

Patbox commented Jun 24, 2022

Are you running it on client by chance?

@ielenia
Copy link
Author

ielenia commented Jun 24, 2022

I am running it on client, mainly so I could (hypothetically) use it on a LAN server. I tried it out on a dedicated server and it doesn't crash there.

@OoLunar
Copy link

OoLunar commented Sep 1, 2022

I can reproduce the issue server-side. Has there been a fix for this yet? I can go test it if required

Brittank88 added a commit to Brittank88/FabricWaystones that referenced this issue Nov 9, 2022
Fixes PolymerPorts#4, which occurs as a result of specifying these mixins that don't even exist as classes in the mod.

Not sure why client mixins would ever be necessary anyway, given this is supposed to run server-only.
@Brittank88 Brittank88 linked a pull request Nov 9, 2022 that will close this issue
@nhasdarjian
Copy link

nhasdarjian commented Apr 12, 2023

Hey, this plugin still crashes on start due to mixins. There are two pull reqs that attempt to fix this problem, any chance we can get a review? I'm using Polymer 0.4.5 and FW 3.0.0 on fabric-server-mc.1.19.4-loader.0.14.19-launcher.0.11.2.jar. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants