+1 vote
Dear openLCA community,

I tried to run the newest openLCA version provided on the website. I opened the .gz and then double clicked on openLCA in nautilus (gnome file explorer). The startup window appeared. The progress bar went through about 25%. Then it closed, and a crash report was written, starting with the text below. It looks like a versioning error with eclipse. Some gdk or gtk packages might have the wrong version. How can I find out, what is missing and what needs to be reinstalled / updated?

Thank you very much!

Cheers, JFM


# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x00007f7df6122b39, pid=17107, tid=0x00007f7e9ccc1700
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x4fb39]  gdk_display_open+0x49
# Core dump written. Default location: /home/username/directory/openLCA_linux64_1.9.0_2019-06-28/openLCA/core or core.17107
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

---------------  T H R E A D  ---------------

Current thread (0x00007f7e94009800):  JavaThread "main" [_thread_in_native, id=17108, stack(0x00007f7e9cbc2000,0x00007f7e9ccc2000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000114

RAX=0x0000000000000000, RBX=0x00007f7e955b7670, RCX=0x0000000000000000, RDX=0x0000000000000000
RSP=0x00007f7e9ccbb000, RBP=0x00007f7e9ccbb010, RSI=0x00007f7df6122940, RDI=0x00007f7e955b7670
R8 =0x0000000000000000, R9 =0x00007f7e7dfc548e, R10=0x00007f7e7e27c8f0, R11=0x0000000000000000
R12=0x00007f7e9ccbb040, R13=0x00007f7e955a6880, R14=0x00007f7e955a6888, R15=0x0000000000000000
RIP=0x00007f7df6122b39, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006

Top of Stack: (sp=0x00007f7e9ccbb000)
0x00007f7e9ccbb000:   0000000000000027 00007f7e7df90d5f
in openLCA by (160 points)
by (110 points)
I'm having the same GTK issue on Ubuntu 18.04. The loading image appears, the progress bar reaches 25%, a larger GUI flashes onto the screen and then it crashes.

Looks like the same GTK issue:

$ ./openLCA
The OpenLCA executable launcher no longer supports running with GTK + 2.x. Continuing using GTK+ 3.x.
FXModuleClassloader#findLocalClass - Failed to check for Gtk3
java.lang.NoSuchFieldException: GTK3
    at java.lang.Class.getDeclaredField(Class.java:2070)
    at org.eclipse.fx.osgi.fxloader.FXClassLoader$SWTFXClassloader.findClass(FXClassLoader.java:839)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

If this is helpful:
$ dpkg -l libgtk2.0-0 libgtk-3-0
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                     Version                   Architecture              Description
ii  libgtk-3-0:amd64                         3.22.30-1ubuntu1          amd64                     GTK+ graphical user interface library
ii  libgtk2.0-0:amd64                        2.24.32-1ubuntu1          amd64                     GTK+ graphical user interface library

1 Answer

0 votes
by (450 points)
selected by
Best answer

From the original question, the embedded java runtime for openlca 1.9 is 1.8 u101-b13:

# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)

It seems like GTK-3 support for openjdk 1.8 has only been added on release 202:
Release Note: GTK3 Supported on Linux

So, as of openlca I think this is a bug preventing version 1.9 to run properly in linux.
We may need some guidance here from @msrocka
I opened an issue on this topic for olca-app: