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 193245 - Netbeans do not terminate.
Summary: Netbeans do not terminate.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 14:18 UTC by Chiana
Modified: 2011-01-13 00:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump when IDE is not wamozing (10.77 KB, text/plain)
2010-12-10 16:50 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2010-12-10 14:18:18 UTC
[ BUILD # : 20101210 ]
[ JDK VERSION : 1.6.22 ]

When you exit NB it will not terminate, atleast not within reasonable time.
I have noted that NB do not terminate until after about an hour or when
launching a new instance of netbeans, I have verified this beahaviour on both
build 1208 and 1210, atleast on my system that is!
I've tried making a thread dump but that did not succeed (or is there a file to
upload somewhere?).
Comment 1 Chiana 2010-12-10 14:23:34 UTC
Must also make note of:

The NB display does disappear but the process itself do not, you can see that in the taskmanager (ctl-alt-del) of windows.
Also the console window remains until it actually terminates if started with "--console new".
Unfortunatley the thread-dump is too long to fit within a dos-window and it is not (fwik) to redirect the output to a file...
Comment 2 Jesse Glick 2010-12-10 16:03:06 UTC
There was a bug in masterfs like this recently, but it should also have been fixed by your build.

Try using jps to get a thread dump. I think you can redirect its output to a file, which would be better anyway (should not rewrap lines at terminal window width which is an annoyance for readers).
Comment 3 Chiana 2010-12-10 16:08:10 UTC
jps??? Never heard of... (or forgotten about...)
But with a pointer I can try it...
Comment 4 Jesse Glick 2010-12-10 16:27:00 UTC
jps is part of the JDK.

http://download.oracle.com/javase/6/docs/technotes/tools/share/jps.html

This can be used to identify the PID of the NetBeans process. (Try: jps -lm) Then you can use jstack to get the thread dump:

http://download.oracle.com/javase/6/docs/technotes/tools/share/jstack.html
Comment 5 Chiana 2010-12-10 16:50:30 UTC
Created attachment 103943 [details]
Thread dump when IDE is not wamozing

Hmm... then I don't need jps, you can get the pid from the taskmanager as easy... Well, JStack is in the JDK too and is a runnable program, so have a nice evening (or morning (or whatever depending on where you are)).
Comment 6 Jesse Glick 2010-12-10 17:05:36 UTC
As I suspected, a bug in masterfs which I thought was already fixed in dev builds.
Comment 7 Jaroslav Tulach 2011-01-04 09:03:38 UTC
ergonomics#9a6ce321694b
Comment 8 Quality Engineering 2011-01-07 07:58:22 UTC
Integrated into 'main-golden', will be available in build *201101070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9a6ce321694b
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #193245: Don't starvate while stopping the fs change notifier
Comment 9 Chiana 2011-01-08 14:35:10 UTC
Verified in build #6439 on 110108#