2013-05-05 88 views
61

我在Ubuntu 13.04上安裝了jdk和eclipse。它保持打開直到我創建一個項目並鍵入一些基本的內容,但是當我點擊javadoc或Ctrl + Space之類的地方時突然一分鐘內,它立即崩潰並顯示以下消息。我在Juno和Ubuntu 12.04上遇到了這個問題,但是當我從Juno升級到Indigo時,情況並不理想。但現在在使用Indigo和Ubuntu 13.04後,這一切都搞砸了。即使Juno也不能在Ubuntu 13.04上運行,我需要幫助。我需要得到日食的工作。我只是準備安裝/刪除任何東西來讓Eclipse再次運行。爲什麼我的Eclipse Indigo在Oracle 13.04上使用Oracle JDK 64bit崩潰?

[psycho:~] $ /opt/eclipse/eclipse 

(Eclipse:19297): Gtk-WARNING **: Unable to locate theme engine in module_path: "mist", 

(Eclipse:19297): Gtk-WARNING **: Unable to locate theme engine in module_path: "mist", 
# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0x00007fb29dce2009, pid=19297, tid=140405947455232 
# 
# JRE version: 7.0_10-b18 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode linux-amd64 compressed oops) 
# Problematic frame: 
# C [libsoup-2.4.so.1+0x6e009] soup_session_feature_detach+0x19 
# 
# 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/psycho/hs_err_pid19297.log 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.sun.com/bugreport/crash.jsp 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug. 
# 

我的日誌:Logs generated by eclipse

+0

年底.....更多信息的錯誤報告文件保存爲: /家/心理/hs_err_pid19297.log ....你有沒有讀過它? :) – DRastislav 2013-05-05 11:28:05

+0

不兼容的本機庫。請問openjdk可以嗎? – 2013-05-05 11:29:51

+0

我看過,但無法弄清楚它爲什麼會崩潰的任何原因。 hs_err_pid19297.log位於http://pastebin.com/t22x4GGR。如果你能排序,請幫助我。 – vikkyhacks 2013-05-05 11:31:37

回答

146

我在使用Gnome Shell 3.8的Ubuntu 13.04上運行ADT時發生了同樣的錯誤。
我發現這個相關bug報告:https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776
並張貼在錯誤報告解決方法: 添加

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

eclipse.ini
它的工作對我來說,我希望它解決了這個問題你作爲好。

+1

添加到'eclipse.ini'的末尾。通過閱讀該鏈接,看起來成功取決於Firefox版本(xulrunner版本)。 – jcalfee314 2013-12-15 17:13:56

+15

我在Ubuntu 14.04上遇到了同樣的問題,並修復了這個問題。謝謝! – 2014-01-05 02:22:58

+14

您,先生,救了我毛髮移植的費用.. – 2014-02-01 10:03:46

3

這似乎是一個Ubuntu/GTK主題的問題。根據「Ubuntu技術」上的this page,它是由缺少GTK「主題引擎」包引起的。修復方法是爲「霧」主題確定特定的GTK主題引擎包,或者通過安裝「gtk-engines」包(source)來安裝主題引擎。

+0

修復了gtk警告,但eclipse仍然崩潰!!! – vikkyhacks 2013-05-05 11:47:29

6

我在Ubuntu 12.04上運行eclipse luna並面臨同樣的問題。我通過在eclipse.ini文件中添加以下行來解決它,因爲其他選項對我無效。

-Dorg.jboss.tools.vpe.loadxulrunner=false 

希望它有幫助!

1

對我來說,這是this bug的問題,解決方法是更改​​GTK主題(系統設置>應用程序出現> GTK)。

0

對我來說,這個問題是通過添加解決以下到的eclipse.ini

org.eclipse.swt.browser.DefaultType=mozilla