ros-visualization / rviz

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

Rviz crashes with segmentation fault when using Publish Point tool #1814

Closed krtt closed 9 months ago

krtt commented 10 months ago

When using Publish Point on a map, rviz crashes with segmentation fault. The more markers (MarkerArray elements) are used on the map, the quicker the crash happens (from one click to maybe 6-7 clicks most commonly). It also seems that when a map has a lot of lines (lanelet2) and also lines that are thicker than for example the default Grid lines in rviz, then placing Publish Point on such map line crashes rviz faster.

When reading other (old) seemingly similar publish-point-rviz-crashes cases online, I suspected the nvidia driver at first but if I open rviz with the default grid and no other map (or any other custom elements) then no crash happens. And trying different nvidia drivers (535, 545) has not changed anything either. I also tried to build rviz from source but nothing changed. To find out what we can change on our map or about the used markers, I tried to debug and get as much info about the crash as possible. But I dont have experience here and I need help to pinpointing also any rviz components that can contribute to the problem. Can someone help to debug this so we can reach the root cause of the crashes?

rviz_console_log.txt

gdb_rviz_console_log.txt

rhaschke commented 10 months ago

Could you please provide more details to reproduce the error? Concretely, it would be great to get a Python program publishing the described map and marker items. A corresponding .rviz file would be also great.

Additionally, I would like to ask you to test the same issue w/o an NVIDIA card. We have noticed issues with NVIDIA drivers before (e.g. #1660). If the issue is not reproducible with the Mesa lib, I'm afraid we cannot fix it. (It's simply an NVIDIA driver issue then.)

krtt commented 9 months ago

As of now, the solution was to build rviz with Ogre v1.12 (instead of default 1.9.0). I have not managed to make it crash with this newer Ogre. I believe it is simpler to use this solution (or workaround) and close this issue.

rhaschke commented 9 months ago

If Ogre 1.12 solves your problem, then it's an Ogre issue anyway. Unfortunately, the ROS community (particularly Gazebo guys) is stuck to this ancient release, which has a lot of known issues.