ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
791 stars 459 forks source link

Segmentation fault on rviz::buildMesh when adding RobotModel display #1811

Closed matlabbe closed 7 months ago

matlabbe commented 7 months ago

Your environment

Solution

On my computer, the problem is that I had a libassimp.so in /usr/local/lib hiding the system libassimp.so that rviz should actually be using:

ldd /opt/ros/noetic/bin/rviz | grep assimp
    libassimp.so.5 => /usr/local/lib/libassimp.so.5 (0x00007f806c135000)

Removing it from /usr/local/lib fixed the issue, so now it is loading the right one on runtime and there is no crash when adding RobotModel display (tested with turtlebot3 simulation):

ldd /opt/ros/noetic/bin/rviz | grep assimp
    libassimp.so.5 => /lib/x86_64-linux-gnu/libassimp.so.5 (0x00007f0f4f910000)

I created an issue here with the solution to keep it somewhere searchable on internet :)