Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bt_navigator crashes after reaching a goal pose #1401

Closed
mlherd opened this issue Dec 2, 2019 · 8 comments
Closed

bt_navigator crashes after reaching a goal pose #1401

mlherd opened this issue Dec 2, 2019 · 8 comments
Labels
0 - Critical Critical to project, highest priority nav2_bt_navigator Behavior tree version of the navigator

Comments

@mlherd
Copy link
Contributor

mlherd commented Dec 2, 2019

Terminal Logs All
[bt_navigator-11] [INFO] [bt_navigator]: Begin navigating from current location to (-0.63, 0.54)
[controller_server-8] [INFO] [controller_server]: Received a goal, begin computing control effort.
[controller_server-8] [INFO] [controller_server]: Preempting the goal. Passing the new path to the planner.
[controller_server-8] [INFO] [local_costmap.local_costmap]: Received request to clear entirely the local_costmap
[planner_server-9] [INFO] [global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[planner_server-9] [INFO] [global_costmap.global_costmap]: Subscribing to the map topic (/map) with transient local durability
[recoveries_server-10] [INFO] [recoveries_server]: Attempting spin
[recoveries_server-10] [INFO] [recoveries_server]: Turning -1.57 for spin recovery.
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[recoveries_server-10] [INFO] [recoveries_server]: spin completed successfully
[recoveries_server-10] [INFO] [recoveries_server]: Attempting wait
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[controller_server-8] [WARN] [controller_server]: Control loop missed its desired rate of 20.0000Hz
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[controller_server-8] [INFO] [controller_server]: Reached the goal!
[bt_navigator-11] terminate called after throwing an instance of 'std::logic_error'
[bt_navigator-11]   what():  BtActionNode::Tick: invalid status value
[ERROR] [bt_navigator-11]: process has died [pid 21994, exit code -6, cmd '/home/melih/Desktop/ros2_eloquent/nav2_master/install/nav2_bt_navigator/lib/nav2_bt_navigator/bt_navigator --ros-args -r __node:=bt_navigator --params-file /tmp/tmplp43mjeq        '].
Terminal Log Simplified (No warning messages)
[bt_navigator-11] [INFO] [bt_navigator]: Begin navigating from current location to (-0.63, 0.54)
[controller_server-8] [INFO] [controller_server]: Received a goal, begin computing control effort.
[controller_server-8] [INFO] [controller_server]: Preempting the goal. Passing the new path to the planner.
[controller_server-8] [INFO] [local_costmap.local_costmap]: Received request to clear entirely the local_costmap
[planner_server-9] [INFO] [global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[planner_server-9] [INFO] [global_costmap.global_costmap]: Subscribing to the map topic (/map) with transient local durability
[recoveries_server-10] [INFO] [recoveries_server]: Attempting spin
[recoveries_server-10] [INFO] [recoveries_server]: Turning -1.57 for spin recovery.
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[recoveries_server-10] [INFO] [recoveries_server]: spin running...
[recoveries_server-10] [INFO] [recoveries_server]: spin completed successfully
[recoveries_server-10] [INFO] [recoveries_server]: Attempting wait
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[recoveries_server-10] [INFO] [recoveries_server]: wait running...
[controller_server-8] [INFO] [controller_server]: Reached the goal!
[bt_navigator-11] terminate called after throwing an instance of 'std::logic_error'
[bt_navigator-11]   what():  BtActionNode::Tick: invalid status value
[ERROR] [bt_navigator-11]: process has died [pid 21994, exit code -6, cmd '/home/melih/Desktop/ros2_eloquent/nav2_master/install/nav2_bt_navigator/lib/nav2_bt_navigator/bt_navigator --ros-args -r __node:=bt_navigator --params-file /tmp/tmplp43mjeq        '].

Bug report

Steps to reproduce the issue

  • Send several different goals poses in a row via RViz

Expected behavior

  • Reach the goal pose and wait for the next one

Actual behavior

  • the robot reaches the goal pose and then bt-navigator crashes.

Additional information

  • I can't reproduce this issue consistently
@mlherd mlherd added the nav2_bt_navigator Behavior tree version of the navigator label Dec 2, 2019
@mlherd mlherd changed the title bt_navigator craches after reaching a goal pose bt_navigator crashes after reaching a goal pose Dec 2, 2019
@SteveMacenski
Copy link
Member

That’s no bueno. In general can we replace all exceptions with warnings? We absolutely don’t want things crashing, log inconsistent states or we need to guarantee that all exceptions are being handled

@mlherd
Copy link
Contributor Author

mlherd commented Dec 3, 2019

I don't have a strong opinion on this. Maybe this could be a working group discussion "replace all exceptions with warnings".

@SteveMacenski
Copy link
Member

Well I know that’s not a popular opinion in this group- just bringing up “hey this is a case that would help”.

Trying to compile with gdb and make it happen again to get a trace...

@SteveMacenski SteveMacenski added the 0 - Critical Critical to project, highest priority label Dec 3, 2019
@mlherd
Copy link
Contributor Author

mlherd commented Dec 10, 2019

I don't see this exact problem since #1417. However, sometimes bt navigator crashes with a different error message. I haven't had a chance to fully debug this issue, but here is a screenshot of the debugger logs when bt navigator dies.

bt

We can close this issue if it can't be reproduced anymore and I can open another issue for the other problem.

@ghost
Copy link

ghost commented Dec 11, 2019

This new stack you've posted looks related to #1285

@maxlein
Copy link
Contributor

maxlein commented Jan 6, 2020

I got this error also. Got the same debug log.
Happens to me when calling NavigateToPose in rviz while robot is already executing a goal.
But doesn't happen everytime... didn't figure out what's the cause yet.

@mkhansenbot
Copy link
Collaborator

Any update on this, does anyone know what's causing the exception?

@mkhansenbot
Copy link
Collaborator

Looks like the original issue is resolved and the new issue is a duplicate of #1285.

Forsyth-Creations pushed a commit to Forsyth-Creations/navigation2 that referenced this issue Feb 19, 2025
Co-authored-by: christophfroehlich <3367244+christophfroehlich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Critical Critical to project, highest priority nav2_bt_navigator Behavior tree version of the navigator
Projects
None yet
Development

No branches or pull requests

4 participants