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 - Move Project hangs
Summary: Move Project hangs
Status: RESOLVED DUPLICATE of bug 68106
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-01-18 23:32 UTC by Vince Kraemer
Modified: 2008-12-22 23:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (18.63 KB, text/plain)
2006-01-18 23:34 UTC, Vince Kraemer
Details
Readable polished thread dump (13.68 KB, text/plain)
2006-04-25 16:08 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***