-
Notifications
You must be signed in to change notification settings - Fork 344
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
ros2_control_node crashes abruptly with error "what(): Taking data from action server but nothing is ready #981
Comments
@saikishor @destogl @bmagyar I yet don't know why, but if the action server of JTC throws this |
@christophfroehlich Yes, this will happen. I remember us discussing this topic to make it fail-proof. I had a similar experience but with a different controller a few months back. This is the to-do list for the Jazzy and also to backport. |
@watanabeyyy I am having the same problem as you... Have you found any work arounds yet? Thanks!
|
Can we reproduce this error with the demos repo?
…On Tue, 19 Mar 2024, 18:15 Zachary Yamaoka, ***@***.***> wrote:
@watanabeyyy <https://github.com/watanabeyyy> I am having the same
problem as you...
Have you found any work arounds yet?
Thanks!
[ros2_control_node-1] terminate called after throwing an instance of
'std::runtime_error'
[ros2_control_node-1] what(): Taking data from action server but nothing
is ready
[ros2_control_node-1] Stack trace (most recent call last):
[ros2_control_node-1] #15
<#15> Object "", at
0xffffffffffffffff, in
[ros2_control_node-1] #14
<#14> Object
"/opt/ros/iron/lib/controller_manager/ros2_control_node", at
0x59eda8974e04, in _start
[ros2_control_node-1] #13
<#13> Source
"../csu/libc-start.c", line 392, in __libc_start_main_impl [0x7a83afa29e3f]
[ros2_control_node-1] #12
<#12> Source
"../sysdeps/nptl/libc_start_call_main.h", line 58, in
__libc_start_call_main [0x7a83afa29d8f]
[ros2_control_node-1] #11
<#11> Object
"/opt/ros/iron/lib/controller_manager/ros2_control_node", at
0x59eda89749ef, in main
[ros2_control_node-1] #10
<#10> Object
"/opt/ros/iron/lib/librclcpp.so", at 0x7a83b030ea84, in
rclcpp::executors::MultiThreadedExecutor::spin()
[ros2_control_node-1] #9
<#9> Object
"/opt/ros/iron/lib/librclcpp.so", at 0x7a83b030e621, in
rclcpp::executors::MultiThreadedExecutor::run(unsigned long)
[ros2_control_node-1] #8
<#8> Object
"/opt/ros/iron/lib/librclcpp.so", at 0x7a83b030585e, in
rclcpp::Executor::get_next_ready_executable_from_map(rclcpp::AnyExecutable&,
std::map<std::weak_ptrrclcpp::CallbackGroup,
std::weak_ptrrclcpp::node_interfaces::NodeBaseInterface,
std::owner_less<std::weak_ptrrclcpp::CallbackGroup >,
std::allocator<std::pair<std::weak_ptrrclcpp::CallbackGroup const,
std::weak_ptrrclcpp::node_interfaces::NodeBaseInterface > > > const&)
[ros2_control_node-1] #7
<#7> Object
"/opt/ros/iron/lib/librclcpp_action.so", at 0x7a83a0259785, in
[ros2_control_node-1] #6
<#6> Object
"/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7a83afeae4d7, in
__cxa_throw
[ros2_control_node-1] #5
<#5> Object
"/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7a83afeae276, in
std::terminate()
[ros2_control_node-1] #4
<#4> Object
"/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7a83afeae20b, in
[ros2_control_node-1] #3
<#3> Object
"/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30", at 0x7a83afea2b9d, in
[ros2_control_node-1] #2
<#2> Source
"./stdlib/abort.c", line 79, in abort [0x7a83afa287f2]
[ros2_control_node-1] #1
<#1> Source
"../sysdeps/posix/raise.c", line 26, in raise [0x7a83afa42475]
[ros2_control_node-1] #0 | Source "./nptl/pthread_kill.c", line 89, in
__pthread_kill_internal
[ros2_control_node-1] | Source "./nptl/pthread_kill.c", line 78, in
__pthread_kill_implementation
[ros2_control_node-1] Source "./nptl/pthread_kill.c", line 44, in
__pthread_kill [0x7a83afa969fc]
[ros2_control_node-1] Aborted (Signal sent by tkill() 15536 1000)
—
Reply to this email directly, view it on GitHub
<#981 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA24PYOQJN5MO4XSL3GRCYLYZB6EVAVCNFSM6AAAAABB7NFVSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHA2DCNRRGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm getting this error when running the latest joint_trajectory_controller in iron at random times. Haven't narrowed down the source of the problem yet. |
Is it the same error with the same prints in the console or you are also
getting a runtime error? Please copy logs if they are different
…On Mon, 29 Apr 2024, 18:47 Kevin DeMarco, ***@***.***> wrote:
I'm getting this error when running the latest joint_trajectory_controller
in iron at random times. Haven't narrowed down the source of the problem
yet.
—
Reply to this email directly, view it on GitHub
<#981 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA24PYIN2PO7XR3XRLMZSVDY72BUDAVCNFSM6AAAAABB7NFVSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGMYDQNZVGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've seen the |
I've been using humble until about 3 weeks ago and I've been seeing this random error since then quite a few times. I've added a few extra log outputs to try to narrow down the problem. This occurs when I'm using rviz2/ MoveIt2 to send desired poses. Here is the log output:
It fails once about every ten times that I send a desired pose. Do you have a recommended way of finding the bug? I tried building debug symbols and running in gdb / gdb server, but the output isn't very helpful. I'm thinking about just building the joint_trajectory_controller from humble and seeing I get the same error. |
Hello! It seems to be happening from the core packages side. This recently merged PR : ros2/rclcpp#2495 might fix it. Best Regards, |
Please note that the patch will likely not be backported to Iron as it introduces an ABI change. EDIT: |
@firesurfer What is the status of the backports of the rclcpp fix to iron and humble? What I've seen is that it got merged into humble 3 weeks ago, but I'm not sure about humble. |
Iron has been backported and merged. Not sure about humble though. |
From the humble commit history I think it is not backported yet: EDIT: Basically the same bug also exists in rclpy: ros2/rclpy#1123 |
I'm using ros2 rolling on Ubuntu 22.04 and have built ros2_control and ros2_controllers from source (latest pull) but I'm still facing this problem.
|
which version of rclcpp do you have? It was released with 28.0.1, and rolling is not updated on 22.04 any more! |
I have 27.0.0. I just switch to jazzy and don't have this issue. Thank you. |
I am building an application with ros2 iron using moveit and ros2control.
The application I created usually works without errors, but "sometimes" it crashes abruptly.
The errors at that time are as follows.
I would appreciate any insight you can give me.
The text was updated successfully, but these errors were encountered: