robostack.github.io icon indicating copy to clipboard operation
robostack.github.io copied to clipboard

rviz2 freezes on launch on jazzy & kilted

Open dj-nuo opened this issue 6 months ago • 6 comments

Hi! Tried following this instruction: https://robostack.github.io/GettingStarted.html

Both:

  • pixi
  • conda

Distros:

  • humble - rviz2 works and launches GUI. Both using pixi and conda. GPU usage is reasonable.
  • jazzy - rviz2 shows rViz loading screen and just freezes. Both using pixi and conda.
  • kilted - rviz2 shows rViz loading screen and just freezes. On pixi - it freezes. On conda - it launches, but spikes GPU usage to 100% and it laggy.

Machine:

  • MacBook Pro M1 Max (24 GPU cores), 32GB RAM
  • MacOS 15.6.1

Can you plz provide some guidance? Or can you reproduce it on your side?

dj-nuo avatar Aug 26 '25 15:08 dj-nuo

How are you launching rviz2 ? With ros2 run rviz2 rviz2 ?

traversaro avatar Aug 26 '25 15:08 traversaro

How are you launching rviz2 ? With ros2 run rviz2 rviz2 ?

By just using rviz2 command

dj-nuo avatar Aug 26 '25 15:08 dj-nuo

How are you launching rviz2 ? With ros2 run rviz2 rviz2 ?

By just using rviz2 command

Can you try with ros2 run rviz2 rviz2 ?

traversaro avatar Aug 26 '25 15:08 traversaro

Ok, I tried ros2 run rviz2 rviz2, results:

  • pixi + kilted = can't activate env using pixi shell -e kilted [^1]
  • pixi + jazzy = froze. (rviz2 r14.1.12)
  • pixi + humble = successful. (rviz2 r11.2.18)
  • mamba/conda + kilted = launches (rviz2 r15.0.3), but has a bunch or errors in the terminal. Same applies when running, e.g. ros2 bag play ... [^2]
  • mamba/conda + jazzy = froze (rviz2 version unknown since window didn't appear at all)
  • mamba/conda + humble = successful. (rviz2 r11.2.18)

Between each of the tests I completely removed environment & started from scratch.

[^1]: error: thread 'tokio-runtime-worker' panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.47.1/src/runtime/time/entry.rs:602:9: A Tokio 1.x context was found, but it is being shutdown. Error: × failed to fetch ros2-distro-mutex-0.10.0-kilted_10.conda ╰─▶ hash mismatch when extracting https://prefix.dev/robostack-kilted/osx-arm64/ros2-distro-mutex- 0.10.0-kilted_10.conda to /Users/aleksej/Library/Caches/rattler/cache/pkgs/ros2-distro-mutex-0.10.0- kilted_10: expected d9c3314b599260eaa599dd7041fc6f2a, got 5238d9571d6695cabaa9795adb66da74, total size 2340 bytes

[^2]: errors: Problem to set affinity of thread with id [0x16d36f000,dds.log] to value 0. Error 'Protocol family not supported' 2025-08-26 18:33:43.038 [SYSTEM Error] Problem to set affinity of thread with id [0x16d2e3000,dds.shm.wdog] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.039 [SYSTEM Error] Problem to set affinity of thread with id [0x16d3fb000,dds.ev.0] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.039 [SYSTEM Error] Problem to set affinity of thread with id [0x16d487000,dds.udp.7410] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.040 [SYSTEM Error] Problem to set affinity of thread with id [0x16d513000,dds.udp.7400] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d59f000,dds.shm.7411] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d62b000,dds.udp.7411] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d6b7000,dds.asyn.0.0] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d743000,dds.tls.request] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d7cf000,dds.asyn.0.1] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.049 [SYSTEM Error] Problem to set affinity of thread with id [0x16d85b000,dds.tls.replies] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.413 [SYSTEM Error] Problem to set affinity of thread with id [0x16d8e7000,dds.shm.7000] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity 2025-08-26 18:33:43.413 [SYSTEM Error] Problem to set affinity of thread with id [0x16d973000,dds.udp.7000] to value 0. Error 'Protocol family not supported' -> Function configure_current_thread_affinity

dj-nuo avatar Aug 26 '25 17:08 dj-nuo

Thanks! I suspect this problem is related to https://github.com/RoboStack/ros-jazzy/issues/57 . I will have access to a macOS machine next week, I will try then.

traversaro avatar Aug 26 '25 20:08 traversaro

Seems like when I set export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp, it works, but crashes sometimes with

libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
[ros2run]: Abort trap: 6

Alby407 avatar Sep 16 '25 14:09 Alby407