2014-07-21 72 views
28

我的Debian GNU/Linux的7.4(喘息)OS安裝在Oracle VirtualBox和:爲什麼我的Eclipse Luna 4.4與Oracle JDK8 64bit在Debian Wheezy 7.4上崩潰?

java version "1.8.0_11" 
Java(TM) SE Runtime Environment (build 1.8.0_11-b12) 
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode) 

我下載的是Eclipse 4.4月神。當我試圖運行Eclipse發生了錯誤:

A fatal error has been detected by the Java Runtime Environment: 
SIGSEGV (0xb) at pc=0x00007f9e8a42173f, pid=10942, tid=140319582553856 
JRE version: Java(TM) SE Runtime Environment (8.0_11-b12) (build 1.8.0_11-b12) 
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.11-b03 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 

所以我在終端發出命令:

$ ulimit -c unlimited 
$ ./eclipse 

但是發生了一個錯誤:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support 
was removed in 8.0 
(java:11276): GLib-GObject-WARNING **: cannot register existing type `GdkDisplayManager' 
(java:11276): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed 
(java:11276): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed 
(java:11276): GLib-GObject-WARNING **: invalid (NULL) pointer instance 
(java:11276): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed 
(java:11276): GLib-GObject-WARNING **: invalid (NULL) pointer instance 
(java:11276): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed 
(java:11276): GLib-GObject-WARNING **: cannot register existing type `GdkDisplay' 
(java:11276): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed 
(java:11276): GLib-GObject-CRITICAL **: g_type_register_static: assertion `parent_type > 0' failed 
(java:11276): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed 
(java:11276): 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=0x00007f216d28473f, pid=11276, tid=139782222493440JRE version: Java(TM) SE Runtime Environment 

(8.0_11-b12)(build 1.8.0_11-b12) Java虛擬機:Java HotSpot(TM)64位服務器虛擬機(25.11-b03混合模式linux-amd64壓縮oops) 有問題的幀: C [libgdk-x11-2.0.so.0 + 0x5173f] gdk_display_open + 0x3f Core轉儲寫入。默認位置:/首頁/ ABCDEF/ECLIPSE_JAVA /月食/芯或core.11276

我也試圖通過增加來解決這個問題:

-Dorg.eclipse.swt.browser.DefaultType=mozilla 

到的eclipse.ini,但事實並非如此幫幫我。

任何人都可以幫助我解決這個問題嗎?

+4

嘗試:'SWT_GTK3 = 0/eclipse' –

回答

79

據: https://bugs.eclipse.org/bugs/show_bug.cgi?id=430736

添加到2行eclipse.ini:

--launcher.GTK_version 
2 

選項--launcher.GTK_version應 --launcher.appendVmargs

問題(對話不能正常工作)與TIBCOJaspersoft®工作室 - JasperReports的可視化設計:

編輯的JasperSoft Studio.ini這樣的:

-startup 
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar 
--launcher.GTK_version 
2 
--launcher.library 

或者添加這之前啓動碧玉工作室(runubuntu。SH):

export SWT_GTK3=0 
+1

我有同樣的問題,這個解決方案爲我工作。謝謝 ! – Sara

+1

- > Eclipse Mars同樣的解決方案。 – CamelTM

+1

它也適用於我:D – user2010955

3

嘗試從命令行啓動Eclipse並使用-noSplash選項。 您的錯誤看起來像這樣bug

10

嘗試編輯您的eclipse.ini文件是這樣的:

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326 
-product 
org.eclipse.epp.package.java.product 
--launcher.defaultAction 
openFile 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
256m 
--launcher.defaultAction 
openFile 
--launcher.GTK_version 
2 
--launcher.appendVmargs 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-XX:MaxPermSize=256m 
-Xms40m 
-Xmx512m 
+0

看到這個之後,我讓它還指出,Java 7中,它的工作 – pitchblack408

4

當在Debian Wheezy 7.6 64位上啓動STS時,我遇到了與基於Eclipse的Sping Tool Suite(STS)和JDK 8相同的問題。按照其他答案的建議,將這兩行添加到init文件sts.ini(eclipse.ini)中。

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326 
-product 
org.springsource.sts.ide 
--launcher.defaultAction 
openFile 
--launcher.GTK_version 
2 
-vmargs 
-Dosgi.requiredJavaVersion=1.6 
-Xms40m 
-Xmx768m 
3

「--launcher.GTK_version 2」

這是爲我工作也。 Debian 7 + STS 4.4.1,我必須添加一行到eclipse.ini作爲ccer添加。

4

在Debian Wheezy 7.8(64bit)&使用Eclipse - Luna 4.4.2。由harshrc評論Bug 430736是最相關的在我的情況下,並解決崩潰後啓動畫面。啓動Eclipse與export SWT_GTK3=0

# from CLI/prompt in eclipse folder: 
export SWT_GTK3=0 ; ./eclipse 
+0

這也適用於Debian Jessie和Eclipse Neon。 – albert