我使用的是 Ubuntu 13.04 版。
eclipse 朱诺号
和
java-7-openjdk-amd64
在那之后我做了一个“调试”他关闭,我打开,它加载并在它再次打开时关闭,每次我尝试“调试”它都会这样做。会不会是硬件问题?
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc6e05396d5, pid=5236, tid=140494709798656
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libwebkitgtk-1.0.so.0+0x4246d5] webkitWebViewRegisterForIconNotification+0xb5
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# 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.
#
--------------- T H R E A D ---------------
Current thread (0x00007fc770009800): JavaThread "main" [_thread_in_native, id=5237, stack(0x00007fc779353000,0x00007fc779454000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000001c1c
Registers:
RAX=0x0000000000000000, RBX=0x00007fc77037ba10, RCX=0x00007fc764afeb00, RDX=0x00007fc77037ba10
RSP=0x00007fc779451218, RBP=0x00007fc770e1f0c0, RSI=0x00007fc6e0512180, RDI=0x0000000000001bac
R8 =0x00007fc7702ce530, R9 =0x0000000000000020, R10=0x0000000000000000, R11=0x0000000000000028
R12=0x00007fc764dafa00, R13=0x00007fc7702f0120, R14=0x00007fc77026f7b0, R15=0x00007fc770e1f0c0
RIP=0x00007fc6e05396d5, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
Top of Stack: (sp=0x00007fc779451218)
0x00007fc779451218: 00007fc6e0512108 0000000000000001
0x00007fc779451228: 0000000000000004 00007fc770e1f0c0
0x00007fc779451238: 00007fc6e0512189 0000000000000004
0x00007fc779451248: 00007fc764afeb1b 00007fc764dafa00
0x00007fc779451258: 0000000000000004 00007fc7703aba80
...
以及 eclipse ini 的配置:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=512m
-Xms40m
-Xmx1024m
最佳答案
这是一个与 Eclipse 和 Webkit 相关的错误。 ( Eclipse Official Bug Database )
一种解决方法是告诉 Eclipse 不要使用 Webkit 而是使用 Mozilla 的 Gecko。
在 eclipse.ini 的末尾添加这两行:
-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
默认情况下,此解决方法会大大降低 JavaDoc 悬停 View 的功能。 可以通过安装名为“XULRunner”的库来恢复丢失的功能。 根据SWT FAQ ,Eclipse 4.x可以使用的XULRunner最新版本是10.x。我们可以从Mozilla's FTP site获取.
以下命令将下载并解压 XULRunner 的 64 位版本:
wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-x86_64.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-x86_64.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/
如果您使用的是 32 位版本的 Linux,请下载并解压 32 位版本的 XULRunner:
wget https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0/runtimes/xulrunner-10.0.en-US.linux-i686.tar.bz2
tar xjvf xulrunner-10.0.en-US.linux-i686.tar.bz2
sudo cp -R ./xulrunner/ /usr/lib/
Aleksandr Zhuikov 在他的博客中有另一个解决方法: http://aleksz-programming.blogspot.com/2013/03/eclipse-and-webkit-on-ubuntu-64.html
他提供了一个修改版本的 libwebkitgtk 包来解决这个问题。 不幸的是,他的软件包现在无法通过正常方式安装在更新的系统上,因为它破坏了其他库,例如“libjavascriptcoregtk”。
但是,可以手动解压他的包并直接替换现有的 webkit 库:
dpkg -x libwebkitgtk-1.0-0_1.10.0-0ubuntu1.1_amd64.deb ./ sudo cp ./usr/lib/libwebkitgtk-1.0.so.0.17.3 /usr/lib/libwebkitgtk-1.0.so.0.17.3 sudo ln -f -s /usr/lib/libwebkitgtk-1.0.so.0.17.3 /usr/lib/libwebkitgtk-1.0.so.0
显然,这可能会在未来破坏其他基于 Webkit 的应用程序,所以我们希望 Eclipse 在更多问题发生之前解决这个问题。
关于java - Eclipse 全天关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19137348/