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

ConeJoint causes rigid body to disappear with native Bullet on Linux #1135

Closed
stephengold opened this issue Jul 4, 2019 · 2 comments

Comments

@stephengold
Copy link
Contributor

commented Jul 4, 2019

This issue affects jme3-bullet on Linux but not on Windows. It was reported at the Forum: https://hub.jmonkeyengine.org/t/capsulecolissionshape-not-visible/42030

It can be demonstrated using TestRagdoll. When the issue manifests, the capsule shapes that make up the bones of the ragdoll don't appear in the visualization, probably because their physics locations are NaN.

Replacing the cone joints with 6-DOF joints works around the issue. Recompiling the jme3-bullet-native library with gcc -O3 instead of gcc -Ofast seems to resolve the issue.

Here's how the GCC manual describes -Ofast:

Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It also enables optimizations that are not valid for all standard-compliant programs. It turns on -ffast-math and the Fortran-specific -fstack-arrays, unless -fmax-stack-var-size is specified, and -fno-protect-parens.

Probably we shouldn't be using -Ofast on code not designed for such optimizations.

@stephengold stephengold self-assigned this Jul 4, 2019

@stephengold stephengold added this to the v3.2.4 milestone Jul 4, 2019

stephengold added a commit that referenced this issue Jul 4, 2019

@empirephoenix

This comment has been minimized.

Copy link
Contributor

commented Jul 5, 2019

Hm yeah sounds about right, -O3 should be good enough anyway

@stephengold

This comment has been minimized.

Copy link
Contributor Author

commented Jul 7, 2019

Fixed in master branch as of 3.3-6853.

@stephengold stephengold closed this Jul 7, 2019

stephengold added a commit that referenced this issue Jul 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.