Rviz2 crash on loading a configuration on mac M1
I'm trying to open a working ros2 example on my mac M1 and I get an exception :
$rviz2 --display-config ~/Documents/ros2_ws/install/luos_bike_alarm_example/share/ament_index/resource_index/packages/bike.rviz
[INFO] [1622636964.836365372] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1622636964.836506916] [rviz2]: OpenGl version: 2.1 (GLSL 1.2)
[INFO] [1622636964.891558393] [rviz2]: Stereo is NOT SUPPORTED
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
Abort trap: 6
here is the Rviz configuration file : https://github.com/aubrune/luos_bike_...
You might run rvi2 into gdb in order to better target the issue maybe.
I assume that you need to clone rviz2 sources in your ROS workspace, then run colcon with debug symbols, and use the gdb prefix: