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 190185 - Deadlock after start-up
Summary: Deadlock after start-up
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 192802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-06 12:51 UTC by Jan Lahoda
Modified: 2010-12-29 16:02 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (43.40 KB, text/plain)
2010-09-06 12:51 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-09-06 12:51:00 UTC
Created attachment 101892 [details]
Thread dump.

Please see attached thread dump.
Comment 1 David Konecny 2010-10-07 00:58:00 UTC
Does keyring.impl/src/org/netbeans/modules/keyring/fallback/MasterPasswordEncryption.java really have to use a password from keyring? Avoiding that would avoid this deadlock.

Another culprit is "org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:738)" which is started while modal dialog is shown? Jarda is that something what should be allowed to happen or is it a mistake to be fixed as well?
Comment 2 Jaroslav Tulach 2010-10-07 07:21:52 UTC
Re. AWTTask: It does what it does, e.g. it needs to run in AWT thread and thus it uses EventQueue.invokeLater. Too bad, there is a modal dialog which holds a lock(?). In general it is not safe to open modal dialogs while holding locks.

The stacktrace then continues to ToolsAction and to form.InstallToPaletteAction. If necessary, we could make them potentially more lazy.
Comment 3 Vince Kraemer 2010-10-07 18:00:37 UTC
corrected the component info
Comment 4 Vince Kraemer 2010-12-21 20:06:11 UTC
*** Bug 192802 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2010-12-29 07:05:45 UTC
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/46bb13a8cc47
User: vince kraemer <vkraemer@netbeans.org>
Log: #190185 : do not get the password right away to prevent deadlocks
Comment 6 Vince Kraemer 2010-12-29 16:02:24 UTC
in main