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 251382 - Deadlock when closing Options dialog.
Summary: Deadlock when closing Options dialog.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-23 16:42 UTC by Martin Entlicher
Modified: 2015-07-27 11:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The deadlock (35.71 KB, text/plain)
2015-03-23 16:42 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2015-03-23 16:42:13 UTC
Created attachment 152796 [details]
The deadlock

NetBeans IDE Dev (Build 20150323-d39e4546170c) (#d39e4546170c)
AWT blocks when closing Options dialog.
Probably FileUtil.getConfigFile() should not be called in AWT...
Comment 1 Theofanis Oikonomou 2015-07-09 13:32:43 UTC
Changeset: cb38898aff5b
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-07-09 16:31
Message:
Comment 2 Theofanis Oikonomou 2015-07-09 13:36:08 UTC
I moved the FileUtil.getConfigFile() call off EDT. The UI blocks though if the operation takes more than usual and the user is then given the chance to cancel. As this situation is not so common I would expect that in the majority of cases the FileUtil.getConfigFile() call would finish really fast. Thanks Martin for catching this.
Comment 3 Quality Engineering 2015-07-17 01:19:22 UTC
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cb38898aff5b
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #251382 - Deadlock when closing Options dialog.
Comment 4 Vladimir Riha 2015-07-27 11:42:55 UTC
Already in 1st Beta build (integrated before branching)