Skip to content
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

JRE crash with zero-thickness mesh shape in Minie v4.5 #19

Closed
stephengold opened this issue Nov 26, 2021 · 4 comments
Closed

JRE crash with zero-thickness mesh shape in Minie v4.5 #19

stephengold opened this issue Nov 26, 2021 · 4 comments

Comments

@stephengold
Copy link
Owner

Reported by Koteinik at the JMonkeyEngine Forum/Hub: https://hub.jmonkeyengine.org/t/fatal-error-in-jre-when-using-minie/45129

This appears to be a regression in Minie v4.5 caused by the fix to issue #18.

Here's a test that triggers the crash with a debug native library:

    public void simpleInitApp() {
        BulletAppState bulletAppState = new BulletAppState();
        stateManager.attach(bulletAppState);

        Node playerNode = new Node();
        rootNode.attachChild(playerNode);

        BetterCharacterControl player
                = new BetterCharacterControl(0.5f, 6f, 2f);
        playerNode.addControl(player);
        bulletAppState.getPhysicsSpace().add(player);

        Box b = new Box(0f, 1f, 16f);
        CollisionShape shape = new MeshCollisionShape(b);
        PhysicsRigidBody phys
                = new PhysicsRigidBody(shape, PhysicsBody.massForStatic);
        bulletAppState.getPhysicsSpace().addCollisionObject(phys);
    }
@stephengold
Copy link
Owner Author

The fix is taking longer than expected, mainly due to a build issue at Travis CI: ticket 34567.

@stephengold
Copy link
Owner Author

Typical console output:

Debug_Libbulletjme version 12.5.0 initializing
java: /home/travis/build/stephengold/Libbulletjme/src/main/native/bullet3/LinearMath/btVector3.h:305: btVector3& btVector3::normalize(): Assertion `!fuzzyZero()' failed.

@stephengold
Copy link
Owner Author

The fix is in Libbulletjme v12.6.0, which was just released today.

@stephengold
Copy link
Owner Author

This fix is in Minie v4.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant