-
Notifications
You must be signed in to change notification settings - Fork 248
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 bad_function_call by replacing rclcpp::spin_some with SingleThreadedExecutor #705
Conversation
ce4c324
to
eb5e7f5
Compare
7409653
to
a89c100
Compare
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.
Overall, this is a good thing to fix (it's one of the persistent failures in CI).
There's a problem in the code that I pointed out inline; once that is fixed, hopefully the tests will successfully pass.
Separately, this isn't a great way for the rclcpp::spin_some
API to behave. This would be hard for others to debug. I have a running list of APIs that I think are "hard" to use; I'll add this to see what we can do to make it less dangerous.
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.
This improves things, certainly. The tests are still failing with a timeout in test_play__rmw_cyclonedds_cpp
; I'm not sure if that is known or new from this PR. I'm going to approve anyway and let you figure out whether this is an improvement regardless of that failing test.
5286065
to
4c21975
Compare
Gist: https://gist.githubusercontent.com/emersonknapp/ac0d6eb824f96d7d6dd8306fdace023b/raw/82faf3109ee0d7fdb8bbc453154b6b7ebd0a5be2/ros2.repos |
…h SingleThreadedExecutor Signed-off-by: Emerson Knapp <eknapp@amazon.com>
4c21975
to
7a5e04e
Compare
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
It was new from this PR - after a bit of debugging I have realized the |
…dedExecutor (ros2#705) * Fix bad_function_call in test_play by replacing rclcpp::spin_some with SingleThreadedExecutor * Replace other instances of rclcpp::spin_some Signed-off-by: Emerson Knapp <eknapp@amazon.com>
Extension of #576 - same fix applied in more places. I have been seeing occasional test flakiness due to this cause. See details from #576 following