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 85581 - IDE hangs on creating new project.
Summary: IDE hangs on creating new project.
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-22 18:12 UTC by rptmaestro
Modified: 2006-09-27 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (47.02 KB, text/plain)
2006-09-22 18:17 UTC, rptmaestro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rptmaestro 2006-09-22 18:12:40 UTC
I've been using recent dev builds of NB 5.5, and in the past week, I've come 
across this issue against a 9/14 build and a 9/19 build. For the first few 
hours, I can create projects, but after a while, any attempt to create a new 
project will hang the IDE immediately after clicking the "Finish" button. 
After killing the IDE's java process, I notice that the project directory and 
its nbproject directory have been created, but nothing else. I've attempted 
wiping out the user directory, but the IDE still hangs when I try to create 
the project. The only solution that appears to work is to re-install the IDE.

No related exception is being written to the log, but I am including my log 
for the sake of identifying what my environment is.

I'm assigning this as a P1 issue because it is absolutely impossible for me to 
create a project without re-installing the IDE.
Comment 1 rptmaestro 2006-09-22 18:17:20 UTC
Created attachment 34390 [details]
messages.log
Comment 2 rptmaestro 2006-09-22 18:20:01 UTC
On further investigation, I discovered that this issue appears to happen when 
I attempt to create my project under my subversion working directory. I 
created a project outside my subversion working directory and the IDE did not 
hang. Then I created one inside my subversion working directory and it hung 
again.
Comment 3 rptmaestro 2006-09-22 18:44:22 UTC
Work-around:
1. Disable Subversion module
2. Create project
3. Enable Subversion module.

I tried this work-around and it works.
Comment 4 Tomas Stupka 2006-09-25 13:25:17 UTC
fixed in trunk

/cvs/subversion/main/src/org/netbeans/modules/subversion/Subversion.java,v  <--
 Subversion.java
new revision: 1.60; previous revision: 1.59
Comment 5 Tomas Stupka 2006-09-26 00:02:21 UTC
reverted the previous fix as this would break #82243. 

even if the problem was introduced with the above mentioned fix, the actuall
reason for it seems to be that in scope of FileSystemHandler.fileFolderCreated()
is the sharability query already called before the fileCreatedImpl() is started
in an asynchronous task. This happens because of the getStatus() call which also
leads to a sharability query call in case of yet unknown files.

fix: call getStatus() in scope of the FileCreatedTask()

subversion/main/src/org/netbeans/modules/subversion/FilesystemHandler.java
http://subversion.netbeans.org/source/browse/subversion/main/src/org/netbeans/modules/subversion/Subversion.java?r1=1.60&r2=1.61
Comment 6 Tomas Zezula 2006-09-26 16:29:37 UTC
The patch seems fine, it prevents the deadlock by synchronizing the exclusive
part of code into single thread.
Comment 7 Tomas Stupka 2006-09-26 17:59:31 UTC
merged into 5.5

Checking in FilesystemHandler.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/FilesystemHandler.java,v
 <--  FilesystemHandler.java
new revision: 1.30.4.10; previous revision: 1.30.4.9
Comment 8 Peter Pis 2006-09-27 16:11:37 UTC
Verified.