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 149061

Summary: IDE hung on project reopen
Product: projects Reporter: Alexander Simon <alexvsimon>
Component: Ant FreeformAssignee: Milan Kubec <mkubec>
Status: RESOLVED FIXED    
Severity: blocker CC: musilt2
Priority: P2 Keywords: THREAD
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump

Description Alexander Simon 2008-10-03 13:16:59 UTC
IDE hung on project reopen (close project from one repository, open same project from another repository).
Hang was once after repeating operations some times.
Comment 1 Alexander Simon 2008-10-03 13:18:15 UTC
Created attachment 71110 [details]
thread dump
Comment 2 Lukas Hasik 2008-10-03 13:28:04 UTC
seems that the AWT thread is waiting for "Versioning long tasks". 
Is it reproducible? Could you just "wait" a little bit more? Maybe the VCS operation takes a time?

anyway, reassigning to ant/freeform for evaluation
Comment 3 Alexander Simon 2008-10-03 13:49:08 UTC
I waited about 10 minutes and kill IDE.
Thread dump was not changed.
Note: normal reopen on my computer takes about 5 second.
Comment 4 Milan Kubec 2008-10-06 13:29:35 UTC
Fixed. Project metadata are read under PM.mutex.readAccess now.

http://hg.netbeans.org/core-main/rev/b70f8f4de457

Comment 5 Milan Kubec 2008-10-06 13:32:33 UTC
Actually setting to fixed.
Comment 6 Quality Engineering 2008-10-07 06:09:22 UTC
Integrated into 'main-golden', will be available in build *200810070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b70f8f4de457
User: Milan Kubec <mkubec@netbeans.org>
Log: #149061: possible deadlock - project metadata should be read under PM.mutex.readAccess