Community
Participate
Working Groups
I'm migrating our plugins suite which made UI contributions (menu/view/toolbar) from Juno to Luna, and I'm facing a possible memory leak when opening/closing the same view several times. Each time the Heap grow about 10Mo. Note that this may be a duplicate of bug 436225. Using MAT I can observe that the e4 class ToolBarImpl keeps a reference on my view instance, which cannot be garbage collected.. MAT does not report this when playing the same use case on Juno. Screeshots coming. I've tried some cleanup in the dispose() method of my view but without success: getSite().setSelectionProvider(null); getViewSite().getActionBars().getToolBarManager().removeAll(); What are we suppose to do to solve that case? This is a bit blocking with our Unit suites (got some OutOfMemory exceptions) as views are opened/closed a huge amount of time.
Created attachment 250225 [details] MAT screenshot on Luna With MAT screenshot on Luna (4.4.1)
Created attachment 250226 [details] MAT screenshot on Juno
Could you try Eclipse 4.5 M5? IIRC recently there were some fixes related to memory leaks.
Thanks for your answer. Yes, I'll try it and keep you informed.
Created attachment 250460 [details] MAT screenshot on Eclipse 4.5 M5 Got exactly the same behavior with Eclipse 4.5 M5 downloaded here: http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M5-201501291830 I just opened/closed 3 times the same view to see increase the heap +30Mo.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.