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

Segmentation faults in reduced deformable examples #4611

Open
justincredible opened this issue May 7, 2024 · 0 comments
Open

Segmentation faults in reduced deformable examples #4611

justincredible opened this issue May 7, 2024 · 0 comments

Comments

@justincredible
Copy link

justincredible commented May 7, 2024

The example browser is crashing on all the Reduced Deformabe Body examples (except the empty Mode Visualizer).

This is the output:

X11 functions dynamically loaded using dlopen/dlsym OK!
X11 functions dynamically loaded using dlopen/dlsym OK!
Creating context
Created GL 3.3 context
Direct GLX rendering context obtained
Making context current
GL_VENDOR=AMD
GL_RENDERER=RAVEN2 (raven2, LLVM 15.0.7, DRM 3.42, 5.15.0-105-generic)
GL_VERSION=4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
GL_SHADING_LANGUAGE_VERSION=4.60
pthread_getconcurrency()=0
Version = 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Vendor = AMD
Renderer = RAVEN2 (raven2, LLVM 15.0.7, DRM 3.42, 5.15.0-105-generic)
b3Printf: Selected demo: Reduced Free Fall
Nodes:  0
Links:  0
Faces:  0
Tetras: 0
Nodes:  0
Links:  0
Faces:  0
Tetras: 0
ven = AMD
b3Printf: Aborting and deleting SharedMemoryCommon object
Segmentation fault (core dumped)

and the backtrace:

(gdb) bt
#0  0x00007ffff7ddf4ca in btDeformableContactProjection::reinitialize(bool) ()
   from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#1  0x00007ffff7dc700c in btDeformableBackwardEulerObjective::reinitialize(bool, double) ()
   from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#2  0x00007ffff7e018b0 in btReducedDeformableBodySolver::reinitialize(btAlignedObjectArray<btSoftBody*> const&, double) () from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#3  0x00007ffff7de7c59 in btDeformableMultiBodyDynamicsWorld::reinitialize(double) ()
   from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#4  0x00007ffff7de985d in btDeformableMultiBodyDynamicsWorld::internalSingleStepSimulation(double) ()
   from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#5  0x00007ffff7de4675 in btDeformableMultiBodyDynamicsWorld::stepSimulation(double, int, double) ()
   from /home/justin/repos/forks/bullet3/build_cmake/src/BulletSoftBody/libBulletSoftBody.so.3.26
#6  0x00007ffff7e41af7 in OpenGLExampleBrowser::update(float) ()
   from /home/justin/repos/forks/bullet3/build_cmake/examples/ExampleBrowser/libBulletExampleBrowserLib.so.3.26
#7  0x00005555555f969c in main ()

Most of the other backtaces are identical (Conservation Test has an extra frame, but Springboard is very different). I have a "workaround" to avoid the faults, which seems to indicate the issue is lists of constraints are not being added when a soft body is added but despite not crashing they still seem wrong.

I've tried building from a few different commits in the past but none appear to work. I also tried it on a beefier Windows machine and it's also crashing there.

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