Skip to content

Nav2_lifecycle_manger dies in Windows #81

@gftabor

Description

@gftabor

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Some of the nav stack nodes crash launching turtlebot3 navigation launch. Specifically component_container_isolated dies. I am testing in simulation if that matters.

terminal 1

set TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py

Terminal 2

set TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True

Results in

(robostack:jazzy) C:\Users\tabor\robostack>ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True
[INFO] [launch]: All log files can be found below C:\Users\tabor\.ros\log\2025-06-23-17-50-13-434109-tabor-16768
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [component_container_isolated.EXE-1]: process started with pid [31444]
[INFO] [rviz2.EXE-2]: process started with pid [45176]
[component_container_isolated.EXE-1] [INFO] [1750715414.603098300] [nav2_container]: Load Library: C:\Users\tabor\robostack\.pixi\envs\jazzy\Library/bin/map_server_core.dll
[component_container_isolated.EXE-1] [INFO] [1750715414.617476400] [nav2_container]: Found class: rclcpp_components::NodeFactoryTemplate<nav2_map_server::CostmapFilterInfoServer>
[component_container_isolated.EXE-1] [INFO] [1750715414.617513000] [nav2_container]: Found class: rclcpp_components::NodeFactoryTemplate<nav2_map_server::MapSaver>
[component_container_isolated.EXE-1] [INFO] [1750715414.617516400] [nav2_container]: Found class: rclcpp_components::NodeFactoryTemplate<nav2_map_server::MapServer>
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/map_server' in container '/nav2_container'
[component_container_isolated.EXE-1] [INFO] [1750715414.617530100] [nav2_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<nav2_map_server::MapServer>
[component_container_isolated.EXE-1] [INFO] [1750715414.627170800] [map_server]:
[component_container_isolated.EXE-1]    map_server lifecycle node launched.
[component_container_isolated.EXE-1]    Waiting on external lifecycle transitions to activate
[component_container_isolated.EXE-1]    See https://design.ros2.org/articles/node_lifecycle.html for more information.
[component_container_isolated.EXE-1] [INFO] [1750715414.627200100] [map_server]: Creating
[component_container_isolated.EXE-1] [INFO] [1750715414.627652500] [nav2_container]: Load Library: C:\Users\tabor\robostack\.pixi\envs\jazzy\Library/bin/amcl_core.dll
[component_container_isolated.EXE-1] [INFO] [1750715414.632972800] [nav2_container]: Found class: rclcpp_components::NodeFactoryTemplate<nav2_amcl::AmclNode>
[component_container_isolated.EXE-1] [INFO] [1750715414.633010100] [nav2_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<nav2_amcl::AmclNode>
[component_container_isolated.EXE-1] [INFO] [1750715414.637996300] [amcl]:
[component_container_isolated.EXE-1]    amcl lifecycle node launched.
[component_container_isolated.EXE-1]    Waiting on external lifecycle transitions to activate
[component_container_isolated.EXE-1]    See https://design.ros2.org/articles/node_lifecycle.html for more information.
[INFO] [launch_ros.actions.load_composable_nodes]: Loaded node '/amcl' in container '/nav2_container'
[component_container_isolated.EXE-1] [INFO] [1750715414.638620300] [amcl]: Creating
[component_container_isolated.EXE-1] [INFO] [1750715414.641058400] [nav2_container]: Load Library: C:\Users\tabor\robostack\.pixi\envs\jazzy\Library/bin/nav2_lifecycle_manager_core.dll
[component_container_isolated.EXE-1] [INFO] [1750715414.645460100] [nav2_container]: Found class: rclcpp_components::NodeFactoryTemplate<nav2_lifecycle_manager::LifecycleManager>
[component_container_isolated.EXE-1] [INFO] [1750715414.645496000] [nav2_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<nav2_lifecycle_manager::LifecycleManager>
[rviz2.EXE-2] [INFO] [1750715415.336144000] [rviz2]: Stereo is NOT SUPPORTED
[rviz2.EXE-2] [INFO] [1750715415.336326500] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2.EXE-2] [INFO] [1750715415.370494600] [rviz2]: Stereo is NOT SUPPORTED
[rviz2.EXE-2] [INFO] [1750715415.429828600] [rviz2]: Subscribing to: /mobile_base/sensors/bumper_pointcloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.430319100] [rviz2]: Subscribing to: /mobile_base/sensors/bumper_pointcloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.440123600] [rviz2]: Subscribing to: /local_costmap/voxel_marked_cloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.496963100] [rviz2]: Subscribing to: /global_costmap/voxel_marked_cloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.837421000] [rviz2]: Subscribing to: /mobile_base/sensors/bumper_pointcloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.869431600] [rviz2]: Subscribing to: /local_costmap/voxel_marked_cloud
[rviz2.EXE-2]
[rviz2.EXE-2] [INFO] [1750715415.932611200] [rviz2]: Subscribing to: /global_costmap/voxel_marked_cloud
[rviz2.EXE-2]
[rviz2.EXE-2] [WARN] [1750715416.045457500] [rcl.logging_rosout]: Publisher already registered for node name: 'rviz2'. If this is due to multiple nodes with the same name then all logs for the logger named 'rviz2' will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[rviz2.EXE-2] [INFO] [1750715416.049578500] [rviz2]: Trying to load plugins...
[ERROR] [component_container_isolated.EXE-1]: process has died [pid 31444, exit code 3221225477, cmd 'C:\Users\tabor\robostack\.pixi\envs\jazzy\Library\lib\rclcpp_components\component_container_isolated.EXE --ros-args --log-level info --ros-args -r __node:=nav2_container --params-file C:\Users\tabor\AppData\Local\Temp\launch_params_sqbgb0ql --params-file C:\Users\tabor\AppData\Local\Temp\launch_params_3gjqdckc -r /tf:=tf -r /tf_static:=tf_static'].
[component_container_isolated.EXE-1] [INFO] [1750715414.652879500] [lifecycle_
[rviz2.EXE-2] [WARN] [1750715416.050998300] [rcl.logging_rosout]: Publisher already registered for node name: 'rviz2'. If this is due to multiple nodes with the same name then all logs for the logger named 'rviz2' will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[rviz2.EXE-2] [INFO] [1750715417.060072900] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715418.245206300] [rviz2]: planner_server service not available
[rviz2.EXE-2] [INFO] [1750715419.430294900] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715420.615212000] [rviz2]: smoother_server service not available
[rviz2.EXE-2] [INFO] [1750715421.797391400] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715421.953244400] [rviz2]: Failed to load plugins. Retrying...
[rviz2.EXE-2] [INFO] [1750715421.953271300] [rviz2]: Trying to load plugins...
[rviz2.EXE-2] [INFO] [1750715422.968310400] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715424.142250100] [rviz2]: planner_server service not available
[rviz2.EXE-2] [INFO] [1750715425.327346100] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715426.513167000] [rviz2]: smoother_server service not available
[rviz2.EXE-2] [INFO] [1750715427.698751600] [rviz2]: controller_server service not available
[rviz2.EXE-2] [INFO] [1750715427.870866400] [rviz2]: Failed to load plugins. Retrying...
[rviz2.EXE-2] [INFO] [1750715427.870906900] [rviz2]: Trying to load plugins...

This works as expected in Linux with robostack-jazzy.

Installed packages

https://gist.github.com/gftabor/150e56e71af98a9566716fbcd3d3c51b

Environment info

(robostack:jazzy) C:\Users\tabor\robostack>pixi info
System
------------
       Pixi version: 0.48.0
           Platform: win-64
   Virtual packages: __win=10.0.26100=0
                   : __cuda=12.9=0
                   : __archspec=1=skylake
          Cache dir: C:\Users\tabor\AppData\Local\rattler\cache
       Auth storage: C:\Users\tabor\.rattler\credentials.json
   Config locations: C:\Users\tabor\robostack\.pixi\config.toml

Global
------------
            Bin dir: C:\Users\tabor\.pixi\bin
    Environment dir: C:\Users\tabor\.pixi\envs
       Manifest dir: C:\Users\tabor\.pixi\manifests\pixi-global.toml

Workspace
------------
               Name: robostack
            Version: 0.1.0
      Manifest file: C:\Users\tabor\robostack\pixi.toml
       Last updated: 23-06-2025 12:35:01

Environments
------------
        Environment: default
           Features: default
           Channels: https://prefix.dev/conda-forge
   Dependency count: 9
       Dependencies: python, compilers, cmake, pkg-config, make, ninja, pip, apriltag, vs2022_win-64
   Target platforms: win-64
    Prefix location: C:\Users\tabor\robostack\.pixi\envs\default

        Environment: noetic
           Features: noetic, default
           Channels: https://prefix.dev/robostack-noetic, https://prefix.dev/conda-forge
   Dependency count: 12
       Dependencies: ros-noetic-desktop, catkin_tools, rosdep, python, compilers, cmake, pkg-config, make, ninja, pip, apriltag, vs2022_win-64
   Target platforms: win-64
    Prefix location: C:\Users\tabor\robostack\.pixi\envs\noetic

        Environment: humble
           Features: humble, default
           Channels: https://prefix.dev/robostack-humble, https://prefix.dev/conda-forge
   Dependency count: 11
       Dependencies: ros-humble-desktop, rosdep, python, compilers, cmake, pkg-config, make, ninja, pip, apriltag, vs2022_win-64
   Target platforms: win-64
    Prefix location: C:\Users\tabor\robostack\.pixi\envs\humble

        Environment: jazzy
           Features: jazzy, default
           Channels: https://prefix.dev/robostack-jazzy, https://prefix.dev/conda-forge
   Dependency count: 21
       Dependencies: ros-jazzy-desktop-full, python, ros-jazzy-turtlebot3, ros-jazzy-turtlebot3-msgs, ros-jazzy-navigation2, ros-jazzy-nav2-bringup, ros-jazzy-turtlebot3-simulations, colcon-common-extensions, rosdep, ros-jazzy-ament-cmake-vendor-package, ros-jazzy-apriltag-msgs, ros-jazzy-ament-cmake-clang-format, ros-jazzy-apriltag, compilers, cmake, pkg-config, make, ninja, pip, apriltag, vs2022_win-64
   Target platforms: win-64
    Prefix location: C:\Users\tabor\robostack\.pixi\envs\jazzy

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions