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 130379

Summary: ide got deadlocked when invoked Customize... on toolbars
Product: db Reporter: Tomas Danek <musilt2>
Component: CodeAssignee: David Vancouvering <davidvc>
Status: VERIFIED FIXED    
Severity: blocker CC: jtulach, mslama
Priority: P2 Keywords: THREAD
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 130676    
Bug Blocks:    
Attachments: threaddump

Description Tomas Danek 2008-03-18 11:33:45 UTC
Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
---------
- started with fresh UD
- invoked on Toolbars popup | Customize...
- Dialog window opened, but was still showing "PLease wait..", content did not load, IDE got frozen.

Thread dump attached - feel free to reassign. Not reproducible again.
Comment 1 Tomas Danek 2008-03-18 11:34:51 UTC
Created attachment 58557 [details]
threaddump
Comment 2 mslama 2008-03-18 11:54:42 UTC
Folder Recognizer thread is blocked by db.explorer. 
Comment 3 Jaroslav Tulach 2008-03-18 13:56:20 UTC
Right, clearly a deadlock caused by lock 0x7396b940:
        at org.netbeans.modules.db.explorer.infos.RootNodeInfo.getRegisteredNodes(RootNodeInfo.java:123)
        - locked <0x7396b940> (a org.netbeans.modules.db.explorer.infos.RootNodeInfo)
        at org.netbeans.modules.db.explorer.infos.RootNodeInfo.initChildren(RootNodeInfo.java:85)
        at org.netbeans.modules.db.explorer.infos.DatabaseNodeInfo.getChildren(DatabaseNodeInfo.java:707)
        - locked <0x7396b940> (a org.netbeans.modules.db.explorer.infos.RootNodeInfo)
        at org.netbeans.modules.db.explorer.infos.RootNodeInfo.addConnectionNoConnect(RootNodeInfo.java:192)
and
"Folder recognizer" daemon prio=10 tid=0xb2d81c00 nid=0x2402 waiting for monitor entry [0xb0cfa000..0xb0cfb140]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at org.netbeans.modules.db.explorer.infos.DatabaseNodeInfo.getChildren(DatabaseNodeInfo.java:699)
        - waiting to lock <0x7396b940> (a org.netbeans.modules.db.explorer.infos.RootNodeInfo)
        at org.netbeans.modules.db.explorer.infos.RootNodeInfo.addConnectionNoConnect(RootNodeInfo.java:192)
        at org.netbeans.api.db.explorer.ConnectionManager.addConnection(ConnectionManager.java:139)

Comment 4 David Vancouvering 2008-03-18 14:44:16 UTC
Yet another result of the horrific implementation of DatabaseNodeChildren in the DB Explorer.  It's time to pull off the
gloves and get this cleaned up...
Comment 5 David Vancouvering 2008-03-22 06:46:37 UTC
Fixing 130676 should have fixed this.  I can't reproduce.  Can you please verify if you can still reproduce?
Comment 6 Tomas Danek 2008-07-30 15:04:10 UTC
tried to reproduce in 20080729 without success -> verified.