-
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
MultiThreadedExecutor with wall timer hung #780
Comments
Context: [ros2] multi threaded executor with single node always makes the wall-timer hung. on ROS Answers. Related (according to OP): #702. |
I couldn't reproduce the problem in master.
Did you use the binaries of the first release, or Dashing release patch 1 binaries?
Did you only download this repo ( |
The first release was installed with debian package installation (https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Install-Debians/). |
I tried with ROS2 built from source (latest-release) and the example above(running with MultiThreadedExecutor) worked fine. |
I will also try from binaries, to double check.
Thanks for checking it! I will try to figure out what PR solved the problem, and add it to the patch release 2 list (if it's not already there). |
I confirm that it isn't working when installing from debians. I have not clue about what PR solved the problem. |
@ivanpauno if they were building @Mygao or @ivanpauno have either of you tried reproducing this issue with the Dashing binary archive? https://github.com/ros2/ros2/releases/tag/release-dashing-20190614 That might add an additional data point. |
I didn't try with
No, I only tried with debians. I haven't tried with the binary archive. |
Trying with release-latest from source to confirm @Mygao's findings seems prudent as well to avoid chasing shadows. |
I tried from source using |
@Mygao could you check if this is still happening after the last patch release? |
@ivanpauno I actually just ran into this issue and I'm using the latest debian of dashing as far as I can tell |
OK so I just found this #836 which is the PR that fixed this issue. So it looks like we should probably put this in the patch release EDIT: oops I see that you're already aware of this. Sorry for bothering you XD |
This fix was released in Dashing Patch 4 but the issue wasn't removed from the board so it got bumped forward. I'm taking it off now but the fix was released. |
Signed-off-by: Stephen Brawner <[email protected]>
* Refactor rcl_yaml_param_parser for better testability Signed-off-by: Stephen Brawner <[email protected]> * Reorder parser.c to match parser.h Signed-off-by: Stephen Brawner <[email protected]> squash! Reorder parser.c to match parser.h * Refactor yaml_variant.c for deduplication Signed-off-by: Stephen Brawner <[email protected]> * ADD_VALUE_TO_SIMPLE_ARRAY for deduplication Signed-off-by: Stephen Brawner <[email protected]> * Remove fprintf Signed-off-by: Stephen Brawner <[email protected]> * PR Fixup Signed-off-by: Stephen Brawner <[email protected]> * Move headers to src directory Signed-off-by: Stephen Brawner <[email protected]> * PR Fixup Signed-off-by: Stephen Brawner <[email protected]> * Rebase ros2#780 Signed-off-by: Stephen Brawner <[email protected]>
Bug report
Required Info:
Steps to reproduce issue
This can be reproduced by modifying ros2 composition examples source code: SingleThreadedExecutor->MultiThreadedExecutor (https://github.com/ros2/examples/blob/master/rclcpp/minimal_composition/src/composed.cpp)
Expected behavior
Message output goes on and on with count increasing without hanging
Actual behavior
Message output hangs. For example,
ros2 run examples_rclcpp_minimal_composition composition_composed
[INFO] [publisher_node]: Publisher: 'Hello, world! 0'
[INFO] [subscriber_node]: Subscriber: 'Hello, world! 0'
[INFO] [publisher_node]: Publisher: 'Hello, world! 1'
[INFO] [subscriber_node]: Subscriber: 'Hello, world! 1'
Stops here.
Additional information
I tested on 2 systems: Desktop and Laptop with both Ubuntu 18.04.2 LTS. Same ROS2 Dashing setups.
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered: