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 88753 - EQ blocked for long shutdown
Summary: EQ blocked for long shutdown
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Simonek
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks:
 
Reported: 2006-11-06 23:37 UTC by Jesse Glick
Modified: 2008-12-22 14: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 Jesse Glick 2006-11-06 23:37:37 UTC
Dev build. I noticed that if Java scanning is running as a background process,
and you click the close button on the main window, the GUI freezes until it
finishes. This is because LifecycleManager.exit (from
MainWindow.<...>.windowClosing) is a blocking call (has to ask modules whether
they accept an exit).

Just putting this call into a new RP thread would be a bit unsafe, I guess,
since you do not want the user arbitrarily interacting with the GUI while the
IDE is shutting down. Perhaps a modal dialog "Shutting down..." could be opened?
Need to check whether that correctly interacts with e.g. "Save Modified Files"
dialogs.
Comment 1 Lukas Hasik 2008-11-20 08:14:16 UTC
is it still true? It seems that the IDE offers cancellation of the scanning in "Exit" dialog. Closing, feel free to
reopen if I'm wrong
Comment 2 Jesse Glick 2008-11-20 20:00:43 UTC
Right, I think this was probably fixed with the usage of the Progress API from the Exit dialog.