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 145234 - IDE hangs when saving project properties
Summary: IDE hangs when saving project properties
Status: RESOLVED DUPLICATE of bug 139608
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 01:55 UTC by _ gtzabari
Modified: 2008-10-30 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the thread dump (38.33 KB, text/plain)
2008-08-27 01:55 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-08-27 01:55:01 UTC
dev build 200808261401

There seems to be a frequent race condition (occurs about 25% of the time) when saving project properties that causes
the entire IDE to hang. I'm attaching a thread dump.
Comment 1 _ gtzabari 2008-08-27 01:55:23 UTC
Created attachment 68397 [details]
the thread dump
Comment 2 _ gtzabari 2008-08-27 02:21:52 UTC
This seems to occur more frequently when I am changing the project-specific formatting options (as opposed to using the
global formatting settings)
Comment 3 Milos Kleint 2008-08-27 07:24:08 UTC
the suspicious thing is the groovy panel UI that's being constructed in non-AWT thread. That requres the AWT hierarchy
lock, which hangs and blocks AWT which needs the project mutex.
-> groovy

	- waiting to lock <0x0000000012703d08> (a java.awt.Component$AWTTreeLock)
	at java.awt.Container.setFont(Container.java:1536)
	at javax.swing.JComponent.setFont(JComponent.java:2721)
	at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:190)
	at javax.swing.plaf.basic.BasicPanelUI.installDefaults(BasicPanelUI.java:49)
	at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
	at javax.swing.JComponent.setUI(JComponent.java:673)
	at javax.swing.JPanel.setUI(JPanel.java:136)
	at javax.swing.JPanel.updateUI(JPanel.java:109)
	at javax.swing.JPanel.<init>(JPanel.java:69)
	at javax.swing.JPanel.<init>(JPanel.java:92)
	at javax.swing.JPanel.<init>(JPanel.java:100)
	at org.netbeans.modules.groovy.support.customizer.GroovyCustomizerPanel.<init>(GroovyCustomizerPanel.java:52)
	at org.netbeans.modules.groovy.support.GroovyProjectExtender.getPanel(GroovyProjectExtender.java:103)
	at
org.netbeans.modules.groovy.support.customizer.GroovyCustomizer$StoreActionListener.actionPerformed(GroovyCustomizer.java:100)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.storePerformed(CustomizerDialog.java:284)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.storePerformed(CustomizerDialog.java:287)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.access$400(CustomizerDialog.java:188)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$2$1.run(CustomizerDialog.java:246)
	at org.openide.util.Mutex.writeAccess(Mutex.java:433)
Comment 4 martin_adamek 2008-08-28 07:52:25 UTC

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