Java 为什么我的 Eclipse Indigo 在使用 Oracle JDK 64 位的 Ubuntu 13.04 上崩溃?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16383992/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why does my Eclipse Indigo crash on Ubuntu 13.04 with Oracle JDK 64bit?
提问by vikkyhacks
I installed jdk and eclipse on to Ubuntu 13.04. 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. I had this problem with Juno and Ubuntu 12.04, but when I upgraded from Juno to Indigo, it was fine. But now after using Indigo and Ubuntu 13.04 it's all messed up. Even Juno won't work with Ubuntu 13.04, I need help. I need to get eclipse working. I just am ready to install/remove anything to get Eclipse working again.
我在 Ubuntu 13.04 上安装了 jdk 和 eclipse。它一直保持打开状态,直到我创建一个项目并键入一些基本内容,但在一分钟内,当我单击 javadoc 或 Ctrl+Space 之类的某个地方时,它会立即崩溃并显示以下消息。我在使用 Juno 和 Ubuntu 12.04 时遇到了这个问题,但是当我从 Juno 升级到 Indigo 时,一切正常。但是现在在使用 Indigo 和 Ubuntu 13.04 之后,一切都搞砸了。即使 Juno 也不能与 Ubuntu 13.04 一起使用,我需要帮助。我需要让日食工作。我准备安装/删除任何东西以使 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生成的日志
采纳答案by user2055996
I had the same error running ADT on Ubuntu 13.04 with Gnome Shell 3.8.
I found this relevant bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776
And a workaround as posted in the bug report:
Add
我在使用 Gnome Shell 3.8 的 Ubuntu 13.04 上运行 ADT 时遇到了同样的错误。
我发现了这个相关的错误报告:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=404776
以及错误报告中发布的解决方法:添加
-Dorg.eclipse.swt.browser.DefaultType=mozilla
to your eclipse.ini
It worked for me, I hope it solves the problem for you as well.
对你的eclipse.ini
它对我有用,我希望它也能解决你的问题。
回答by Stephen C
It appears to be an Ubuntu / GTK themes problem. According to this pageon "Ubuntu Technical", it is caused by a missing GTK "theme engine" package. 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).
这似乎是一个 Ubuntu / GTK 主题问题。根据“Ubuntu Technical”上的这个页面,它是由缺少 GTK“主题引擎”包引起的。修复是为“mist”主题识别特定的 GTK 主题引擎包……或者只是通过安装包“gtk-engines”(源代码)来安装主题引擎。
回答by h-rai
I am running eclipse luna on Ubuntu 12.04 and facing the same problem. I resolved it by adding the following line in eclipse.ini file as other options didn't work for me.
我在 Ubuntu 12.04 上运行 eclipse luna 并面临同样的问题。我通过在 eclipse.ini 文件中添加以下行来解决它,因为其他选项对我不起作用。
-Dorg.jboss.tools.vpe.loadxulrunner=false
Hope it helps!
希望能帮助到你!
回答by Grant Gayed
Note that https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776has been fixed, so the best way of avoiding this crash is to use Eclipse 4.3.2 or newer if you can.
请注意,https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776已修复,因此避免此崩溃的最佳方法是尽可能使用 Eclipse 4.3.2 或更新版本。
回答by Adrian Ber
回答by Ongati Felix
In my case , the problem was solved by adding the following to the end of eclipse.ini
就我而言,问题是通过在 eclipse.ini 的末尾添加以下内容来解决的
org.eclipse.swt.browser.DefaultType=mozilla