Ubuntu 14.04上Eclipse崩溃了

10

我在Ubuntu 13.10上使用Google Android IDE ADT-Eclipse, 一切正常。但当我升级到Ubuntu 14.04后,当Eclipse联想到方法等时会崩溃,日志如下:

谁能帮我?谢谢!

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f3d9fbaa685, pid=29310, tid=139905366640384
#
# JRE version: 7.0_15-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libwebkitgtk-1.0.so.0+0x407685]  webkitWebViewRegisterForIconNotification+0x95
#
# 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 (0x00007f3e38009800):  JavaThread "main" [_thread_in_native, id=29318, stack(0x00007f3e419e4000,0x00007f3e41ae5000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000005f38

Registers:
RAX=0x00007f3e41ae23e0, RBX=0x00007f3e3a5fb330, RCX=0x00007f3e2e6f7f00, RDX=0x00007f3e3a5fb330
RSP=0x00007f3e41ae2348, RBP=0x00007f3e3a5c8db0, RSI=0x00007f3d9fb82e50, RDI=0x0000000000005ec8
R8 =0x00007f3e382879e0, R9 =0x0000000000000020, R10=0x0000000000000000, R11=0x0000000000000033
R12=0x00007f3e2e9ae940, R13=0x00007f3e382a1200, R14=0x00007f3e3a4178b0, R15=0x00007f3e3a5c8db0
RIP=0x00007f3d9fbaa685, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

为什么问题中提到的是ubuntu-13.10,但标记为ubuntu-14.04 - Chandrayya G K
现在的Ubuntu版本是14.04。在升级之前,它是13.10版本。错误发生在14.04版本。 - perry
3个回答

23

我做了,但是没有用。 - perry
将上述行添加到eclipse.ini文件中,而不是configuration/config.ini文件。 - williamj949
4
将这段文字添加到config.init文件中似乎是正确的答案;在Ubuntu 14上,Eclipse每5分钟就会崩溃,现在已经无故障运行1小时了,看起来这是个好方法!谢谢! - xtof54
这对我来说真的很有效。如果我将设置放在eclipse.ini中,只有在从cmd行启动时才能起作用。但是当从Ubuntu启动器启动Eclipse时仍然会崩溃。那太糟糕了。有了这个解决方案,每当自动完成弹出时,我都可以从启动器启动Eclipse而不崩溃。非常感谢!顺便说一句,我正在使用最新的ADT Bundle! - cwhsu
如果我卸载了Mozilla Firefox并使用Opera作为默认浏览器,那么我应该使用相同的代码吗? - Tomasz Mularczyk

5

我有相同的问题已经几周了。将以下行添加到eclipse.ini文件中解决了我的问题。试试看,希望能帮助到你。

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

1

如果您正在使用1.7版本的Java,请确认:

项目->属性->Java编译器->编译器兼容级别为1.7,并且:

SET -Dosgi.requiredJavaVersion=1.7

ECLIPSE.INI文件中。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接