简体   繁体   English

为什么我的Eclipse Indigo会在使用Oracle JDK 64bit的Ubuntu 13.04上崩溃?

[英]Why does my Eclipse Indigo crash on Ubuntu 13.04 with Oracle JDK 64bit?

I installed jdk and eclipse on to Ubuntu 13.04. 我在Ubuntu 13.04上安装了jdk和eclipse。 It stays open till I create a project and type some basic but then suddenly within a minute when I click somewhere like javadoc or Ctrl+Space, it immediately crashes with the following message. 它保持打开状态,直到我创建一个项目并输入一些基本但是当我点击javadoc或Ctrl + Space之类的某个地方突然间,它会立即崩溃并显示以下消息。 I had this problem with Juno and Ubuntu 12.04, but when I upgraded from Juno to Indigo, it was fine. 我有Juno和Ubuntu 12.04这个问题,但是当我从Juno升级到Indigo时,它很好。 But now after using Indigo and Ubuntu 13.04 it's all messed up. 但现在使用Indigo和Ubuntu 13.04之后,它们都搞砸了。 Even Juno won't work with Ubuntu 13.04, I need help. 即使Juno也无法使用Ubuntu 13.04,我需要帮助。 I need to get eclipse working. 我需要让日食工作。 I just am ready to install/remove anything to get Eclipse working again. 我已准备好安装/删除任何东西以使Eclipse再次运行。

[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.
#

My Logs: Logs generated by eclipse 我的日志: eclipse生成的日志

I had the same error running ADT on Ubuntu 13.04 with Gnome Shell 3.8. 我在使用Gnome Shell 3.8在Ubuntu 13.04上运行ADT时遇到了同样的错误。
I found this relevant bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776 我发现了这个相关的错误报告: https//bugs.eclipse.org/bugs/show_bug.cgi?id = 404776
And a workaround as posted in the bug report: Add 并在错误报告中发布了一个解决方法:添加

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

to your eclipse.ini 到你的eclipse.ini
It worked for me, I hope it solves the problem for you as well. 它对我有用,我希望它也能解决你的问题。

I am running eclipse luna on Ubuntu 12.04 and facing the same problem. 我在Ubuntu 12.04上运行eclipse luna并面临同样的问题。 I resolved it by adding the following line in eclipse.ini file as other options didn't work for me. 我通过在eclipse.ini文件中添加以下行来解决它,因为其他选项对我不起作用。

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

Hope it helps! 希望能帮助到你!

It appears to be an Ubuntu / GTK themes problem. 它似乎是一个Ubuntu / GTK主题问题。 According to this page on "Ubuntu Technical", it is caused by a missing GTK "theme engine" package. 根据“Ubuntu Technical” 这个页面 ,它是由缺少GTK“主题引擎”包引起的。 The fix is to identify the specific GTK theme engine package for the "mist" theme ... or just install theme engines by installing the package "gtk-engines" ( source ). 修复是为“雾”主题识别特定的GTK主题引擎包...或者通过安装包“gtk-engines”( )来安装主题引擎。

请注意, https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776已得到修复,因此避免此崩溃的最佳方法是使用Eclipse 4.3.2或更新版本(如果可以)。

对我来说这是这个bug的问题,解决方法是更改​​GTK主题(系统设置>应用程序外观> GTK)。

在我的例子中,通过在eclipse.ini的末尾添加以下内容来解决问题

org.eclipse.swt.browser.DefaultType=mozilla

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM