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.
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.
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).
Thanks. Will upgrade to latest JDK with latest Ubuntu and try NetBeans there. Also forwarding this to others to evaluate.
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/
Downloading for testing now.
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.
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.
Reproduced bug on third party app, reporting further upstream. https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1510009