I am encountering this error when loading a gltf/glb models with MonkeyWrench 0.6.2:
Libbulletjme version 21.2.1 initializing
Mar 22, 2025 4:03:20 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[#36,jME3 Main,5,main]
java.lang.NoSuchFieldError: Class org.lwjgl.assimp.AIScene does not have member field 'sun.misc.Unsafe UNSAFE'
at org.lwjgl.assimp.AIScene.nmNumMaterials(AIScene.java:444)
at org.lwjgl.assimp.AIScene.mNumMaterials(AIScene.java:175)
at com.github.stephengold.wrench.AssetBuilder.<init>(AssetBuilder.java:163)
at com.github.stephengold.wrench.LwjglAssetLoader.loadScene(LwjglAssetLoader.java:148)
at com.github.stephengold.wrench.LwjglAssetLoader.load(LwjglAssetLoader.java:95)
at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:274)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:390)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:441)
at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:446)
at codex.swordgame.GameApplication.simpleInitApp(GameApplication.java:34)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:240)
at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:688)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:791)
at java.base/java.lang.Thread.run(Thread.java:1575)
This particular attempt was loading a glb file that contains blender’s default cube with no export settings changed. I’ve tried several things, like disabling material export in blender, but I’m always getting this same error.
Edit: Just tried FBX, STL, PLY, and OBJ and got the same error each time. I expect this occurs with all supported formats.
Edit: I switched from jme version 3.8-alpha4 to 3.8-alpha2 (alpha3 artifacts didn’t work for me, for some reason) and issue went away, so this may actually be a regression between alpha4 and alpha2.