-
Notifications
You must be signed in to change notification settings - Fork 650
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(start/goal_planner): fix multi thread memory crash #6322
fix(start/goal_planner): fix multi thread memory crash #6322
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6322 +/- ##
==========================================
- Coverage 14.36% 14.35% -0.02%
==========================================
Files 1907 1907
Lines 130136 130272 +136
Branches 37640 37640
==========================================
Hits 18697 18697
- Misses 90430 90566 +136
Partials 21009 21009
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Feels a bit over engineered, no? If the goal is to make sure 2 callbacks are not executed at the same time, then why not simply use the same callback queue for both? |
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1835352
to
1ab5eb2
Compare
@VRichardJP Since path candidates generation in this module is time consuming, it is done in a separate thread from the main thread called by run from manager. Concurrency is desirable because we want to generate paths without stopping the main thread. https://autowarefoundation.github.io/autoware.universe/main/planning/behavior_path_goal_planner_module/#pull-over |
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!!!
Super thanks.
…ation#6322) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
…ation#6322) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
…ation#6322) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
…ation#6322) Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Description
Wait for the multithreaded callback to finish in the destructor for
#5154
Tests performed
psim
evaluator_description: fix/start_goal_multithread
2024/02/06 https://evaluation.tier4.jp/evaluation/reports/a099d691-034b-5484-a751-547fe6c34756/?project_id=prd_jt
evaluator_description: fix/start_goal_multithread
2024/02/06 https://evaluation.tier4.jp/evaluation/reports/18277ac1-dd2a-5069-bced-148402a874bf/?project_id=prd_jt
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.