Hex Casting

Hex Casting

6M Downloads

[1.18.2][Fabric] Cardinal Components API causes crash when loading in

TheOnlyMann opened this issue ยท 8 comments

commented

tested with 130 other mods, however when removing Cardinal Components API(and Hexcasting as well) i can say that it launches fine
crash-2022-07-05_11.25.00-server.txt
crash-2022-07-05_09.42.17-server.txt
related crashlog.

commented

I've also experienced this exact issue; not on the setup detailed in #164 but on a pure Fabric based setup with many fewer mods.

I found that Hex Casting without a standalone Cardinal Components API (CCA?) would crash this way, without causing a dependency issue; apparently it bundles some version of CCA inside the Hex Casting .jar? Hex Casting with some versions of CCA would crash the same way. Hex Casting with the same version of CCA I was using in #164 transplanted into the mods folder worked fine. Mod loader version was fabric-loader-0.14.8-1.18.2.

In case it helps, here's the complete mods folder of my working instance:

Botania-1.18.2-434-FABRIC.jar                  hexcasting-fabric-1.18.2-0.9.1.jar
Patchouli-1.18.2-71.1-FABRIC.jar               lazydfu-0.1.2.jar
PresenceFootsteps-1.5.1.jar                    lithium-fabric-mc1.18.2-0.7.10.jar
appleskin-fabric-mc1.18.2-2.4.0.jar            mousewheelie-1.10.1+mc1.18.2.jar
cardinal-components-api-4.1.4.jar              paucal-fabric-1.18.2-0.4.7.jar
charmonium-fabric-1.18.2-4.1.0.jar             sodium-fabric-mc1.18.2-0.4.1+build.15.jar
dynamic-fps-2.1.0.jar                          starlight-1.0.2+fabric.89b8d9f.jar
fabric-api-0.51.1+1.18.2.jar                   trinkets-3.3.1.jar
fabric-language-kotlin-1.8.1+kotlin.1.7.0.jar  twigs-fabric-1.1.3+legacy.1.18.2.jar
ferritecore-4.2.1-fabric.jar                   wired-redstone-0.3.3+1.18.2.jar
commented

[12:39:01] [Worker-Main-4/ERROR]: Failed to light chunk [-11, -10]
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: dev/onyxstudios/cca/api/v3/item/ItemComponentInitializer
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159) ~[?:?]
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at net.minecraft.class_3900.method_17634(class_3900.java:62) ~[client-intermediary.jar:?]
	at net.minecraft.class_3846.method_16907(class_3846.java:91) [client-intermediary.jar:?]
	at net.minecraft.class_3846.method_16900(class_3846.java:146) [client-intermediary.jar:?]
	at net.minecraft.class_3846.run(class_3846.java:102) [client-intermediary.jar:?]
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: java.lang.NoClassDefFoundError: dev/onyxstudios/cca/api/v3/item/ItemComponentInitializer
	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:186) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:347) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) ~[fabric-loader-0.14.8.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
	at java.lang.Class.forName0(Native Method) ~[?:?]
	at java.lang.Class.forName(Class.java:467) ~[?:?]
	at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53) ~[fabric-loader-0.14.8.jar:?]
	at dev.onyxstudios.cca.internal.base.asm.StaticComponentPluginBase.getComponentEntrypoints(StaticComponentPluginBase.java:167) ~[cardinal-components-base-4.1.4-5cbea34fcb0886.jar:?]
	at dev.onyxstudios.cca.internal.entity.StaticEntityComponentPlugin.init(StaticEntityComponentPlugin.java:106) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.base.LazyDispatcher.ensureInitialized(LazyDispatcher.java:46) ~[cardinal-components-base-4.1.4-5cbea34fcb0886.jar:?]
	at dev.onyxstudios.cca.internal.entity.StaticEntityComponentPlugin.requiresStaticFactory(StaticEntityComponentPlugin.java:66) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.getEntityFactory(CardinalEntityInternals.java:70) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.lambda$createEntityComponentContainer$0(CardinalEntityInternals.java:57) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at java.util.Objects.requireNonNullElseGet(Objects.java:308) ~[?:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.createEntityComponentContainer(CardinalEntityInternals.java:55) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at net.minecraft.class_1297.handler$bei000$initDataTracker(class_1297.java:6054) ~[client-intermediary.jar:?]
	at net.minecraft.class_1297.<init>(class_1297.java:289) ~[client-intermediary.jar:?]
	at net.minecraft.class_1309.<init>(class_1309.java:242) ~[client-intermediary.jar:?]
	at net.minecraft.class_1308.<init>(class_1308.java:129) ~[client-intermediary.jar:?]
	at net.minecraft.class_1314.<init>(class_1314.java:14) ~[client-intermediary.jar:?]
	at net.minecraft.class_1296.<init>(class_1296.java:28) ~[client-intermediary.jar:?]
	at net.minecraft.class_1429.<init>(class_1429.java:43) ~[client-intermediary.jar:?]
	at net.minecraft.class_1430.<init>(class_1430.java:35) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_5883(class_1299.java:478) ~[client-intermediary.jar:?]
	at net.minecraft.class_1948.method_8661(class_1948.java:519) ~[client-intermediary.jar:?]
	at net.minecraft.class_3754.method_12107(class_3754.java:493) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806.method_17033(class_2806.java:171) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806$class_3768.doWork(class_2806.java:338) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806.method_12154(class_2806.java:289) ~[client-intermediary.jar:?]
	at net.minecraft.class_3898.method_17225(class_3898.java:649) ~[client-intermediary.jar:?]
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.1.27.jar:?]
	at net.minecraft.class_3898.method_17224(class_3898.java:643) ~[client-intermediary.jar:?]
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ~[?:?]
	... 11 more
Caused by: java.lang.ClassNotFoundException: dev.onyxstudios.cca.api.v3.item.ItemComponentInitializer
	at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) ~[fabric-loader-0.14.8.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:186) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:347) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:145) ~[fabric-loader-0.14.8.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
	at java.lang.Class.forName0(Native Method) ~[?:?]
	at java.lang.Class.forName(Class.java:467) ~[?:?]
	at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117) ~[fabric-loader-0.14.8.jar:?]
	at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53) ~[fabric-loader-0.14.8.jar:?]
	at dev.onyxstudios.cca.internal.base.asm.StaticComponentPluginBase.getComponentEntrypoints(StaticComponentPluginBase.java:167) ~[cardinal-components-base-4.1.4-5cbea34fcb0886.jar:?]
	at dev.onyxstudios.cca.internal.entity.StaticEntityComponentPlugin.init(StaticEntityComponentPlugin.java:106) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.base.LazyDispatcher.ensureInitialized(LazyDispatcher.java:46) ~[cardinal-components-base-4.1.4-5cbea34fcb0886.jar:?]
	at dev.onyxstudios.cca.internal.entity.StaticEntityComponentPlugin.requiresStaticFactory(StaticEntityComponentPlugin.java:66) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.getEntityFactory(CardinalEntityInternals.java:70) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.lambda$createEntityComponentContainer$0(CardinalEntityInternals.java:57) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at java.util.Objects.requireNonNullElseGet(Objects.java:308) ~[?:?]
	at dev.onyxstudios.cca.internal.entity.CardinalEntityInternals.createEntityComponentContainer(CardinalEntityInternals.java:55) ~[cardinal-components-entity-4.1.4-8ccbd4219d1c1f77.jar:?]
	at net.minecraft.class_1297.handler$bei000$initDataTracker(class_1297.java:6054) ~[client-intermediary.jar:?]
	at net.minecraft.class_1297.<init>(class_1297.java:289) ~[client-intermediary.jar:?]
	at net.minecraft.class_1309.<init>(class_1309.java:242) ~[client-intermediary.jar:?]
	at net.minecraft.class_1308.<init>(class_1308.java:129) ~[client-intermediary.jar:?]
	at net.minecraft.class_1314.<init>(class_1314.java:14) ~[client-intermediary.jar:?]
	at net.minecraft.class_1296.<init>(class_1296.java:28) ~[client-intermediary.jar:?]
	at net.minecraft.class_1429.<init>(class_1429.java:43) ~[client-intermediary.jar:?]
	at net.minecraft.class_1430.<init>(class_1430.java:35) ~[client-intermediary.jar:?]
	at net.minecraft.class_1299.method_5883(class_1299.java:478) ~[client-intermediary.jar:?]
	at net.minecraft.class_1948.method_8661(class_1948.java:519) ~[client-intermediary.jar:?]
	at net.minecraft.class_3754.method_12107(class_3754.java:493) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806.method_17033(class_2806.java:171) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806$class_3768.doWork(class_2806.java:338) ~[client-intermediary.jar:?]
	at net.minecraft.class_2806.method_12154(class_2806.java:289) ~[client-intermediary.jar:?]
	at net.minecraft.class_3898.method_17225(class_3898.java:649) ~[client-intermediary.jar:?]
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-4.1.27.jar:?]
	at net.minecraft.class_3898.method_17224(class_3898.java:643) ~[client-intermediary.jar:?]
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ~[?:?]
	... 11 more

while it does launch the game, onxy studios cardinal components api still has problems, it seems.

commented
commented

Seems ot have subsided even if i install cardinal components 4.2.0
not sure why it was acting that way, possible other mods had problems upon it.
will open this issue once again if the issue comes back.

commented

was a mistake on my end, problem still persists

commented

crash-2022-07-11_16.43.48-client.txt
(When using Sodium, EMI, Phosphor, Lithium, Sodium Extra)
The game crashes whenever trying to open a world, though on forge it works fine.

commented

Specific issue here reflects the approach Fabric uses to enforce version dependencies, which does not properly panic until the world load event. Using Cardinal Components 4.1.4 will workaround for now, but probably a good reason to change the Fabric mod.json to "cardinal-components": ">=4.1.4", or, if a range value is accepted, to use the range of 4.1.4-4.2.0.

commented

This will get fixed shortly in the Arcane Compendium PR #183 hold tight