-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM crash while loading a scaled MeshCollisionShape #43
Comments
The crash occurs while loading a collision shape using Libbulletjme v21.0.0 that was saved using that same native library on the same platform. Excerpt from boolean buildBvh = false;
long meshId = nativeMesh.nativeId();
long shapeId = createShape(useCompression, buildBvh, meshId);
setNativeId(shapeId);
setContactFilterEnabled(enableContactFilter);
setScale(scale); // <----- crash occurs here! Just before the crash, the value of Line 326 of It ought to be possible to iterate over all mesh triangles without using BVH, but that's not how |
I added a test app to Minie: 3802942 |
The fix is in: dcb979d |
joliver82 has confirmed the fix on Linux and Windows. |
Prior discussion: https://hub.jmonkeyengine.org/t/jvm-crash-in-stranded/47354/27
I reproduced the crash on Linux using DebugSp natives and the "pc-screen.gltf" model. Here is a native stack trace from GDB:
And here's the Java stack from the crash log:
The text was updated successfully, but these errors were encountered: