Eclipse CDT崩溃了java [英] Eclipse CDT crashes java

查看:175
本文介绍了Eclipse CDT崩溃了java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了新的Eclipse CDT,添加了一个C ++项目,几分钟后eclipse坠毁了。它表示javaw.exe返回-1,Eclipse以静默方式崩溃。



.metadata / .log 文件有时不包含任何东西,有时在C / C ++索引器中包含一些Java异常,这当然不能解释沉默的崩溃。



我如何进一步调试这种现象?我不知道下一步要找什么。



我正在运行最新的稳定的Eclipse CDT(7.0.1),Windows 7 64位,最新的稳定JDK(6u24)。

解决方案

在我的机器上,Windows 7中,我有C:\Users\james\\ \\蚀。在该文件夹中,在崩溃后,我会看到诸如hs_err_pid4308.log之类的错误文件,它们有很多有用的信息。



对于我的崩溃,它导致我 https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227 我在哪里找到一个建议,将-XX:-UseCompressedOops添加到我的eclipse.ini文件的末尾。我的64位Windows 7的ini文件不崩溃的Eclipse Helios服务版本2 Build id:20110301-1815与CDT现在看起来像:

  -startup 
plugins / org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins / org.eclipse.equinox.launcher.win32.win32 .x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion = 1.5
-Xms40m
-Xmx512m
-XX:-UseCompressedOops


I downloaded fresh Eclipse CDT, added a C++ project, and after a few minutes eclipse crashed. It said "javaw.exe returned -1", and Eclipse crashes silently.

The .metadata/.log file sometimes contains nothing, and sometimes contains a few Java exception in the C/C++ indexer which certainly doesn't explain a silent crash.

How can I further debug this phenomena? I've no clue what to look for next.

I'm running the latest stable Eclipse CDT (7.0.1), with Windows 7 64bit, with the latest stable JDK (6u24).

解决方案

On my machine, Windows 7, I have Eclipse in C:\Users\james\eclipse. In that folder, after crashes, I see error files like "hs_err_pid4308.log" that have lots of useful information.

For my crashes, it lead me to https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227 where I found a suggestion to add -XX:-UseCompressedOops to the end of my eclipse.ini file. The ini file for my 64 bit Windows 7 non-crashing Eclipse Helios Service Release 2 Build id: 20110301-1815 with CDT now looks like:

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:-UseCompressedOops

这篇关于Eclipse CDT崩溃了java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆