请教怎么治疗我总是闪退的 eclipse

** 我用的是官方最新的 ADT 和自带的 openjdk, 打开选个工程目录就闪退了,只能用默认的 workspace,打开后用一会,或者 run 就闪退。**
** 怎么办啊! **

在终端中打开 eclipse,等它崩溃,看终端里的输出是啥

下面是使用 workspace 下项目目录时自动闪退的反馈,是要安装 jdk?

#                                                                                                                                                                       
# A fatal error has been detected by the Java Runtime Environment:                                                                                                      
#                                                                                                                                                                       
#  SIGSEGV (0xb) at pc=0x63744a8e, pid=2277, tid=3075520256                                                                                                             
#                                                                                                                                                                       
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)                                                                                            
# Java VM: OpenJDK Client VM (24.45-b08 mixed mode linux-x86 )                                                                                                          
# Problematic frame:                                                                                                                                                    
# C  [libgobject-2.0.so.0+0x17a8e]  g_object_get_qdata+0x1e                                                                                                             
#                                                                                                                                                                       
# 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:
# /tmp/jvm-2277/hs_error.log
#
# 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.
#
已放弃
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-i386)
OpenJDK Server VM (build 24.45-b08, mixed mode)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x53dec57d, pid=2484, tid=3075651328
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)
# Java VM: OpenJDK Client VM (24.45-b08 mixed mode linux-x86 )
# Problematic frame:
# C  [libsoup-2.4.so.1+0x5857d]  soup_session_feature_detach+0x1d
#
# 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:
# /tmp/jvm-2484/hs_error.log
#
# 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.
#
已放弃

里面说 try “ulimit -c unlimited” before starting Java again,ulimit -c unlimited 是什么东西?

java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-i386)
OpenJDK Server VM (build 24.45-b08, mixed mode)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x53dec57d, pid=2484, tid=3075651328
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)
# Java VM: OpenJDK Client VM (24.45-b08 mixed mode linux-x86 )
# Problematic frame:
# C  [libsoup-2.4.so.1+0x5857d]  soup_session_feature_detach+0x1d
#
# 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:
# /tmp/jvm-2484/hs_error.log
#
# 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.
#
已放弃

里面说 try “ulimit -c unlimited” before starting Java again,ulimit -c unlimited 是什么东西?

网上一搜索不就知道了?

ulimit -c unlimited 的意思是设置 core 文件最大值,单位为区块。

你在一查 eclipse set ulimit 就能够找到别人同样的问题。

类似问题:

eclipse.org/forums/index.php/t/304752/

askubuntu.com/questions/251300/opposite-command-for-ulimit-c-unlimited

bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1097078

1赞
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-i386)
OpenJDK Server VM (build 24.45-b08, mixed mode)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x53dec57d, pid=2484, tid=3075651328
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)
# Java VM: OpenJDK Client VM (24.45-b08 mixed mode linux-x86 )
# Problematic frame:
# C  [libsoup-2.4.so.1+0x5857d]  soup_session_feature_detach+0x1d
#
# 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:
# /tmp/jvm-2484/hs_error.log
#
# 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.
#
已放弃

里面说 try “ulimit -c unlimited” before starting Java again,ulimit -c unlimited 是什么东西?

网上一搜索不就知道了?

ulimit -c unlimited 的意思是设置 core 文件最大值,单位为区块。

你在一查 eclipse set ulimit 就能够找到别人同样的问题。

类似问题:

eclipse.org/forums/index.php/t/304752/

askubuntu.com/questions/251300/opposite-command-for-ulimit-c-unlimited

bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1097078
发完帖子才想起直接上网搜,问题解决了,直接用 root 打开就可以了。 :sunglasses:

又有新错误了 :joy:

ava version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (suse-24.9.1-i386)
OpenJDK Server VM (build 24.45-b08, mixed mode)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x4ed0057d, pid=4858, tid=3076245248
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)
# Java VM: OpenJDK Client VM (24.45-b08 mixed mode linux-x86 )
# Problematic frame:
# C [libsoup-2.4.so.1+0x5857d] soup_session_feature_detach+0x1d
#
# Core dump written. Default location: /root/core or core.4858
#
# An error report file with more information is saved as:
# /tmp/jvm-4858/hs_error.log
#
# 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.
#
Aborted (core dumped)

请大家看看!/tmp/jvm-5550/hs_error.log 文件 root 也打不开?

好像是同样的问题啊。。

去 eclipse 的安装或者配置目录下,找到 eclipse.ini 这个文件,在这个文件的最后添加下面一行

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

问题已经更新了!

十分感谢你的帮助,不多还是不行啊,我后来看网上说可能是 32 位的问题,就买了 2 根内存条,把系统换成了 64 位,结果现在还是闪退,受不了了!

我当时也出现了这样的问题,就是这样解决的,我的系统 openSUSE13.1 32 位 kde,或者你到系统设置 -> 应用程序外观 ->GTK,把 GTK2 的主题设置成"Raleigh" 试试。
参考 forums.opensuse.org/english/get-technical-help-here/applications/492348-eclipse-juno-crashs-opensuse-13-1-a-3.html