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 99747 - Long hang after editing project properties
Summary: Long hang after editing project properties
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-04-03 06:07 UTC by _ tboudreau
Modified: 2007-07-12 12:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (26.49 KB, text/plain)
2007-04-03 06:07 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-04-03 06:07:04 UTC
I created a very simple project, edited the main class.  Then I opened project
properties and modified the run arguments to be
-w c:\foo

The OK button stayed depressed with the AWT thread hung for about 30 seconds.  I
changed the settings again, and the same thing happened - seems to be 100%
reproducible.

Thread dump attached.
Comment 1 _ tboudreau 2007-04-03 06:07:26 UTC
Created attachment 40292 [details]
thread dump
Comment 2 _ tboudreau 2007-04-03 06:08:06 UTC
P2 given that it's a very common operation and the hang makes a very bad impression.
Comment 3 Tomas Zezula 2007-06-22 08:47:53 UTC
It does xslt transformation, event firing. Maybe there should be a progress
Comment 4 Petr Nejedly 2007-06-26 14:19:28 UTC
> Maybe there should be a progress
Not only that. The code needs to be rescheduled, it blocks AWT!
Comment 5 Tomas Zezula 2007-07-12 12:22:34 UTC
Caused by excludes. The ClassPath was changed to call ClassPathImplementation.getResources() in the SPIListener  (called
synchronously from the AWT). The getResources() may be expensive for GlobalSourcePath - it calls SFBQ which is slow. The
only thing which may help is to fire changes from GlobalSourcePath asynchronously - probably doesn't matter.

Checking in org/netbeans/modules/java/source/classpath/GlobalSourcePath.java;
/cvs/java/source/src/org/netbeans/modules/java/source/classpath/GlobalSourcePath.java,v  <--  GlobalSourcePath.java
new revision: 1.10; previous revision: 1.9
done