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 71571

Summary: Move Project hangs
Product: platform Reporter: Vince Kraemer <vkraemer>
Component: -- Other --Assignee: Petr Nejedly <pnejedly>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: issues, jlahoda, mkrauskopf, pjiricka
Priority: P2 Keywords: PERFORMANCE
Version: 5.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump
Readable polished thread dump

Description Vince Kraemer 2006-01-18 23:32:34 UTC
I accidentally created a web application project in the "middle" of a cvs
controlled tree.

I really wanted it in my /home directory.

I picked the Move Project item.

I entered '/home/vkraemer' as the destination... (Note: this is a NFS mounted
file system)

The "clean" target fired.

The progress bar gets to about 45% and then.... nothing.  The IDE became
completely unresponsive. Things don't redraw. etc.
Comment 1 Vince Kraemer 2006-01-18 23:34:12 UTC
Created attachment 28448 [details]
thread dump
Comment 2 Vince Kraemer 2006-01-18 23:44:43 UTC
RC1 build
Comment 3 _ rkubacki 2006-01-19 13:45:41 UTC
Hard to tell what is the culprit. The more dump can help here. Web folks can you
look at this?

I see that classpath is manipulated as a result of project update, CVS job is
running too, Java and projects are also involved.
Comment 4 Radko Najman 2006-01-23 15:45:11 UTC
Is it a reproducible or random bug? Are there any steps to reproduce it? I tried
it a few times on Windows and on Linux today and it worked fine.
Comment 5 Vince Kraemer 2006-01-23 16:02:04 UTC
more detailed steps...

1. check out the netbeans source distribution
2. create a new web project in web/project/src.
3. use 'Move Project' to transfer the project to an NFS mounted file system

I only saw this once.  I haven't tried to reproduce it again.
Comment 6 Martin Krauskopf 2006-04-25 16:08:30 UTC
Created attachment 30044 [details]
Readable polished thread dump
Comment 7 Martin Krauskopf 2006-04-25 16:11:44 UTC
Petre please take a look at the attached "Readable polished thread dump" and
look for the regexp ".*XXX.*\|web\|Mutex" which will highlight for you few
places from which you can see where is the problem:

There is a deadlock between ProjectManager.MUTEX and
MergedClassPathImplementation lock. What is strange is that there are a few
thread which wait for ProjectManager.MUTEX read access but there is no thread
holding write access. So there is no reason for those threads to be blocked.
Those thread should finish and thus the traffic could go on. So my evaluation is
that there seems to be bug in the Mutex itself.
Please evaluate and feel free to reassign back. Thanks.
Comment 8 Petr Nejedly 2006-05-03 14:46:29 UTC
Yes, there's a bug in Mutex.

*** This issue has been marked as a duplicate of 68106 ***