Hey All!
I summon you @sgold I’m using minie library in my project and it’s absolutely fantastic. However I ran into an issue which I can’t seem to resolve, so I decided to go directly to the author.
TL;DR is that I get the following error when trying to start the application but only on one Linux machine. On another Linux machine (same OS) and on Windows it works fine. Have you ever seen anything like this? Detailed explanation below.
Apr 23, 2024 8:34:55 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.NoSuchMethodError: notifyCollisionGroupListeners_native
at com.jme3.bullet.PhysicsSpace.createPhysicsSpace(Native Method)
at com.jme3.bullet.PhysicsSpace.create(PhysicsSpace.java:1114)
at com.jme3.bullet.CollisionSpace.<init>(CollisionSpace.java:165)
at com.jme3.bullet.PhysicsSpace.<init>(PhysicsSpace.java:250)
at com.jme3.bullet.BulletAppState.createPhysicsSpace(BulletAppState.java:717)
at com.jme3.bullet.BulletAppState.startPhysics(BulletAppState.java:643)
at com.jme3.bullet.BulletAppState.stateAttached(BulletAppState.java:884)
at com.jme3.app.state.AppStateManager.attach(AppStateManager.java:147)
at com.game.modules.core.AbstractVoxelWorldState.setupPhysics(AbstractVoxelWorldState.java:316)
at com.game.modules.core.AbstractVoxelWorldState.initialize(AbstractVoxelWorldState.java:119)
at com.jme3.app.state.AppStateManager.initializePending(AppStateManager.java:332)
at com.jme3.app.state.AppStateManager.update(AppStateManager.java:362)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:258)
at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:628)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:717)
at java.base/java.lang.Thread.run(Thread.java:840)
I have this game project I’m working on. I literally git clone it to 3 machines, I run the same code and on one of them it fails to start.
- Windows 10 Desktop / Temurin JDK 17 - Works fine
- Pop! OS 22.04 Laptop / Temurin JDK 17 - Works fine
- Pop! OS 22.04 Desktop - Fresh install / Temurin JDK 17 - Fails with error above
Here is my sample code:
<!-- pom.xml -->
<dependency>
<groupId>com.github.stephengold</groupId>
<artifactId>Minie</artifactId>
<version>7.7.0</version> <!-- Also tried to update it to 8.0.0, it has the same result across machines -->
</dependency>
// AbstractVoxelWorldState.java
private void setupPhysics(AppStateManager stateManager) {
// This is commented because it was just an attempt to fix the issue but didn't help. I call App.start() so the native library should be loaded.
// NativeLibraryLoader.loadNativeLibrary("bulletjme", true);
this.bulletAppState = new BulletAppState();
stateManager.attach(bulletAppState); // This is line 316, where it fails.
}
All jme3-bullet dependencies are purged from the project, only Minie is loaded.