Skip to content

RViz2 intermittent segfault on shutdown when using run_rviz.sh #9675

Description

@LuisPovedaCano

Tested in Ubuntu 22.04
Python 3.11.14
In the branch luis/update_ros_example

Steps to reproduce:

  1. Run CARLA with make launch ARGS="--ros2 --editor-flags='--ros2'"
  2. Start the simulation
  3. Open a new terminal and go to PythonAPI/examples/ros2
  4. Run the RViz example: ./run_rviz.sh
  5. Close RViz

Expected behavior: Clean shutdown with no errors.

Observed behavior: Intermittently, after closing RViz, a segmentation fault is logged:

  [ros2run]: Segmentation fault

Notes:

  • Does not happen on every run
  • This segmentation fault can be triggered with any combination of --distro and --rmw
  • The crash happens during RViz2 shutdown.
  • It does not affect the simulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions