Closed Kukhokuhle closed 1 year ago
I guess the code was not compiled in debug mode. Can you do that and copy-paste the gdb backtrace?
Hi Jemin,
In debug mode, the simulation does not even begin to run. Instead, it stops with a SIGSEGV fault again and gdb prints:
Thread 1 "testExe" received signal SIGSEGV, Segmentation fault. 0x00005555555d6b77 in _mm_load_pd (__P=0x8) at /usr/lib/gcc/x86_64-linux-gnu/9/include/emmintrin.h:124 124 return (__m128d )__P;
Then backtrace produces a really long response, as follows:
at /home/kukhokuhle/anaconda3/envs/cbf_oa/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h:716
at /home/kukhokuhle/anaconda3/envs/cbf_oa/include/eigen3/Eigen/src/Core/GenericPacketMath.h:967
at /home/kukhokuhle/anaconda3/envs/cbf_oa/include/eigen3/Eigen/src/Core/CoreEvaluators.h:245
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
from //home/kukhokuhle/raisim_workspace/cbf_obstacle_avoidance/dependencies/networks_minimal/lib/libnetworks_minimal.so
That backtrace is very useful.
What is libnetwork_minimal? Is this your package?
This bug is probably not in Raisim because you dont see any raisim method in the bt.
Yes, libnetwork_minimal is our package. It is part of the controller we're executing for the robot.
Do you have any idea what could be wrong with this package, based on the backtrace?
It is probably due to the alignment problem. I cannot be 100 percent sure on this without reviewing your code but this link might help you
https://github.com/isl-org/Open3D/issues/653
Read the eigen issue links. Also try to compile your code with cpp17 or higher. If that doesnt help, compile your library with simd instruction sets disabled
I'll close this issue because it's not related to Raisim
Hi all.
I am simulating a quadruped/robot in raisim. Everything has been running well, however, recently I am having an issue with collisions. I have imported a height map. When the robot collides with the stairs represented by the height map, I get a segmentation fault (I get the error: Thread 3 "testExe" received signal SIGSEGV, Segmentation fault.)
The gdb backtrace is as follows:
0 0x000055555558c260 in raisim::RaisimServer::update() ()
1 0x000055555558df58 in raisim::RaisimServer::processRequests() ()
2 0x000055555558e98e in raisim::RaisimServer::loop() ()
3 0x00007ffff4308a93 in std::execute_native_thread_routine (__p=)
4 0x00007ffff7e29609 in start_thread (arg=) at pthread_create.c:477
5 0x00007ffff3e42133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
May you please help me figure out what the issue is here? Thank you.