TheCBProject / CodeChickenLib

GNU Lesser General Public License v2.1
114 stars 55 forks source link

1.20.1 - Bug - Crash on startup #460

Open muggleorwizard opened 3 days ago

muggleorwizard commented 3 days ago

Description:

Caused by: java.lang.ClassCastException: class [Lcodechicken.lib.vec.Vector3; cannot be cast to class codechicken.lib.render.model.ModelMaterial ([Lcodechicken.lib.vec.Vector3; and codechicken.lib.render.model.ModelMaterial are in module codechickenlib@4.4.0.512 of loader 'TRANSFORMER' @70592729)
    at codechicken.lib.render.model.ModelMaterial$1.copyRange(ModelMaterial.java:14) ~[CodeChickenLib-1.20.1-4.4.0.512-universal.jar%23475!/:4.4.0.512] {re:classloading}
    at codechicken.lib.render.CCModel.copy(CCModel.java:590) ~[CodeChickenLib-1.20.1-4.4.0.512-universal.jar%23475!/:4.4.0.512] {re:classloading}
    at codechicken.lib.render.CCModel.copy(CCModel.java:793) ~[CodeChickenLib-1.20.1-4.4.0.512-universal.jar%23475!/:4.4.0.512] {re:classloading}

Crash Log: https://bytebin.lucko.me/oZZ1uvCObS

Modpack: Ozone Skyblock Reborn

Crash report says Code Chicken Lib and Ender Chests 1.8+ are the issue. Also having a crash with Draconic Evolution that occurs sometimes with a different error. https://github.com/Draconic-Inc/Draconic-Evolution/issues/1838

covers1624 commented 2 days ago

I have been unable to reproduce this issue at all. Scouring the code the only thing I can think of is somehow this is a concurrency issue when AttributeKey instances are being registered via class load, through different mods.

Can you please try this build of CCL https://maven.covers1624.net/io/codechicken/CodeChickenLib/1.20.1-4.4.0.516/CodeChickenLib-1.20.1-4.4.0.516-universal.jar

muggleorwizard commented 2 days ago

I'll give this a try, but I have not had this issue myself. Only a few people who play my pack have reported it (and I made sure they had not modified any files or mods). I will ask the people who had the issue to try this build. Thanks for the reply!