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 169019 - Switching between Project Groups Causes Crashes
Summary: Switching between Project Groups Causes Crashes
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 10:29 UTC by neilyboy
Modified: 2011-11-28 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack Dump when NB frozen (17.53 KB, text/plain)
2009-07-23 14:12 UTC, neilyboy
Details
Thread dump from frozen NB (11.49 KB, text/plain)
2009-07-29 09:41 UTC, neilyboy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neilyboy 2009-07-23 10:29:51 UTC
I have a number of project groups, each with a number of projects in them.

I was working on one project group, saved all, changed to another project group opened a single file, copied the
contents of that file to clipboard. Switched back to previous project group. Netbeans hangs.
Looking at processes (using Sysinternals Process Explorer) I see there are now two netbeans proceses running. I indetify
which is the one currently visible  on screen and kill the other one. Still hangs, so kill the second process.
Now netbeans fails to load.
Comment 1 neilyboy 2009-07-23 10:32:46 UTC
update:
netbeans now starts but it says it has a certain project group open none of the project in that group appear in the
projects window.
If i switch to another project group it openes it fine, but when i click back to the problem group there are still no
projects in it.
Comment 2 neilyboy 2009-07-23 10:34:33 UTC
update:
netbeans now starts but it says it has a certain project group open none of the project in that group appear in the
projects window.
If i switch to another project group it openes it fine, but when i click back to the problem group there are still no
projects in it. and it hangs for a minute or so saying scanning projects, then the projects appear.

Note that there are only 3 projects in the group. 2 visual web and one java library. None are particularly big.
Comment 3 Milan Kubec 2009-07-23 13:03:46 UTC
In such case when IDE hangs please generate thread dump (http://wiki.netbeans.org/GenerateThreadDump) and attach it to
this issue. From your last comment I understand that the prj group is not corrupted.
Comment 4 neilyboy 2009-07-23 14:12:13 UTC
Created attachment 85135 [details]
Stack Dump when NB frozen
Comment 5 neilyboy 2009-07-23 14:20:40 UTC
here is a stack dump from a frozen NB, it has done it again, 
Curiously this time it is not as frozen as before!
it is stuck at Opening group "Group Name" stuck at 60%
it says that i am in the group, but i am not, i only see the projects from the previous group.
I can still access files from these projects but cannot change to any other groups.

I can exit NB this time normaly but when i re-open it says the group is open but i see no projects. If i change groups
to "none", then change back again my projects re-apear.

odd.
Comment 6 Milan Kubec 2009-07-24 08:37:12 UTC
Unfortunately the thread dump doesn't show frozen IDE. Better would be to provide some steps to reproduce the problem,
description of those groups (type of group, how many projects, what project types, etc.) so I can try to reproduce the
problem. Setting as INCOMPLETE, so far.
Comment 7 neilyboy 2009-07-29 09:41:21 UTC
Created attachment 85409 [details]
Thread dump from frozen NB
Comment 8 neilyboy 2009-07-29 09:47:10 UTC
Ok, i've attached another thread dump which hopefully shows a frozen netbeans.
This happened when starting netbeans, the suspect project group was the last one open and the open file tabs seem
to show files from that project group. However, no projects appear in the project explorer and nothing is going on in
the status bar.

If this stack doesn't explain a bit better I will try to gather a clearer set of steps than those i've already provided,
but it'll have to be once i clear a couple of work deadlines!
Comment 9 neilyboy 2009-07-29 10:16:40 UTC
OK.
So if i delete the file faces-config.NavData which is inside one of the projects in the suspect group netbeans now opens. 
So something is corrupting this file which is causing NB to fail to start and causing a problem switching between groups?

Dunno where this defect should go now? It seems similar to one i logged a while back
http://www.netbeans.org/issues/show_bug.cgi?id=167786

Does the same code run at startup as runs on project group switching which could cause a problem?


Comment 10 Marian Mirilovic 2009-09-18 14:28:13 UTC
neilyboy, thanks for update ...
Comment 11 Milan Kubec 2009-09-21 09:50:00 UTC
Please evaluate, thanks.
Comment 12 Jan Chalupa 2011-11-28 09:03:38 UTC
Obsolete issue. Closing.