Bug 533326 - Eclipse freeze after the first splash screen when running in with GTK 3
Summary: Eclipse freeze after the first splash screen when running in with GTK 3
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-04-06 12:47 EDT by Gayan Perera CLA
Modified: 2018-08-16 14:51 EDT (History)
5 users (show)

See Also:


Attachments
log file (51.08 KB, text/x-log)
2018-04-08 09:51 EDT, Gayan Perera CLA
no flags Details
jstack output (14.14 KB, application/octet-stream)
2018-04-08 09:58 EDT, Gayan Perera CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gayan Perera CLA 2018-04-06 12:47:12 EDT
Enviroment:
 OS: Ubuntu 16.04 based Elementary OS Loki
 GTK : 3.18.9
 Java Version : Java 8, Java 9
 Eclipse : Photon M6

When running eclipse the splash screen is shown but the workspace dialog doesn't comes up, the whole system become unresponsive. Have to kill the java process by login into terminal mode.

Console Output:

WARNING: Using incubator modules: jdk.incubator.httpclient
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Terminated
Comment 1 Gayan Perera CLA 2018-04-06 12:48:03 EDT
Verbose/Debug Mode:

This is the console output when i execute in GTK3 mode
----------------------------------------------------------------------------
Start VM: /opt/java/1.8/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
-launcher /opt/eclipse/eclipse-photon/eclipse
-name Eclipse
--launcher.library /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180201-0654/eclipse_1703.so
-startup /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
--launcher.appendVmargs
-exitdata 1d8005
-product org.eclipse.epp.package.java.product
-clean
-debug
-consolelog
-vm /opt/java/1.8/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar 
Install location:
    file:/opt/eclipse/eclipse-photon/
Configuration file:
    file:/opt/eclipse/eclipse-photon/configuration/config.ini loaded
Configuration location:
    file:/opt/eclipse/eclipse-photon/configuration/
Framework located:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
	eclipse.properties not found
Framework classpath:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
    file:/opt/eclipse/eclipse-photon/plugins/
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
Splash location:
    /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
Debug options:
    file:/opt/eclipse/eclipse-photon/.options not found
Time to load bundles: 118
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 26158
Comment 2 Dani Megert CLA 2018-04-07 09:03:05 EDT
This looks like bug 527283.

*** This bug has been marked as a duplicate of bug 527283 ***
Comment 3 Gayan Perera CLA 2018-04-07 11:00:38 EDT
Enviroment:
 OS: Ubuntu 16.04 based Elementary OS Loki
 GTK : 3.18.9
 Java Version : OpenJDK 9
 Eclipse : Photon M6

output with -clean -debug -consolelog
-------------------------------------------------------------------------

Start VM: /usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
-launcher /opt/eclipse/eclipse-photon/eclipse
-name Eclipse
--launcher.library /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180201-0654/eclipse_1703.so
-startup /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar
--launcher.appendVmargs
-exitdata 2c0005
-product org.eclipse.epp.package.java.product
-clean
-debug
-consolelog
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseStringDeduplication
-jar /opt/eclipse/eclipse-photon//plugins/org.eclipse.equinox.launcher_1.5.0.v20180207-1446.jar 
Install location:
    file:/opt/eclipse/eclipse-photon/
Configuration file:
    file:/opt/eclipse/eclipse-photon/configuration/config.ini loaded
Configuration location:
    file:/opt/eclipse/eclipse-photon/configuration/
Framework located:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
	eclipse.properties not found
Framework classpath:
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi_3.13.0.v20180226-1711.jar
    file:/opt/eclipse/eclipse-photon/plugins/
    file:/opt/eclipse/eclipse-photon/plugins/org.eclipse.osgi.compatibility.state_1.1.100.v20180131-1413.jar
Splash location:
    /opt/eclipse/eclipse-photon//plugins/org.eclipse.epp.package.common_4.8.0.20180315-1215/splash.bmp
Debug options:
    file:/opt/eclipse/eclipse-photon/.options not found
!SESSION 2018-04-07 20:27:44.999 -----------------------------------------------
eclipse.buildId=4.8.0.I20180308-0630
java.version=9-internal
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2018-04-07 20:27:52.206
!MESSAGE Error determining system packages.
!STACK 0
java.lang.ClassNotFoundException: java.lang.ModuleLayer
	at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:384)
	at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486)
	at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
	at java.lang.Class.forName0(java.base@9-internal/Native Method)
	at java.lang.Class.forName(java.base@9-internal/Class.java:294)
	at org.eclipse.osgi.storage.Storage.calculateVMPackages(Storage.java:1669)
	at org.eclipse.osgi.storage.Storage.calculateVMProfile(Storage.java:1610)
	at org.eclipse.osgi.storage.Storage.findVMProfile(Storage.java:1508)
	at org.eclipse.osgi.storage.Storage.loadVMProfile(Storage.java:1465)
	at org.eclipse.osgi.storage.Storage.getBuilder(Storage.java:742)
	at org.eclipse.osgi.storage.Storage.checkSystemBundle(Storage.java:360)
	at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:153)
	at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:69)
	at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:303)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
Time to load bundles: 91
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 33453
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Terminated
------------------------------------------------------------------------------

Seems the issue is there, seem its not a duplicate since i can run Oxygen latest without any problems with OpenJDK 9 with GTK3 enabled.
Comment 4 Dani Megert CLA 2018-04-08 07:25:21 EDT
Is it a freeze or a crash? If it freezes, please create a stack dump and attach it here. Please also check the .log file.
Comment 5 Gayan Perera CLA 2018-04-08 09:51:59 EDT
Created attachment 273483 [details]
log file
Comment 6 Dani Megert CLA 2018-04-08 09:55:54 EDT
OK. Can you try with http://download.eclipse.org/eclipse/downloads/drops4/S-4.8M6-201803080630/
Comment 7 Gayan Perera CLA 2018-04-08 09:58:49 EDT
Created attachment 273484 [details]
jstack output
Comment 8 Gayan Perera CLA 2018-04-08 09:59:23 EDT
(In reply to Dani Megert from comment #6)
> OK. Can you try with
> http://download.eclipse.org/eclipse/downloads/drops4/S-4.8M6-201803080630/

Sure i will give it a try
Comment 9 Dani Megert CLA 2018-04-08 10:00:48 EDT
(In reply to Gayan Perera from comment #8)
> (In reply to Dani Megert from comment #6)
> > OK. Can you try with
> > http://download.eclipse.org/eclipse/downloads/drops4/S-4.8M6-201803080630/
> 
> Sure i will give it a try

thx
Comment 10 Gayan Perera CLA 2018-04-08 10:14:50 EDT
Same its just freeze like described in the issue, and by the way the default eclipse.ini seems to crash jvm on startup because of this

--add-modules=ALL-SYSTEM

removing that seems the fix the jvm crash. I'm running with 

openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
Comment 11 Gayan Perera CLA 2018-04-12 01:39:49 EDT
Any update on this issue, seems like this will block linux users who are on GTK 3.18 (not sure if it same on latest GTK versions as well) from testing photon.
Comment 12 Gayan Perera CLA 2018-04-12 10:55:55 EDT
i tried in Ubuntu 17.10 which has GNOME, version 3.26.1, it seem photon starts without any issue on that version.
Comment 13 Alexander Kurtakov CLA 2018-04-13 02:14:33 EDT
(In reply to Gayan Perera from comment #12)
> i tried in Ubuntu 17.10 which has GNOME, version 3.26.1, it seem photon
> starts without any issue on that version.

Can we close this one in this case?
Comment 14 Gayan Perera CLA 2018-04-13 03:12:36 EDT
(In reply to Alexander Kurtakov from comment #13)
> (In reply to Gayan Perera from comment #12)
> > i tried in Ubuntu 17.10 which has GNOME, version 3.26.1, it seem photon
> > starts without any issue on that version.
> 
> Can we close this one in this case?

Shouldn't we support Ubuntu LTS versions ? because there can be many users who will be using the Ubunut LTS version 16.04. There are many distributions as well which are based on Ubunut 16.04 as their base. So if we don't support it they will not be able to run Photon isn't it ?
Comment 15 Alexander Kurtakov CLA 2018-04-13 03:18:43 EDT
(In reply to Gayan Perera from comment #14)
> (In reply to Alexander Kurtakov from comment #13)
> > (In reply to Gayan Perera from comment #12)
> > > i tried in Ubuntu 17.10 which has GNOME, version 3.26.1, it seem photon
> > > starts without any issue on that version.
> > 
> > Can we close this one in this case?
> 
> Shouldn't we support Ubuntu LTS versions ? because there can be many users
> who will be using the Ubunut LTS version 16.04. There are many distributions
> as well which are based on Ubunut 16.04 as their base. So if we don't
> support it they will not be able to run Photon isn't it ?

Sorry, I misunderstood your comment as the issue is "fixed is not reproducible on Ubuntu" and skipped the version.
Comment 16 Alexander Kurtakov CLA 2018-04-13 03:22:20 EDT
I don't see anything in the comments and attachements pointing to SWT. Can the machine be compromised somehow ? Borked JVM, eclipse installation etc? It would be interesting to try whether it's reproducible on clean Ubuntu 16.04 install.
Comment 17 Eric Williams CLA 2018-04-13 10:57:20 EDT
(In reply to Gayan Perera from comment #14)
> (In reply to Alexander Kurtakov from comment #13)
> > (In reply to Gayan Perera from comment #12)
> > > i tried in Ubuntu 17.10 which has GNOME, version 3.26.1, it seem photon
> > > starts without any issue on that version.
> > 
> > Can we close this one in this case?
> 
> Shouldn't we support Ubuntu LTS versions ? because there can be many users
> who will be using the Ubunut LTS version 16.04. There are many distributions
> as well which are based on Ubunut 16.04 as their base. So if we don't
> support it they will not be able to run Photon isn't it ?

Would you be able to try on a nightly version of the soon-to-be-released 18.04 LTS? This release has an up to date GTK3 stack.
Comment 18 Gayan Perera CLA 2018-04-14 04:40:05 EDT
Couldn't try with 18.04 but GTK3 works fine with Ubuntu 17.10. I will switch to 17.10 for now. You can close this issue.
Comment 19 Eric Williams CLA 2018-08-16 14:51:09 EDT
(In reply to Gayan Perera from comment #18)
> Couldn't try with 18.04 but GTK3 works fine with Ubuntu 17.10. I will switch
> to 17.10 for now. You can close this issue.

Will do, thank you.