3D-e-Chem / knime-molviewer

KNIME node which launches a web browser with moleculer viewer powered by webgl
Apache License 2.0
3 stars 0 forks source link

Gives core dump with KNIME v3.3.1 in VM #16

Closed sverhoeven closed 7 years ago

sverhoeven commented 7 years ago

Inside 3D-e-Chem virtual machine. Using a clean install of KNIME v3.3.1, installing molviewer node and download example workflow.

Opening the view gave a core dump.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f626a5f32b7, pid=4886, tid=140060701705984
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x4e2b7]  gdk_display_open+0x57
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/vagrant/Downloads/knime_3.3.1/hs_err_pid4886.log
#
# 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.
#

Using the OS installed KNIME v3.2.1 gave no core dump and worked like expected.

sverhoeven commented 7 years ago

Doing export SWT_GTK3=0 before knime start makes molviewer work like expected.

sverhoeven commented 7 years ago

Don't use Desktop.getDesktop().browse(<uri>), but call xdg-open <uri>, the Linux OS native CLI, to open a web browser with that uri.