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

[ROS 2] Invalid context error when stopping turtle_teleop_key #86

Closed
jacobperron opened this issue May 21, 2020 · 3 comments
Closed

[ROS 2] Invalid context error when stopping turtle_teleop_key #86

jacobperron opened this issue May 21, 2020 · 3 comments
Labels

Comments

@jacobperron
Copy link

Sometimes during the shutdown of turtle_teleop_key (i.e. Ctrl-C), we see the following error:

[ERROR] [1590100346.240527469] [rclcpp]: failed to create wait set: the given context is not valid, either rcl_init() was not called or rcl_shutdown() was called., at /tmp/binarydeb/ros-foxy-rcl-1.0.0/src/rcl/wait.c:128
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to create wait set in Executor constructor

Looks like an issue with the signal handling logic.

I've seen the same behavior with Fast-RTPS and CycloneDDS.

@ivanpauno
Copy link

Looks like duplicate of ros2/rclcpp#1139.

@ivanpauno
Copy link

Closing in favor of ros2/rclcpp#1139

@jacobperron
Copy link
Author

Note, this was a bug that came up during Foxy testing. It would be nice if a solution to ros2/rclcpp#1139 could be backported to Foxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants