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 224221 - Slowness on opening File Chooser from Debug Core File dialog
Summary: Slowness on opening File Chooser from Debug Core File dialog
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
: 222441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-26 07:50 UTC by Alexander Simon
Modified: 2013-05-17 09:51 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 Alexander Simon 2012-12-26 07:50:58 UTC
Steps to reproduce:
- create C/C++ application
- Debug->Debug Core File
- type in field "Core File" "/net/qq"
- press Browse button
Expected behavior:
- File chooser dialog is appeared in one second.
Actual behavior:
- Dialog is appeared after 10-30 seconds. User can click browse several times and dialog will be shown several times.
Comment 1 Egor Ushakov 2013-04-30 14:17:48 UTC
we use FileChooserBuilder and it calls file.exists on chooser create, it causes huge slowness before dialog even appears
Comment 2 Maria Tishkova 2013-05-14 13:24:55 UTC
From what I found the problem is not only in the FileChooser. 
The first problem I see is in validation of values in DebugCorePanel
Comment 3 Maria Tishkova 2013-05-14 15:51:13 UTC
3 fixes:

1. DebugCorePanel: validation worker introduced which will validate all values in one separate request processor and will be re-scheduled and canceled when needed

see http://hg.netbeans.org/cnd-main/rev/60aa696596c6

2. dlight.remote: FileChooserUI copied from DirectoryChooserUI (no way to re-use) to get files list in separate request processor and update UI when prepared

see http://hg.netbeans.org/cnd-main/rev/a10ba91b7bfe

3. dlight.api: RemoteFileUtil createFileChooser and createProjectChooser should both user dlight.remote.FileChooserBuilder

see http://hg.netbeans.org/cnd-main/rev/d6052ae7f57f
Comment 4 Maria Tishkova 2013-05-15 11:50:13 UTC
additional fix: show Loading... in tree
http://hg.netbeans.org/cnd-main/rev/b9d161c51abe
Comment 5 Maria Tishkova 2013-05-16 13:57:48 UTC
*** Bug 222441 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2013-05-17 09:51:28 UTC
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/60aa696596c6
User: Maria Tishkova <mromashova@netbeans.org>
Log: fix for bz#224221 - FileChooser calls file.exists in constructor
first part: introduced  validation worker in DebugCorePanel