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

Use a custom data structure to manage entity feature maps #586

Merged
merged 8 commits into from
Mar 1, 2021

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Jan 27, 2021

This ensures that when a model is removed, all the related physics entities are removed as well causing the physics engine to clean up the memory used by the model and its children.

This also fixes a segfault that occurs when ign-gazebo is terminated after a model is unloaded by the level manager. The segfault seems to be due to a bug in DART (dartsim/dart#1534), but the bug is exposed due to the way children
physics entity pointers outlived their parent models because they weren't removed from their entity map when the parent model was unloaded.

This ensures that when a model is removed, all the related physics
entities are removed as well causing the physics engine to clean up the
memory used by the model and its children.

This also fixes a segfault that occurs when ign-gazebo is terminated
after a model is unloaded by the level manager.  The segfault seems to
be due to a bug in DART, but the bug is exposed due to the way children
physics entity pointers outlived their parent models because they
weren't removed from their entity map when the parent model was unloaded.

Signed-off-by: Addisu Z. Taddese <[email protected]>
This also uses the Entity of the collision instead of the parent

Signed-off-by: Addisu Z. Taddese <[email protected]>
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Jan 27, 2021
@azeey azeey self-assigned this Jan 27, 2021
@chapulina chapulina self-requested a review January 27, 2021 18:56
@azeey azeey marked this pull request as ready for review February 26, 2021 05:17
@azeey azeey requested a review from nkoenig February 26, 2021 05:17
@nkoenig
Copy link
Contributor

nkoenig commented Mar 1, 2021

Levels and subt work for me. Just one documentation comment.

Signed-off-by: Addisu Z. Taddese <[email protected]>
@nkoenig nkoenig merged commit e592cae into gazebosim:ign-gazebo3 Mar 1, 2021
@azeey
Copy link
Contributor Author

azeey commented Mar 1, 2021

The macOS failure seems like an infrastructure issue. Here's the previous build Build Status. The only change after that was documentation.

@azeey azeey deleted the fix_ctrl_c_crash branch March 1, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants