-
Notifications
You must be signed in to change notification settings - Fork 44
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
Memory leak in ImageDisplay with non-RGB data #341
Comments
could be fixed by #287 |
Probably not everything is fixed by #287 - 4.6.0 is also affected... |
6.2.0 is not affected |
5.3.0 is also good, so this is only a problem in Dome. |
hmm I see that ign-gui 4.6.0 was released with the mem leak fix. If it's still leaking, the bug could be somewhere else. https://github.com/ignitionrobotics/ign-gui/pull/340/files#diff-c275fec9c453c2a42515bc5ab47e30fa4130ff1426aef2f6e000a9a34e122cb8R19 |
As said earlier, ImageDisplay started leaking with non-RGB images in 4.4.0 (the big refactoring to start using @darksylinc any idea why is it still leaking even using 4.6.0 with #212 merged? |
|
Yep, ign-gui is definitely using common::Image and look at that! It's in ImageDisplay! That's most likely the cause. |
#212 is definitely merged in gui 4.6.0. However, the leak-fixing ign-common PR you mention was against ign-common4, while Dome still uses ign-common3. I don't see anything in the changelog that would suggest the PR was backported. Good news is ign-common3 is still alive and not EOLed, so if the bug is really there, fixing it could even fix Dome =) I'll give it a try to backport the fix. |
@darksylinc Thanks a lot for your help. I backported your ign-common fix ( gazebosim/gz-common#287 ) and now memory consumption is stable even in Dome! |
Just catching up with this, can this issue be closed? |
Yes! |
Environment
Description
Steps to reproduce
gui_leak.sdf
ign gazebo -v4 gui_leak.sdf -r -s
ign gui -v4 -s ImageDisplay
htop
Analysis
This happens in GUI 4.4.0, but not in 4.3.0. My guess is that #212 is the problematic commit, but I haven't found a way to use
git bisect
with Ignition (it jumps between gui 3 and gui 4 versions, which is not really easy to test).This happens for depth and thermal cameras. It does not happen for RGB cameras.
The text was updated successfully, but these errors were encountered: