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 - ide got deadlocked when invoked Customize... on toolbars
Summary: ide got deadlocked when invoked Customize... on toolbars
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords: THREAD
Depends on: 130676
Blocks:
  Show dependency tree
 
Reported: 2008-03-18 11:33 UTC by Tomas Danek
Modified: 2008-07-30 15:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddump (22.71 KB, text/plain)
2008-03-18 11:34 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.