Skip to content

User misconfiguration of parameters may cause instantaneous crashs  #4005

@GoesM

Description

@GoesM

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • ROS2 Version:
    • humble
  • Version or commit hash:
  • DDS implementation:
    • default

Steps to reproduce issue

launch the navigation2 within defaulted tb3_simulation_launch.py as following commands

source install/setup.bash
source /opt/ros/humble/setup.bash
export TURTLEBOT3_MODEL=waffle
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/humble/share/turtlebot3_gazebo/models
ros2 launch nav2_bringup tb3_simulation_launch.py params_file:=my_nav2_params.yaml

there's only one difference between my_nav2_params.yaml and defaulted nav2_params.yaml, (we wrongly set the height of local_costmap as -20), as following:

...
...
local_costmap:
  local_costmap:
    ros__parameters:
      ...
      ...
      height: -20
...
...

and then , try to set an /initial_pose in rviz by 2D_estimate_pose or send a msg into /initial_pose in another terminal

Expected behavior

  • process should not crash / at least, it should not make the user's computer unable to continue working
  • the memory usage should not be too high

Actual behavior

  • process crashed when launching
    specifically, during the startup process of nav2, there may be computer lag, terminal crashes, or even a blue screen
    dbd3b31c83f94342cc9af850a9a897df_

  • abnormal memory usage
    we found that nav2_controller process occupies a very large amount of memory (up to 10G, sometimes even exceeding 20G, which is very abnormal), as following:
    db3537365059f4ae705cd6d092537db
    here's a normal memory usage when we use the defaulted nav2_params.yaml, which is for comparision.
    normal
    the max memory usage of whole nav2 is below 1G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions