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 63107

Summary: Hang on shutdown
Product: java Reporter: _ tboudreau <tboudreau>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jiriprox, mkubec
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description _ tboudreau 2005-08-25 21:14:04 UTC
Been seeing this for a long while, just reported on nbusers as well:

 - Start NB on a fresh userdir
 - While classpath scanning is still in progress, close the main window
 - The "Writing classpath information to persistent storage" dialog appears
 - The progress bar remains at about 15%, the dialog never disappears, the process must be killed
Comment 1 Jan Becicka 2005-08-26 07:04:22 UTC
Please attach full thread dump. I cannot reproduce it. It is true, that the IDE
hangs for a while at 15%, but then correctly shuts down.
Comment 2 _ tboudreau 2005-08-26 07:21:19 UTC
I left out a step after start - create a new J2SE project.

When you say "a while" do you mean > 10 minutes?

Maybe try it on a mac - I filed this issue from there - but I think I've seen this problem on my pc too.

I took a thread dump earlier - nothing stood out.  I'll do another.
Comment 3 _ tboudreau 2005-08-26 07:26:18 UTC
Created attachment 24252 [details]
thread dump
Comment 4 _ tboudreau 2005-08-26 07:34:02 UTC
100% reproducible.
Comment 5 Jan Becicka 2005-08-26 07:37:49 UTC
> When you say "a while" do you mean > 10 minutes?
No! Few seconds - less than 5.

Still not reproducible on my windows machine. We will try it on Mac.
Comment 6 Jan Becicka 2005-08-26 07:40:11 UTC
Milane, Jirko, can you reproduce it? Thanks
Comment 7 Martin Matula 2005-08-26 09:00:51 UTC
The hang is caused by the fact that the shutdown is waiting for the scanning to
be finished. So, if you have a lot of projects open in the IDE, the scanning
takes too long and you have an impression that the IDE hangs.
This issue was already filed and I fixed it yesterday, so the scanning is now
properly cancelled when the IDE tries to shutdown.

*** This issue has been marked as a duplicate of 59706 ***
Comment 8 _ tboudreau 2005-08-26 19:33:04 UTC
Lots of projects?  I have one empty J2SE project.  What it's scanning is the JDK - but I've left it running 
for quite a while in this state and it really never did finish.

I'll see if it works on a fresh build.
Comment 9 Quality Engineering 2007-09-20 09:54:50 UTC
Reorganization of java component