-
Notifications
You must be signed in to change notification settings - Fork 436
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
rclcpp_action std::runtime_error when killing action server #2757
Comments
Just adding the location of the exception: rclcpp/rclcpp_action/src/server.cpp Line 733 in 48a4761
|
about the exception on action server, i think you met the racy condition. I cannot reproduce this issue though. root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 run action_tutorials_cpp fibonacci_action_server
[INFO] [1741309035.485585161] [fibonacci_action_server]: Received goal request with order 10
[INFO] [1741309035.486094219] [fibonacci_action_server]: Executing goal
[INFO] [1741309035.486319267] [fibonacci_action_server]: Publish feedback
[INFO] [1741309036.486456961] [fibonacci_action_server]: Publish feedback
^C[INFO] [1741309037.169525708] [rclcpp]: signal_handler(signum=2)
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 run action_tutorials_cpp fibonacci_action_server
[INFO] [1741309042.508744397] [fibonacci_action_server]: Received goal request with order 10
[INFO] [1741309042.509333889] [fibonacci_action_server]: Executing goal
[INFO] [1741309042.509530099] [fibonacci_action_server]: Publish feedback
[INFO] [1741309043.509735177] [fibonacci_action_server]: Publish feedback
^C[INFO] [1741309044.408719362] [rclcpp]: signal_handler(signum=2)
root@tomoyafujita:~/ros2_ws/colcon_ws# ros2 run action_tutorials_cpp fibonacci_action_server
[INFO] [1741309049.774068952] [fibonacci_action_server]: Received goal request with order 10
[INFO] [1741309049.776226357] [fibonacci_action_server]: Executing goal
[INFO] [1741309049.777100021] [fibonacci_action_server]: Publish feedback
[INFO] [1741309050.776877790] [fibonacci_action_server]: Publish feedback
^C[INFO] [1741309051.480142554] [rclcpp]: signal_handler(signum=2)
i think
this seems like a bug, unexpected behavior. rclcpp/rclcpp_action/include/rclcpp_action/server_goal_handle.hpp Lines 246 to 251 in 48a4761
|
Hi, I am working on Ubuntu 24.04 with ROS2 jazzy.
I followed the tutorials on how to "Writing an action server and client (C++)". I launched the server and then the client as written in the tutorial. If I send a SIGINT to the server while the action is executing (^C) I get an std::runtime_error specifically:
I think this is a bug. The runtime error is thrown before rclcpp::shutdown() is called. As far as I know the server should send a notification to the client that the goal was canceled or aborted, call rclcpp::shutdown(), and finish cleanly. The problem is that, with this bug, the resources are not released.
The text was updated successfully, but these errors were encountered: