Eclipse自动补全编辑时出现闪退

来源:互联网 发布:天天有喜知画心脏 编辑:程序博客网 时间:2024/04/28 17:31

在使用Eclipse的过程中,配置自动补全功能,在编辑文件自动补全时,Eclipse出现闪退。

会在Eclipse目录下生成一个hs_err_pid*.log的文件,错误日志类似如下:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fee33dac2a1, pid=6192, tid=140664424732416
#
# JRE version: OpenJDK Runtime Environment (7.0_101) (build 1.7.0_101-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.95-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.6
# Distribution: Ubuntu 14.04 LTS, package 7u101-2.6.6-0ubuntu0.14.04.1
# Problematic frame:
# C  [libsoup-2.4.so.1+0x6c2a1]  soup_session_feature_detach+0x11
#
# 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 include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# 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 (0x00007feef400a800):  JavaThread "main" [_thread_in_native, id=6193, stack(0x00007feefd019000,0x00007feefd11a000)]

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

Registers:
RAX=0x00007feef56fec00, RBX=0x0000000000000000, RCX=0x0000000000000001, RDX=0x00007feefd13f968
RSP=0x00007feefd117380, RBP=0x00007feef5ce96a0, RSI=0x00007feef5ce96a0, RDI=0x0000000000000000
R8 =0x0000000000000000, R9 =0x00007feef58ec150, R10=0x00007feefd116f60, R11=0x00007feefd117060
R12=0x0000000000000000, R13=0x00000000b48e3b10, R14=0x00007feefd117460, R15=0x00007feef400a800
RIP=0x00007fee33dac2a1, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

这种问题简直莫名其妙,不知道啥原因。
后来通过网上各种查找资料,找到一种解决方法。
修改eclipse下的eclipse.ini文件,修改后我的文件如下;
//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
com.android.ide.eclipse.adt.package.adtproduct
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms512m
-Xmx1024m
-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2
按照如此修改后,重启eclipse问题修复。

0 0
原创粉丝点击