c / linux桌面 / 未分类 · 2015年5月11日

Why does Eclipse Luna 4.4 crash on kali with Oracle JDK8 64bit?–cannot register existing type `GdkDisplayManager'

[email protected]:~/program/new-eclipse$ ./eclipse
(java:23844): GLib-GObject-WARNING **: cannot register existing type `GdkDisplayManager’
(java:23844): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed
(java:23844): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)’ failed
(java:23844): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(java:23844): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed
(java:23844): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(java:23844): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)’ failed
(java:23844): GLib-GObject-WARNING **: cannot register existing type `GdkDisplay’
(java:23844): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed
(java:23844): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0′ failed
(java:23844): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0′ failed
(java:23844): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)’ failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ffe598f773f, pid=23844, tid=140730770458368
#
# JRE version: Java(TM) SE Runtime Environment (7.0_76-b13) (build 1.7.0_76-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.76-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgdk-x11-2.0.so.0+0x5173f] gdk_display_open+0x3f
#
# 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/evan/program/new-eclipse/hs_err_pid23844.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.
#
[email protected]:~/program/new-eclipse$ export SWT_GTK3=0
[email protected]:~/program/new-eclipse$ ./eclipse
sudo ln -s /home/evan/program/luna-eclipse/eclipse /usr/bin/eclipse
sudo cp firefox-mozilla-build.desktop eclipse.desktop
[email protected]:/usr/share/applications$ cat eclipse.desktop
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
GenericName=IDE
Comment=IDE
Exec=/home/evan/program/luna-eclipse/run-eclipse
Icon=/home/evan/program/luna-eclipse/icon.xpm
Terminal=false
X-MultipleArgs=false
StartupWMClass=Firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;