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
Closed
Assignees
Labels
bug Something that is supposed to work, but doesn't. More severe than a "defect". Physics Issues with all kinds of Physics and their Bindings
Milestone

Comments

@stephengold
Copy link
Member

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
@empirephoenix
Copy link
Contributor

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

@stephengold
Copy link
Member Author

Fixed in master branch as of 3.3-6853.

@stephengold stephengold added the bug Something that is supposed to work, but doesn't. More severe than a "defect". label Sep 18, 2019
@stephengold stephengold added the Physics Issues with all kinds of Physics and their Bindings label Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to work, but doesn't. More severe than a "defect". Physics Issues with all kinds of Physics and their Bindings
Projects
None yet
Development

No branches or pull requests

2 participants