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 28847 - IDE hangs on project switch
Summary: IDE hangs on project switch
Status: VERIFIED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@projects
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2002-11-19 09:44 UTC by Milan Kubec
Modified: 2003-07-11 12:12 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full thread dump (25.17 KB, text/plain)
2002-11-19 09:44 UTC, Milan Kubec
Details
full thread dump (18.44 KB, text/plain)
2003-02-12 15:52 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2002-11-19 09:44:07 UTC
Sometimes, project switch works OK, sometimes it
takes VERY long (while NB
consumes 100% CPU time) but completes eventually
and sometimes after taking
long, one of the two runide.exe (the small one)
vanishes and NB never comes
back, leaving no choice but to force NB to end
with the task manager.

This is a very nasty problem. I have attached a
thread dump from the third
case. Can someone from the developers please have
a short look at it?

This is no one-PC-problem, it happens on many
machines here.
Comment 1 Milan Kubec 2002-11-19 09:44:45 UTC
Created attachment 7986 [details]
full thread dump
Comment 2 Vitezslav Stejskal 2002-11-19 10:23:46 UTC
I am not sure what happens, but there are several threads spwaned from
java parser and cvs command execution which seems to wait for
something, but I can't see for what :-\. Tomas, Martin could you look
at it please.
Comment 3 aaime 2002-11-19 10:31:17 UTC
I can confirm this happens also on my Linux box...
very annoying.
Comment 4 tboerkel 2002-11-19 10:37:06 UTC
Even WHEN it works OK (most of the time), it's still never 
really fast.
Comment 5 Martin Entlicher 2002-11-19 11:55:12 UTC
VCS threads are O.K. "VCS Commands Execution Thread-*" wait for some
work (VCS commands to execute), "VCS Command Executor Starter Loop"
waits for VCS commands to distribute into "VCS Commands Execution
Thread-*", "External Command Output Grabber Processor" waits for
output from VCS commands to process and "VCS Cache Poll Request
Processor" waits for ReferenceQueue to clean.

These threads waits for work and do not block other threads.
Comment 6 _ mihmax 2002-11-21 08:53:04 UTC
Yes, it's annoying, and if fixed, it will be a candidate for 3.4.1,
but I can't afford it blocking # 28441 (no QA, no testcase, sometimes
hangs, sometimes works, etc...)

Sincere, Maxym Mykhalchuk
Comment 7 adnanmukhtar 2002-11-26 04:03:53 UTC
a hint on a possible resolution:

i've noticed that if you garbage-collect the IDE, it 
doesn't hang. hope this helps!
Comment 8 Jaroslav Tulach 2002-12-03 09:53:36 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 9 Vitezslav Stejskal 2002-12-03 15:04:35 UTC
I am sorry to all, but this issue has not been fixed yet and that's
why it is not integrated in release341 branch and I doubt we are able
to fix it for Nb 3.4.1, sorry again.

What's the process now, should I remove the 3.4.1_CANDIDATE keyword?
Comment 10 Jaroslav Tulach 2002-12-04 14:46:20 UTC
Removing keyword is the right action I guess. Maxym should know for
sure...
Comment 11 _ mihmax 2002-12-12 10:40:59 UTC
While this happened (rarely) with 3.4, I'm sure we cannot solve the
unsolvable and commit nothing.

I hope it vanish with new projects.
Comment 12 Milan Kubec 2003-02-12 15:52:42 UTC
Created attachment 8924 [details]
full thread dump
Comment 13 Milan Kubec 2003-02-12 15:54:21 UTC
I've attached full thread dump from very similar deadlock, please
could you look at it? Happened during regular usage of nb34 build.
Comment 14 Vitezslav Stejskal 2003-02-19 11:38:58 UTC
The deadlock is in javacvs filesystem, see issue #31206. The first FTD
doesn't show any deadlock (at least as I can see). 

If the system is busy during projects switch it is mainly because the
change of project layer in default file system which fires zillions of
events from the DFS. All other parts of system (e.g. winsys,
automount, etc.) listen and refresh which can take some time. This
shouldn't happen with new projects any more because there will be no
changes in DFS layers.
Comment 15 Milan Kubec 2003-07-11 12:12:35 UTC
Verified.