-
Notifications
You must be signed in to change notification settings - Fork 302
Use a queue to track component registration from mulitiple sources #1836
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
Conversation
7b94729
to
e190c51
Compare
Signed-off-by: Addisu Z. Taddese <[email protected]>
e190c51
to
10e1174
Compare
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1836 +/- ##
===============================================
+ Coverage 64.80% 64.83% +0.02%
===============================================
Files 322 323 +1
Lines 26391 26416 +25
===============================================
+ Hits 17104 17127 +23
- Misses 9287 9289 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[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.
I think you can go ahead and add the peer gz
headers here as well.
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.
Approach looks good, some small nits.
I think it's probably wise to go ahead and forward port this one by itself while you have context, as there are quite a few TODOs introduced here.
Signed-off-by: Addisu Z. Taddese <[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, sorry about the gz
header confusion, I thought we had made it this far.
|
@osrf-jenkins run tests please |
…azebosim#1836) When a plugin gets unloaded, the component types it registered will have invalid component descriptors. Attempting to create new components of those types will result in a segfault. This PR is an attempt to fix that by keeping track of all component registrations and removing invalid ones when plugins get unloaded. --------- Signed-off-by: Addisu Z. Taddese <[email protected]>
…1836) When a plugin gets unloaded, the component types it registered will have invalid component descriptors. Attempting to create new components of those types will result in a segfault. This PR is an attempt to fix that by keeping track of all component registrations and removing invalid ones when plugins get unloaded. --------- Signed-off-by: Addisu Z. Taddese <[email protected]>
🦟 Bug fix
Fixes #1780, #806
Summary
When a plugin gets unloaded, the component types it registered will have invalid component descriptors. Attempting to create new components of those types will result in a segfault. This PR is an attempt to fix that by keeping track all component registrations and removing invalid ones when plugins get unloaded.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.