ros2 / rviz

ROS 3D Robot Visualizer
BSD 3-Clause Clear License
307 stars 214 forks source link

Segfault from plugin with multiple RosTopicProperty #1283

Open mjforan opened 1 month ago

mjforan commented 1 month ago

I am seeing the same behavior as #547. When I create an RViz plugin with multiple RosTopicProperty, the first works as expected but clicking on the others causes a segfault. On startup they are missing the arrow indicating a drop-down menu, so it looks like they are not being created properly. I have created a very simple reproduction based on the tutorial.

My example includes a Docker image so you can easily test the scenario. If you do not have an NVIDIA GPU, omit the --gpus all part.

xhost +local:root
docker run -it --rm --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --gpus all mjforan/rviz_plugin_tutorial rviz2

Tested on Humble and Jazzy.

fujitatomoya commented 1 month ago

@ahcorde can you take a look at this?