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 256124 - IDE is extremely deadlock prone on Java 1.8.0_66
Summary: IDE is extremely deadlock prone on Java 1.8.0_66
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-23 05:49 UTC by md_5
Modified: 2015-10-26 09:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jstack report. (22.31 KB, text/plain)
2015-10-23 05:49 UTC, md_5
Details
8.1rc2 aforementioned startup wait (16.04 KB, text/plain)
2015-10-23 07:37 UTC, md_5
Details

Note You need to log in before you can comment on or make changes to this bug.
Description md_5 2015-10-23 05:49:53 UTC
Created attachment 156924 [details]
jstack report.

Yesterday I updated from Ubuntu 15.04 to Ubuntu 15.10. As part of this upgrade, the installed Java version went from 8u45 to 8u66 (using the versions present in openjdk-8-jdk vivid / wily respectively (http://packages.ubuntu.com/vivid/openjdk-8-jdk and http://packages.ubuntu.com/wily/openjdk-8-jdk ).

After doing this, the IDE would deadlock extremely frequently, always somewhere in AWT. I replicated this by doing a clean install, including removal of all configuration. A jstack is attached showing it being BLOCKED.

If I switch the Java version to 7u85 (http://packages.ubuntu.com/wily/openjdk-7-jdk), then this issue is no longer present.
Comment 1 md_5 2015-10-23 05:52:50 UTC
The stack dump shows it being blocked in the font code, but I've also seen it as WAITING forever in some of the X11 clipboard wrappers as well.
Unsure if this is a Java or Netbeans issue, but I haven't experienced it in other Swing / AWT apps (Minecraft launcher).
Comment 2 Geertjan Wielenga 2015-10-23 06:50:07 UTC
Thanks. Will upgrade to latest JDK with latest Ubuntu and try NetBeans there. Also forwarding this to others to evaluate.
Comment 3 Geertjan Wielenga 2015-10-23 06:53:03 UTC
Reporter, since you're using NetBeans IDE 8.0.2, can you also try to reproduce the problem with the latest release of NetBeans, which is NetBeans IDE 8.1 RC 2: download.netbeans.org/netbeans/8.1/rc2/
Comment 4 md_5 2015-10-23 07:30:39 UTC
Downloading for testing now.
Comment 5 md_5 2015-10-23 07:37:44 UTC
Created attachment 156928 [details]
8.1rc2 aforementioned startup wait

Here is the WAITING stack I mentioned earlier on 8.1.
The IDE gets stuck at "Loading Modules" here.
Comment 6 Tomas Hurka 2015-10-23 08:16:30 UTC
This looks to me like problem between JDK and GTK. There is

"AWT-EventQueue-1" #23 prio=6 os_prio=0 tid=0x00007f0e800de000 nid=0x3434 runnable [0x00007f0ed7dfa000]
   java.lang.Thread.State: RUNNABLE
	at com.sun.java.swing.plaf.gtk.GTKStyle.nativeGetColorForState(Native Method)
	at com.sun.java.swing.plaf.gtk.GTKStyle.getStyleSpecificColor(GTKStyle.java:194)
	- locked <0x00000000c0193fa8> (a java.lang.Object)
	at com.sun.java.swing.plaf.gtk.GTKStyle.getGTKColor(GTKStyle.java:237)

in the first thread dump and this:

"AWT-EventQueue-1" #23 prio=6 os_prio=0 tid=0x00007f67fc109000 nid=0x2e8f runnable [0x00007f67e3ac7000]
   java.lang.Thread.State: RUNNABLE
	at sun.awt.UNIXToolkit.load_gtk(Native Method)
	at sun.awt.UNIXToolkit.loadGTK(UNIXToolkit.java:100)
	- locked <0x00000000c024c078> (a java.lang.Object)
	at com.sun.java.swing.plaf.gtk.GTKLookAndFeel.initialize(GTKLookAndFeel.java:1445)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:538)

in the second one.
Comment 7 md_5 2015-10-26 09:38:34 UTC
Reproduced bug on third party app, reporting further upstream.

https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009