This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
PopupManager inserts JDCPopupPanel to an EditorWindow's RootPane and never removes it. But the RootPane is shared between the editors, so if I leave at least one editor open, all previously used editors will be kept in memory referenced from the RootPane's JLayeredPane: JLayeredPane.component -> Component[] -> 0: JDCPopupPanel -> NbEditorUI -> ... 1: JDCPopupPanel -> NbEditorUI -> ... 2: JDCPopupPanel -> NbEditorUI -> ... 3: JDCPopupPanel -> NbEditorUI -> ... 4: JDCPopupPanel -> NbEditorUI -> ... ...
BTW: When combined with issue #35319 leak, the editors remain in memory even after closing _all_ of them (because one of them is referenced through image Observer.
fixed in [maintrunk] I have fix the problem of wrong removing from root pane. JDCPopupPanel and tooltips removes itself from rootpane if they are hidden. Anyway, NbEditorUI is not finalized for all closed editor windows. It means that it is referenced from some other object. Petr, this would need further investigation. I am closing this issue as the problem of uninstallation from root pane is fixed. Please open another for further memory leak. Thanks, Mato /cvs/editor/libsrc/org/netbeans/editor/PopupManager.java,v <-- PopupManager.java new revision: 1.4; previous revision: 1.3 /cvs/editor/libsrc/org/netbeans/editor/ext/JDCPopupPanel.java,v <-- JDCPopupPanel.java new revision: 1.19; previous revision: 1.18 /cvs/editor/libsrc/org/netbeans/editor/ext/ToolTipSupport.java,v <-- ToolTipSupport.java new revision: 1.13; previous revision: 1.12
OK, I've fetched the fresh bits and I'll try it again.
OK, It seems that the "massive" part is gone. I've tried it and from 23 opened editors on which all I've carefully used completion, 19 were properly GCed and only 4 remained in memory. I'll try to investigate what is holding them and file a separate issue.
Fixed also in Nevada Patch 1 and in Arrow.