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 164028 - Full IDE freeze when opening GizmoDemo project on Linux
Summary: Full IDE freeze when opening GizmoDemo project on Linux
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-29 10:27 UTC by Maria Tishkova
Modified: 2009-05-05 16:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump when trying to opem GizmoDemo (22.35 KB, text/plain)
2009-04-29 10:28 UTC, Maria Tishkova
Details
thread dump on next run with the same userdir (29.60 KB, text/plain)
2009-04-29 10:29 UTC, Maria Tishkova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maria Tishkova 2009-04-29 10:27:29 UTC
-------------------------------------------------------------------------------
>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
Comment 1 Maria Tishkova 2009-04-29 10:28:18 UTC
Created attachment 81180 [details]
thread dump when trying to opem GizmoDemo
Comment 2 Maria Tishkova 2009-04-29 10:29:01 UTC
Created attachment 81181 [details]
thread dump on next run with the same userdir
Comment 3 Maria Tishkova 2009-04-29 10:32:05 UTC
I want to mention that I cannot reproduce this problem on my Solaris x86
Comment 4 Vladimir Voskresensky 2009-04-29 10:43:18 UTC
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)
Comment 5 Vladimir Voskresensky 2009-04-29 11:35:30 UTC
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

Comment 6 Vladimir Voskresensky 2009-04-29 14:31:54 UTC
fixed. Please, check how it works now
http://hg.netbeans.org/cnd-main?cmd=changeset;node=818351d1756f
Comment 7 Quality Engineering 2009-04-30 07:35:39 UTC
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
Comment 8 Maria Tishkova 2009-05-05 16:33:20 UTC
works for me after the fix