Segmentation fault on BodyInterface.GetCenterOfMassPosition #1618
Replies: 2 comments
-
If it helps anybody, valgrind returns:
|
Beta Was this translation helpful? Give feedback.
-
If I copy your code back into HelloWorld.cpp then it works just fine. My guess is that you have a difference in compiler parameters between your app and how Jolt is compiled that causes the generated code to be incompatible (e.g. causes class sizes to change). If you inspect |
Beta Was this translation helpful? Give feedback.
-
Hello again,
I'm trying to recode step-by-step and run the (HelloWorld/HelloWorld.cpp) , to learn the library.
Having gone trough most of the code, I continue to get segfault on the call:
(line 340 on the link)
The rest of the code runs fine, and even
body_interface.GetLinearVelocity(sphere_id);
, right bellow it returns perfectly.running GDB gets me:
my code, (the functions before main where copied as-is from the example on git):
Copying the raw HelloWorld.cpp file from github runs into exactly the same segfault at the exact same function.
What am I doing wrong?
Jolt is installed from git/main, system is ubuntu linux.
Beta Was this translation helpful? Give feedback.
All reactions