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.

Bug 166975 - Memory leak due to JPDA CodeEvaluator
Summary: Memory leak due to JPDA CodeEvaluator
Status: CLOSED DUPLICATE of bug 166020
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: PERFORMANCE, TEST
Depends on:
Blocks:
 
Reported: 2009-06-12 10:31 UTC by Jaroslav Tulach
Modified: 2010-05-06 08:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-06-12 10:31:33 UTC
I've just executed:
$ cd java.kit
$ ant test-single -Dtest.includes=**/Memory* -Dtest.type=qa-functional
and it yields an error due to following memory leak:
private static org.netbeans.modules.debugger.jpda.ui.CodeEvaluator 
org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.defaultInstance->
org.netbeans.modules.debugger.jpda.ui.CodeEvaluator@1ed3e5f-codePane->
javax.swing.JEditorPane@18381af-model->
org.netbeans.modules.editor.NbEditorDocument@1e1346e-documentProperties->
org.netbeans.modules.editor.NbEditorDocument$2@c1239-table->
[Ljava.util.Hashtable$Entry;@54579c-[36]->
java.util.Hashtable$Entry@1db314e-value->
org.netbeans.api.lexer.InputAttributes@71f717-lp2attrs->
java.util.HashMap@1b40baa-table->
[Ljava.util.HashMap$Entry;@12bf622-[3]->
java.util.HashMap$Entry@bc2dc8-value->
org.netbeans.api.lexer.InputAttributes$LPAttrs@1f9a0a0-globals->
java.util.HashMap@14be2ea-table->
[Ljava.util.HashMap$Entry;@110d29d-[4]->
java.util.HashMap$Entry@18b35f6-value->
org.netbeans.modules.editor.NbEditorDocument@75c229)

This shall break UI commit validation, unless I am mistaken.
Comment 1 Jaroslav Tulach 2009-06-12 10:33:43 UTC
Another yet similar path from debugger.

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@16c9363-controller->
  org.netbeans.modules.debugger.jpda.ui.breakpoints.ClassBreakpointPanel@b7672f-conditionsPanel->
  org.netbeans.modules.debugger.jpda.ui.breakpoints.ConditionsPanel@1f0cdf0-tfCondition->
  javax.swing.JEditorPane@2152ac-model->
  org.netbeans.modules.editor.NbEditorDocument@11d84e6-documentProperties->
  org.netbeans.modules.editor.NbEditorDocument$2@48c205-table->
  [Ljava.util.Hashtable$Entry;@3698a7-[46]->
  java.util.Hashtable$Entry@a5dc80-next->
  java.util.Hashtable$Entry@f57199-value->
  org.netbeans.api.lexer.InputAttributes@1eb7ee7-lp2attrs->
  java.util.HashMap@4e00a1-table->
  [Ljava.util.HashMap$Entry;@840d3c-[4]->
  java.util.HashMap$Entry@1700126-value->
  org.netbeans.api.lexer.InputAttributes$LPAttrs@1989f4-globals->
  java.util.HashMap@54cf76-table->
  [Ljava.util.HashMap$Entry;@199a238-[4]->
  java.util.HashMap$Entry@728170-value->
  org.netbeans.modules.editor.NbEditorDocument@1fe48de)
Comment 2 Martin Entlicher 2009-06-12 10:37:41 UTC
Ivan already submitted issue #166020. It breaks tests, but otherwise has a little impact. We'll look at it...

*** This issue has been marked as a duplicate of 166020 ***
Comment 3 Jaroslav Tulach 2009-06-12 13:18:11 UTC
I see. Sorry for duplicate. 

Re. tests. I'd like to make the MemoryValidationTest part of commit validation again, to do that I need a fix for the 
bug 166020. The sooner the better, but not important for 6.7.
Comment 4 Marian Mirilovic 2010-05-06 08:02:20 UTC
verified duplicate