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 146302 - Deadlock during saving freeform project properties
Summary: Deadlock during saving freeform project properties
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2008-09-05 11:28 UTC by Tomas Danek
Modified: 2008-12-23 14:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddump (113.35 KB, text/plain)
2008-09-05 11:28 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-09-05 11:28:08 UTC
Product Version: NetBeans IDE Dev (Build 200809040201)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\Tomas\.netbeans\dev
--------------------------------------------------------------------------
- Created a new freeform project from jfreechart sources
- modified project properties (AFAIK test root classpath, and project output)
- saved project properties -> iresponsive IDE

attaching threaddump
Comment 1 Tomas Danek 2008-09-05 11:28:55 UTC
Created attachment 69135 [details]
threaddump
Comment 2 Tomas Danek 2008-09-05 11:39:52 UTC
...i can reproduce consistently -> P1:(

what i did:
- have a freeform project (JFreechart), during setup i binded targets + set up classpath for sourceroot
- built project and javadoc to be able to set up dependency for testroot and project output
- project properties - added just built jar to classpath for testroot, on output panel browsed for javadoc folder
- click ok to save -> deadlock

I am able to reproduce constantly, since project properties are not saved, and when i restart (dead) ide, i can
reproduce again by trying to modify project properties again...
Comment 3 Tomas Danek 2008-09-05 12:31:36 UTC
BTW what matters is the adding the built jfreechart.jar to testroot classpath..
Comment 4 Lukas Hasik 2008-09-05 13:10:05 UTC
EQ is locked 
"AWT-EventQueue-1" prio=6 tid=0x039f0800 nid=0x33c waiting for monitor entry [0x2ecce000..0x2eccfb14]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at org.netbeans.modules.java.freeform.SourceForBinaryQueryImpl.findSourceRoots(SourceForBinaryQueryImpl.java:91)
	- waiting to lock <0x0799fda0> (a org.netbeans.modules.java.freeform.SourceForBinaryQueryImpl)
	
Comment 5 Milan Kubec 2008-09-08 11:10:07 UTC
I'm not able to reproduce, could you try to find exact minimal set of steps to reproduce. Thanks.
Comment 6 Milan Kubec 2008-09-08 14:32:37 UTC
Fixed.

http://hg.netbeans.org/main/rev/e66c7adf8907
Comment 7 Quality Engineering 2008-09-09 17:23:57 UTC
Integrated into 'main-golden', will be available in build *200809091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e66c7adf8907
User: Milan Kubec <mkubec@netbeans.org>
Log: #146302: findSourceRoots method body enclosed with PM.mutex().readAccess()
Comment 8 Milan Kubec 2008-09-10 11:49:54 UTC
Additional fix.
Comment 9 Quality Engineering 2008-09-10 17:19:47 UTC
Integrated into 'main-golden', will be available in build *200809101401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/220a7c497c03
User: Milan Kubec <mkubec@netbeans.org>
Log: #146302: fixing object to synchronize on
Comment 10 Tomas Danek 2008-12-23 14:00:19 UTC
was not able to reproduce in 2001223 -> marking verified.