-
Notifications
You must be signed in to change notification settings - Fork 772
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
Fix executor to avoid random exceptions when shutting down #1212
Fix executor to avoid random exceptions when shutting down #1212
Conversation
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
As a reference of the issue of using |
@jacobperron can you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried it out yet, but makes sense to me.
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, seems like the best we can do until some refactoring happens to the rclcpp executor.
@osrf-jenkins run tests please |
@jacobperron feel free to merge when this is ready, as I don't have write access here. |
@osrf-jenkins run tests please |
* Fix executor to avoid random exceptions when shutting down Signed-off-by: Ivan Santiago Paunovic <[email protected]> * Add link to related issue in rclcpp Signed-off-by: Ivan Santiago Paunovic <[email protected]>
the devel job on build.ros2.org has been having lots of test failures since this was merged: any thoughts? |
@@ -41,7 +48,9 @@ void Executor::run() | |||
|
|||
void Executor::shutdown() | |||
{ | |||
rclcpp::shutdown(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect the issue is that we're no longer properly shutting down the context (only the executor itself). I can take a closer look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting this PR didn't seem to have any positive effect: #1227
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting this PR didn't seem to have any positive effect: #1227
I see the revert was finally closed, is the problem fixed?
I can take another look to this if not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was fixed by #1228
* Fix executor to avoid random exceptions when shutting down Signed-off-by: Ivan Santiago Paunovic <[email protected]> * Add link to related issue in rclcpp Signed-off-by: Ivan Santiago Paunovic <[email protected]>
This PR together with ros2/rclcpp#1505 seems to fix
test_node
failures.Fixes #1169.
Replaces #1197.