Netbeans hangs at startup splash screen

Bug #1532634 reported by Andrew
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTK+
New
Undecided
Unassigned
OpenJDK
New
Undecided
Unassigned
netbeans (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-3)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)

uname -a
Linux <hostname> 4.4.0-040400rc8-generic #201601051225 SMP Tue Jan 5 17:27:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"

Please see screenshot. Will attach ThreadDump

Tags: xenial
Revision history for this message
Andrew (am-public-o) wrote :
Revision history for this message
Andrew (am-public-o) wrote :
Download full text (4.6 KiB)

/opt$ ps -ef | grep java
jetty 1100 1 0 08:21 ? 00:00:11 /usr/lib/jvm/default-java/bin/java -Xmx256m -Djava.awt.headless=true -Djava.io.tmpdir=/var/cache/jetty8/data -Djava.library.path=/usr/lib -DSTART=/etc/jetty8/start.config -Djetty.home=/usr/share/jetty8 -Djetty.logs=/var/log/jetty8 -Djetty.state=/var/lib/jetty8/jetty.state -Djetty.host=0.0.0.0 -Djetty.port=8080 -jar /usr/share/jetty8/start.jar --daemon etc/jetty-logging.xml etc/jetty-started.xml
andy 5261 5254 93 09:57 ? 00:05:28 /usr/bin/java -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -os linux -ws gtk -arch x86_64 -showsplash /opt/eclipse//plugins/org.eclipse.platform_4.5.1.v20150904-0015/splash.bmp -launcher /opt/eclipse/eclipse -name Eclipse --launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417/eclipse_1612.so -startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar --launcher.appendVmargs -exitdata 380014 -product org.eclipse.epp.package.jee.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.7 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
andy 5327 2483 0 09:57 ? 00:00:00 /bin/bash /usr/share/netbeans/8.1/platform/lib/nbexec --userdir /home/andy/.netbeans/8.1 --cachedir /home/andy/.cache/netbeans/8.1 --jdkhome --branding nb --clusters /usr/share/netbeans/8.1/nb:/usr/share/netbeans/8.1/ergonomics:/usr/share/netbeans/8.1/ide:/usr/share/netbeans/8.1/extide:/usr/share/netbeans/8.1/java:/usr/share/netbeans/8.1/apisupport:/usr/share/netbeans/8.1/webcommon:/usr/share/netbeans/8.1/websvccommon:/usr/share/netbeans/8.1/enterprise:/usr/share/netbeans/8.1/mobility:/usr/share/netbeans/8.1/profiler:/usr/share/netbeans/8.1/python:/usr/share/netbeans/8.1/php:/usr/share/netbeans/8.1/identity:/usr/share/netbeans/8.1/harness:/usr/share/netbeans/8.1/cnd:/usr/share/netbeans/8.1/cndext:/usr/share/netbeans/8.1/dlight:/usr/share/netbeans/8.1/groovy:/usr/share/netbeans/8.1/extra:/usr/share/netbeans/8.1/javacard:/usr/share/netbeans/8.1/javafx: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -L-XX:MaxPermSize=384m -J-Xmx765m -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dsun.java2d.pmoffscreen=false
andy 5529 5327 10 09:57 ? 00:00:34 /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Djdk.home=/usr/lib/jvm/java-7-openjdk-amd64 -classpath /usr/share/netbeans/8.1/platform/lib/boot.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-ui.jar:/usr/lib/jvm/java-7-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar -Dnetbeans.default_userdir_root=/home/andy/.netbeans -Dnetbeans.running.environment=gn...

Read more...

Andrew (am-public-o)
tags: added: xenial
Revision history for this message
Marek Slama (mslama-email) wrote :

Hi, please remove attached heap dump. I asked for 'thread dump' which is different thing. Thread dump is list of all JVM threads with call stacks where heap dump is dump of JVM heap ie. memory. And thread dump is usefull only if IDE hangs. How to get thread dump: 'jps -l <pid>' where jps is utility from JDK bin. pid of JVM process you can get from 'ps axu | grep java' and find correct process if multiple java processes are running.

Revision history for this message
Andrew (am-public-o) wrote :

Attached ThreadDump of where Netbeans hangs on "Loading Modules" at startup splash screen.

summary: - Netbeans hangs on "New Project..."
+ Netbeans hangs at startup splash screen
Revision history for this message
Marek Slama (mslama-email) wrote :

I do not see typical deadlock. It hangs in native call in thread "AWT-EventQueue-1". If you take thread dump later is it the same? I want to make sure it will not change. Anyway please could you file issue to netbeans.org? I cannot say if it is OpenJDK issue or some native GTK library issue. Or you can reassign this to OpenJDK directly here to see if there is any similar issue. NetBeans tries to start with native Look&Feel which is GTK in this case.

Revision history for this message
Andrew (am-public-o) wrote :

Hello, thanks for looking at this. I believe it is a problem with GTK as I also tried eclipse and it too, was hanging.

Please see the bug report from eclipse:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=485808
Product/Component: Platform / SWT

Carsten Reckord <email address hidden> changed:

           What |Removed |Added
----------------------------------------------------------------------------
                 CC| |<email address hidden>
          Component|Install |SWT
            Version|unspecified |4.5
           Assignee|<email address hidden> |platform-swt-inbox@eclipse.
                   |rg |org
            Product|MPC |Platform

--- Comment #5 from Carsten Reckord <email address hidden> ---
I don't see anything in those traces that indicates the Marketplace Client's
invlovement in this.

(There are two stack frames below the current ui event loop on the main thread
in the first two dumps, but that looks coincidental, especially since the
latest thread dump doesn't contain MPC frames at all.)

What I do see in those traces are an awful lot of threads waiting for a
Display.syncExec to return:

> java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0x00000000c38b8b48> (a org.eclipse.swt.widgets.RunnableLock)
> at java.lang.Object.wait(Object.java:503)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:199)
> - locked <0x00000000c38b8b48> (a org.eclipse.swt.widgets.RunnableLock)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4633)

while at the same time, the main thread seems to be idling:

> "main" prio=10 tid=0x00007f74d000a000 nid=0x1847 runnable [0x00007f74d8ed3000]
> java.lang.Thread.State: RUNNABLE
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2425)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3428)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:172)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:387)

This could be a bug in SWT under Linux/GTK. Reassigning to the SWT team.

Revision history for this message
Petr Chmelar (chmelab) wrote :

Hi, I'm finally running NetBeans in Xenial after changing netbeans_default_options in netbeans.conf according to patch
https://netbeans.org/bugzilla/show_bug.cgi?id=243569
because of (as I reported)
https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1544634

It was necessary to disable plugins
Warning - could not install some modules:
 slf4j.api - org.netbeans.InvalidException: Netigso: /usr/share/netbeans/8.1/ide/modules/slf4j-dummy.jar: Cannot start slf4j.api state remains INSTALLED after start()
 org.eclipse.jgit - org.netbeans.InvalidException: Netigso: /usr/share/netbeans/8.1/ide/modules/org-eclipse-jgit.jar: Cannot start org.eclipse.jgit state remains INSTALLED after start()

Netbeans already knows about this:
https://netbeans.org/bugzilla/show_bug.cgi?id=257877

Maybe it will be necessary to update the package. Thanks!

Revision history for this message
Petr Chmelar (chmelab) wrote :

Well, even though I can run NetBeans as I commented 15 minutes ago, it freezes anyway after couple of minutes using it. Sorry.

Revision history for this message
Anton Sudak (anton-sudak) wrote :

The issue related to OpenJDK. Here is the fix http://askubuntu.com/a/691652 . It works for both openjdk7 and openjdk8 versions.

Revision history for this message
Markus Koschany (apoleon) wrote :

I believe that this issue "Netbeans hangs at startup splash screen" is resolved in the latest release of Netbeans in Xerial. All modules should load successfully now.

Changed in netbeans (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.