Eclipse CDT崩溃java [英] Eclipse CDT crashes java
问题描述
我下载了新鲜的Eclipse CDT,添加了一个C ++项目,几分钟后eclipse崩溃。
.metadata / .log
文件有时不包含任何内容,有时在C / C ++索引器中包含一些Java异常,这当然不能解释静默崩溃。
如何进一步调试此现象?
我运行最新稳定的Eclipse CDT(7.0.1),Windows 7 64位,最新的稳定版在我的机器上,Windows 7,我有C:\Users\james\\中的Eclipse。 \\蚀。在该文件夹中,崩溃后,我看到错误文件像hs_err_pid4308.log有很多有用的信息。
对于我的崩溃,它导致我到 https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227 我发现了一个建议添加-XX:-UseCompressedOops到我的eclipse.ini文件的结尾。我的64位Windows 7非崩溃Eclipse Helios服务版本2生成id:20110301-1815与CDT的ini文件现在看起来像:
-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屋!