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.
reproduced since NetBeans Platform Dev (Build 200905220201) Are all documents GCed? TextDocument: private static org.netbeans.modules.debugger.jpda.ui.CodeEvaluator org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.defaultInstance-> org.netbeans.modules.debugger.jpda.ui.CodeEvaluator@13ac3a5-codePane-> javax.swing.JEditorPane@95ea35-model-> org.netbeans.modules.editor.NbEditorDocument@406986-documentProperties-> org.netbeans.modules.editor.NbEditorDocument$2@3c7627-table-> [Ljava.util.Hashtable$Entry;@17d8259-[26]-> java.util.Hashtable$Entry@87f84f-value-> org.netbeans.api.lexer.InputAttributes@1ff1a51-lp2attrs-> java.util.HashMap@42771f-table-> [Ljava.util.HashMap$Entry;@757791-[13]-> java.util.HashMap$Entry@1fda0d4-value-> org.netbeans.api.lexer.InputAttributes$LPAttrs@f86099-globals-> java.util.HashMap@1eca43c-table-> [Ljava.util.HashMap$Entry;@195d3b4-[4]-> java.util.HashMap$Entry@1414eee-value-> org.netbeans.modules.editor.NbEditorDocument@ee09f8
needs to be evaluated for NB 6.7
I guess this is P2 only because it breaks tests. There's just one Evaluator's document held on a static reference. Can be solved by a WeakReference. The memory consumption is small and it does not grow. The impact on memory management is therefore small.
little bit different in trunk Are all documents GCed? TextDocument: private static org.netbeans.modules.debugger.ui.actions.AddBreakpointAction$AddBreakpointDialogManager org.netbeans.modules.debugger.ui.actions.AddBreakpointAction.abdm-> org.netbeans.modules.debugger.ui.actions.AddBreakpointAction$AddBreakpointDialogManager@a24ac8-controller-> org.netbeans.modules.debugger.jpda.ui.breakpoints.ClassBreakpointPanel@18d382-conditionsPanel-> org.netbeans.modules.debugger.jpda.ui.breakpoints.ConditionsPanel@72bd07-tfCondition-> javax.swing.JEditorPane@18aa724-model-> org.netbeans.modules.editor.NbEditorDocument@13d55dd-documentProperties-> org.netbeans.modules.editor.NbEditorDocument$2@52485c-table-> [Ljava.util.Hashtable$Entry;@67c998-[13]-> java.util.Hashtable$Entry@194442c-value-> org.netbeans.api.lexer.InputAttributes@14ee0ae-lp2attrs-> java.util.HashMap@1929e5b-table-> [Ljava.util.HashMap$Entry;@13481c-[1]-> java.util.HashMap$Entry@3cf429-value-> org.netbeans.api.lexer.InputAttributes$LPAttrs@5c2346-globals-> java.util.HashMap@190f8ce-table-> [Ljava.util.HashMap$Entry;@1456df4-[4]-> java.util.HashMap$Entry@ff3e31-value-> org.netbeans.modules.editor.NbEditorDocument@fcc720
This code is there for ages (5 years). And it was found only because we changed some JTextFields to JEditorPanes. Nothing changed in the logic and I do not see any reason for fixing this now into 6.7.
Does not ahve to be fixed in 6.7, just evaluated. Does not seem to be leaking of user's documents (i.e. editor documents of sources). Some debugger UI (breakpoint dialog, evaluator) could be released when not used...
*** Issue 166975 has been marked as a duplicate of this issue. ***
Fixed. http://hg.netbeans.org/main/rev/5acffbc81429
Integrated into 'main-golden', will be available in build *200906191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5acffbc81429 User: Daniel Prusa <dprusa@netbeans.org> Log: #166020: Not all documents GCed
verified