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

Fix gui sendEvent memory leaks #365

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Fix gui sendEvent memory leaks #365

merged 1 commit into from
Sep 23, 2020

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 23, 2020

The leaks mainly come from sendEvent calls. According to Qt's API documentation, the events are not deleted and so should be created on the stack

With the animation memory fix in gazebosim/gz-common#98, I see fixed memory usage over time when running the actors_population.sdf world.

ign-gazebo-gui-mem-usage

Signed-off-by: Ian Chen [email protected]

Signed-off-by: Ian Chen <[email protected]>
@iche033 iche033 requested a review from JShep1 September 23, 2020 05:40
@iche033 iche033 requested a review from chapulina as a code owner September 23, 2020 05:40
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Sep 23, 2020
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Nice! Something to keep in mind as we create more events.

@chapulina chapulina merged commit 1d94688 into ign-gazebo3 Sep 23, 2020
@chapulina chapulina deleted the event_mem_leak branch September 23, 2020 17:01
doisyg pushed a commit to wyca-robotics/ign-gazebo that referenced this pull request Dec 13, 2020
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Guillaume Doisy <[email protected]>
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