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 192271 - DirectoryChooserUI queries File System from EDT
Summary: DirectoryChooserUI queries File System from EDT
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on: 192347
Blocks:
  Show dependency tree
 
Reported: 2010-11-22 12:29 UTC by Vladimir Voskresensky
Modified: 2010-11-23 16:00 UTC (History)
1 user (show)

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 Vladimir Voskresensky 2010-11-22 12:29:36 UTC
there is CR6992581 in bugster against Studio IDE from custumer:
----------
On my system, it's taking 3.5 minutes before the file chooser comes up.
- I supplied --userdir to a local disk.  (The userdir.java did not previously
exist).
- The project I want to open is on the local disk.
- The CWD is on the local disk.
Why does the file chooser default to my home directory?  Why does it take so
long to come up?
-------------
I think it does not matter if I have any "broken" or "slow" links in my
home directory. The point is that the IDE should NEVER look inside my
home directory unless I explicitely told it to look there. There is 
only one subdirectory inside my home that the IDE can use - it is
${HOME}/.sunstudio
Also, the IDE should NEVER use AWT thread to perform any I/O operations.
------------
Comment 1 Vladimir Voskresensky 2010-11-22 12:31:57 UTC
100% reproducible testcase:
- in home dir create broken link to NFS system which is not reachable now 
- try to open Open Project dialog and it takes minutes to populate with content.
(or just put Thread.sleep(2000) in updateCompletions method)
Comment 2 Ondrej Vrabec 2010-11-22 13:12:34 UTC
1) why does the project chooser open in your home dir? Looking at
http://hg.netbeans.org/core-main/file/0f6ce06434f3/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java#l485
and
http://hg.netbeans.org/core-main/file/0f6ce06434f3/projectui/src/org/netbeans/modules/project/ui/OpenProjectListSettings.java#l328
i guess you should complain in projects

2) calculating file completion in AWT - i'll try to fix that
Comment 3 Ondrej Vrabec 2010-11-22 15:11:42 UTC
fix: #1555a6df1616 - http://hg.netbeans.org/core-main/rev/1555a6df1616
Comment 4 Ondrej Vrabec 2010-11-22 15:12:37 UTC
i hope the fix deals with both problems, let me know if it helps
Comment 5 Quality Engineering 2010-11-23 06:07:26 UTC
Integrated into 'main-golden', will be available in build *201011230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1555a6df1616
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #192271 - DirecotryChooserUI queries File System from EDT
Comment 6 Vladimir Voskresensky 2010-11-23 09:35:36 UTC
Thanks!
verified!