Skip to content
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

Deactivate PerformerDetector if its parent model gets removed #260

Merged
merged 3 commits into from
Jul 28, 2020

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Jul 22, 2020

The PerformerDetector system currently assumes that its parent model always exists, but when used with levels, the parent model may get unloaded during simulation causing a segfault. This change deactivates a PerformerDetector if the model it is associated with gets removed.

@azeey azeey requested a review from chapulina as a code owner July 22, 2020 19:22
@azeey azeey self-assigned this Jul 22, 2020
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed that this fixes the crash for me when a level is unloaded.

@nkoenig
Copy link
Contributor

nkoenig commented Jul 28, 2020

@azeey , can you get this merged as soon as possible so that I can role out an update to cloudsim?

@nkoenig
Copy link
Contributor

nkoenig commented Jul 28, 2020

This looks good. I'll merge and start the release process.

@nkoenig nkoenig merged commit 3f577d5 into gazebosim:ign-gazebo2 Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants