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.
------------------------------------------------------------------------------- >Log Session: Wednesday, April 29, 2009 1:26:52 PM MSD >System Info: Product Version = NetBeans IDE Dev (Build 090429) Operating System = Linux version 2.6.18-8.el5 running on i386 Java; VM; Vendor = 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0-b105 Java Home = /net/archer.russia/export5/re/jdk/6.0/promoted/fcs/b105/binaries/linux-i586/jre System Locale; Encoding = en_US (nb); ANSI_X3.4-1968 Home Directory = /home/mt154047 1. I have downloaded GizmoDemo project (latest link) http://www.netbeans.org/issues/show_bug.cgi?id=161492 2. Run IDE 3. Try to open GizmoDemo project -> small dialog "Opening project.." is in place and it is not closed.. (see thread_dump_linux.txt 4. I have killed IDE and opened it again with the same user dir -> "Usage Statistics" dialog is shown, no possibility to push any button on this dialog, IDE doesn't work. See thread_dump_linux_next.txt
Created attachment 81180 [details] thread dump when trying to opem GizmoDemo
Created attachment 81181 [details] thread dump on next run with the same userdir
I want to mention that I cannot reproduce this problem on my Solaris x86
there is a dead lock between EDT and "Reading project configuraion" threads. The problem is in "Reading project configuraion" thread which touch Swing objects during XML reading. "Reading project configuraion" daemon prio=10 tid=0x080c2800 nid=0x69b0 waiting for monitor entry [0xc6390000..0xc6391030] java.lang.Thread.State: BLOCKED (on object monitor) at java.awt.Component.setFont(Component.java:1633) - waiting to lock <0xcbcf3fd0> (a java.awt.Component$AWTTreeLock) at java.awt.Container.setFont(Container.java:1571) at javax.swing.JComponent.setFont(JComponent.java:2716) 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:668) 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.cnd.api.compilers.NoCompilersPanel.<init>(NoCompilersPanel.java:53) at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDefault(CompilerSetManager.java:184) at org.netbeans.modules.cnd.api.compilers.CompilerSetManager.getDefault(CompilerSetManager.java:142) at org.netbeans.modules.cnd.makeproject.api.configurations.CompilerSet2Configuration.getCompilerSetManager(CompilerSet2Configuration.java:99) at org.netbeans.modules.cnd.makeproject.api.configurations.CompilerSet2Configuration.<init>(CompilerSet2Configuration.java:79) at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfiguration.<init>(MakeConfiguration.java:131) at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLCodec.createNewConfiguration(ConfigurationXMLCodec.java:819) at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationXMLCodec.startElement(ConfigurationXMLCodec.java:180) at org.netbeans.modules.cnd.api.xml.XMLDecoder._startElement(XMLDecoder.java:106)
The root cause is again the issue http://www.netbeans.org/issues/show_bug.cgi?id=146696 project is not read itself in EDT, but EDT is blocked till reader tasks is finished. But reader task make a lot of work + makes check of compiler availability. when no compiler is found on system => it will show dialog, but dialog can be shown if EDT is not busy (which is blocked now). As workaround, I will postpone display of no compiler found, but issue 146696 have to be solved
fixed. Please, check how it works now http://hg.netbeans.org/cnd-main?cmd=changeset;node=818351d1756f
Integrated into 'main-golden', will be available in build *200904300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/818351d1756f User: Vladimir Voskresensky <vv159170@netbeans.org> Log: workaround to fix IZ#164028: Full IDE freeze when opening GizmoDemo project on Linux
works for me after the fix