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 105168 - IDE shutdown delayed by source scanning
Summary: IDE shutdown delayed by source scanning
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2007-05-30 17:11 UTC by Jesse Glick
Modified: 2007-08-22 08:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Two thread dumps (73.49 KB, text/plain)
2007-05-30 17:12 UTC, Jesse Glick
Details
More thread dumps (97.17 KB, text/plain)
2007-05-30 17:44 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-05-30 17:11:43 UTC
070524. I had opened a file from serverplugins/sun/appsrv81 and that project.
Source scanning began. When scanning websvc/jaxwsmodel/src, it just went to 100%
CPU (on one of two CPUs) and stayed there, with no apparent progress. I took a
thread dump. Then I clicked the close button on the IDE main window; at this
point the GUI froze. Second thread dump demonstrates why - JBrowseModule.closing
is waiting for scanning to complete. (It should not; core/execution will anyway
offer to wait for or kill outstanding processes, in this case from the Progress
API.)
Comment 1 Jesse Glick 2007-05-30 17:12:48 UTC
Created attachment 42975 [details]
Two thread dumps
Comment 2 Jesse Glick 2007-05-30 17:36:52 UTC
After killing and reopening the IDE, hangs again on websvc/jaxwsmodel/src. Don't
know what is wrong with this project - it's not particularly big or anything.
Comment 3 Jesse Glick 2007-05-30 17:42:53 UTC
After killing the IDE again, clearing my userdir's cache, and reopening the IDE,
still hangs on the same source root. This time I close the main window and I get
a proper Exit dialog prompting me to wait for the scanning task. I choose to
Exit immediately. Again IDE freezes.
Comment 4 Jesse Glick 2007-05-30 17:44:12 UTC
Created attachment 42977 [details]
More thread dumps
Comment 5 Jesse Glick 2007-05-30 17:44:52 UTC
Adjusting summary. Perhaps there are two independent bugs here, but I'm not sure.
Comment 6 Jan Lahoda 2007-05-30 19:49:10 UTC
Two issues here, indeed:
-never ending scanning of websvc/jaxwsmodel/src filed (and fixed) as issue
#104831. Please use newer build.
-IDE shutdown delayed (assuming the scan finishes) by scanning - not nice, but
not P2, IMO.
Comment 7 Tomas Zezula 2007-05-31 07:38:27 UTC
In the past the RepositoryUpdater didn't react on events cuased by IDE close,
unfortunately now these events are fired before ModuleInstall.isClosing() method
is called. The RU does not know that the IDE is being closed.
Comment 8 Tomas Zezula 2007-06-22 07:56:02 UTC
I've talked about it with Radim. I need either some notification about IDE exit before the projects are closed or to
delay closing of projects after all ModuleInstall.isClosing() are done. Maybe the projects shoudn't be closed when the
IDE is exiting, no OpenProjectHook called, but it may be dangerous.
Comment 9 Tomas Zezula 2007-08-22 08:33:13 UTC
Fixed in RepositoryUpdater rev 1.64