jMonkeyEngine v3.7.0-beta1 release

we have some problem with the Gradle script when it tries to upload the artifacts to Nexus repo. I’m on it with the assistance of Stephen.

BTW, are we aware of a problem loading GLB files in Android devices in JME3.6.1-stable? It works in 3.5.2

3 Likes

I don’t think so. Is there any stack trace? Issue on Github?

1 Like

I searched the issues and didn’t find something related to Android and GLB files issue. I will switch back to 3.6.1-stable and try to get the stack trace

This is the stack trace which happens with v3.6.1-stable on Android device. It works without any exception with v3.5.2-stable. I guess there is a need for “glb” loader registration in order for it to work?

com.jme3.asset.AssetLoadException: No loader registered for type "glb"
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.asset.ImplHandler.aquireLoader(ImplHandler.java:199)
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:268)
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:388)
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:439)
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:444)
2024-07-27 16:22:29.561 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.SceneMaxApp.loadModelSpatial(SceneMaxApp.java:1938)
2024-07-27 16:22:29.562 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.SceneMaxApp.loadModel(SceneMaxApp.java:2218)
2024-07-27 16:22:29.562 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.SceneMaxApp.instantiateVariable(SceneMaxApp.java:1548)
2024-07-27 16:22:29.562 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.InstantiateGraphicEntityController.run(InstantiateGraphicEntityController.java:32)
2024-07-27 16:22:29.562 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.CompositeController.run(CompositeController.java:87)
2024-07-27 16:22:29.563 16782-16957 System.err              com.abware.car_racing_game           W  	at com.scenemaxeng.projector.SceneMaxApp.simpleUpdate(SceneMaxApp.java:3072)
2024-07-27 16:22:29.564 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:261)
2024-07-27 16:22:29.564 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.app.AndroidHarnessFragment.update(AndroidHarnessFragment.java:582)
2024-07-27 16:22:29.565 16782-16957 System.err              com.abware.car_racing_game           W  	at com.jme3.system.android.OGLESContext.onDrawFrame(OGLESContext.java:366)
2024-07-27 16:22:29.566 16782-16957 System.err              com.abware.car_racing_game           W  	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1581)
2024-07-27 16:22:29.567 16782-16957 System.err              com.abware.car_racing_game           W  	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1280)
2 Likes

That is weird, looking at the code, com.jme3.asset.AssetConfig reads, probably in Android jme3-android/src/main/resources/com/jme3/asset/Android.cfg. That includes the jme3-core/src/main/resources/com/jme3/asset/General.cfg. Which in turn registers the glb loader. Could you debug this?

I don’t see that there are any changes to this system.

Edit: also, you do have the jme3-plugins included in your project?

2 Likes

Hello everyone, regarding this bug, I submitted a PR with a possible solution.

Apparently the problem is when comparing 2 objects to determine if they are equal. This is used when a list tries to search for an object using the indexOf(Object) method and is present in class GltfLoader.

What do you think of this solution?

4 Likes