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 170863 - All debugging sessions not correctly closed
Summary: All debugging sessions not correctly closed
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 12:24 UTC by Vojtech Sigler
Modified: 2009-08-27 12:47 UTC (History)
0 users

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 Vojtech Sigler 2009-08-25 12:24:54 UTC
private static org.netbeans.api.debugger.DebuggerManager org.netbeans.api.debugger.DebuggerManager.debuggerManager->
org.netbeans.api.debugger.DebuggerManager@89eb51-lookup->
org.netbeans.api.debugger.Lookup$MetaInf@7782d8-instanceCache->
java.util.HashMap@dd6b3f-table->
[Ljava.util.HashMap$Entry;@c42da1-[64]->
java.util.HashMap$Entry@1dbf910-value->
org.netbeans.modules.debugger.ui.models.SessionsTreeModel@aa419e-listeners->
java.util.Vector@5adf1a-elementData->
[Ljava.lang.Object;@1f9498-[0]->
org.netbeans.modules.viewmodel.TreeModelRoot@17ded07-treeFeatures->
org.netbeans.modules.viewmodel.TreeModelRoot$DefaultTreeFeatures@1f1172d-outline->
org.netbeans.modules.viewmodel.OutlineTable$MyTreeTable@51c2dd-parent->
org.netbeans.modules.viewmodel.OutlineTable@133ff5a-parent->
Product Version: NetBeans IDE Dev (Build 200908250351)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.28-15-generic running on i386; UTF-8; en_US (nb)

I'm fixing and updating Debugger qa-functional tests and I'm getting the following result from CloseSessionsTest.

The test starts a debugging session, closes it, calls GC and checks if there are any instances of JPDADebugger left.

Here is the test output:

javax.swing.JPanel@1266cb0-parent->
org.netbeans.modules.debugger.ui.views.View@15db116-activatedNodes->
[Lorg.openide.nodes.Node;@14e85e9-[0]->
org.netbeans.modules.viewmodel.TreeModelNode@12ad834-object->
org.netbeans.api.debugger.Session@7c2e74-currentDebuggerEngine->
org.netbeans.api.debugger.DebuggerEngine@57cf27-actionsManager->
org.netbeans.api.debugger.ActionsManager@d2963b-aps->
org.netbeans.api.debugger.Lookup$Compound$CompoundLookupList@e3dd97-elementData->
[Ljava.lang.Object;@45b18-[0]->
org.netbeans.modules.debugger.jpda.projects.FixActionProvider@e1da1-debugger->
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl@37ced)

It is either a bug or the test is no longer correct, but I'm unable to tell.
Comment 1 Vojtech Sigler 2009-08-25 12:32:55 UTC
Pardon me, a copy+paste accident at the beginning of the first comment ;)

To be more clear, NB build is

Product Version: NetBeans IDE Dev (Build 200908250351)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Linux version 2.6.28-15-generic running on i386; UTF-8; en_US (nb)
Comment 2 Martin Entlicher 2009-08-25 15:57:27 UTC
org.netbeans.modules.debugger.ui.views.View@15db116-activatedNodes are activatedNodes of TopComponent.
I've verified that activatedNodes contain the originally selected node even after all rows are removed from the Outline.
Comment 3 Martin Entlicher 2009-08-26 16:00:02 UTC
The problem was also in Outline - selection was not cleared when the table we closed.
Clearing the selection releases the selected nodes.
Fixed in changeset:   142828:4b6b9ccd18a5
http://hg.netbeans.org/main/rev/4b6b9ccd18a5
Comment 4 Quality Engineering 2009-08-27 06:00:41 UTC
Integrated into 'main-golden', will be available in build *200908270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4b6b9ccd18a5
User: mentlicher@netbeans.org
Log: #170863 - Clear selection when the table is being closed.
Comment 5 Vojtech Sigler 2009-08-27 12:47:57 UTC
Verified in trunk build 200908270201