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 164702 - [67cat] Cannot exit IDE while scanning projects
Summary: [67cat] Cannot exit IDE while scanning projects
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
: 165430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-07 16:01 UTC by denbo
Modified: 2009-05-19 09:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log for IDE exit while scanning projects (44.01 KB, application/octet-stream)
2009-05-11 11:36 UTC, denbo
Details
threaddump taken while IDE was frozen (64.88 KB, text/plain)
2009-05-12 16:30 UTC, denbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description denbo 2009-05-07 16:01:30 UTC
[ BUILD # : 200905070201 ]
[ JDK VERSION : 1.6.* ]

Sometimes, the IDE cannot be quit while it is scanning projects. 
It displays the Exit IDE warning box, informing me about the running
task. When I decide to exit anyway the dialog box disappears, the UI
becomes unresponsive and the Scanning projects progress bar freezes.
Comment 1 Jiri Prox 2009-05-11 10:31:17 UTC
Can you please attach threadump captured while IDE is frozen?
Thanks
Comment 2 Vitezslav Stejskal 2009-05-11 11:13:36 UTC
Please attach <ide-userdir>/var/log/messages.log and the threaddump as requested by jprox. This could be the same
problem as in the issue #163944, but it had already been fixed in the build you were testing, so I'm not sure. The
threaddump should show where the problem is. Thanks
Comment 3 denbo 2009-05-11 11:36:55 UTC
Created attachment 81883 [details]
messages.log for IDE exit while scanning projects
Comment 4 denbo 2009-05-11 11:40:16 UTC
The issue still exists with build 200905110201 but hey, the scanning is really fast now so it's not really a problem any
more. I *can* exit the IDE while scanning rt.jar but when my own projects are indexed the IDE freezes.

I've attached my messages.log (copied while the IDE was hanging). I'm sorry I had to replace my customer's name with
§§§§§ but it's confidential :-/

How do I create a threaddump while the IDE is not responding?!
Comment 5 Vitezslav Stejskal 2009-05-12 12:06:48 UTC
"How do I create a threaddump while the IDE is not responding?!" - http://wiki.netbeans.org/GenerateThreadDump Look in
the section 'To generate threaddump'. You will have to run the IDE from a console or use jstack <PID>.

The log file indicates that the IDE was indexing, but until I see the threaddump I can't be sure if there was a deadlock
or the indexing was still running. Thanks
Comment 6 denbo 2009-05-12 16:30:04 UTC
Created attachment 81989 [details]
threaddump taken while IDE was frozen
Comment 7 denbo 2009-05-12 16:35:15 UTC
Here we go, finally. I hope this is what you wanted. Let me know if not.
I noticed that the problem only exists when the numeric progress counter is active, i.e. when I click on the progress
bar and I see the (### of ###) hint.
Comment 8 Vitezslav Stejskal 2009-05-14 09:02:27 UTC
Thanks for the threaddump, that's exactly what I needed. There was no deadlock and you seem to be running version where
issue #163944 had already been fixed. The threaddump shows that the IDE was still indexing, but it got stuck on a
*.properties file, which when asked to provide EditorCookie ended up in some sort of infinite look. I wonder if the IDE
would have eventually crashed with StackOverflowException or something similar. Anyway, I'm passing this on to the
properties editor folks.
Comment 9 Alexey Butenko 2009-05-14 13:52:55 UTC
http://hg.netbeans.org/main/rev/72ca2e399733
Comment 10 Alexey Butenko 2009-05-19 09:53:49 UTC
*** Issue 165430 has been marked as a duplicate of this issue. ***