eclipse 如何诊断eclipse崩溃?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1192672/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to diagnose eclipse crashes?
提问by okutane
OMG, eclipse (it's Gallileo, but with previous versions I also had such problems) crashed again, silently as always. That can happen one time per week, but this is really annoying. All I have now is a crash log. Are there any ways of discovering the true reason of these crashes?
天哪,eclipse(它是 Gallileo,但在以前的版本中我也遇到过这样的问题)再次崩溃,一如既往地无声无息。这可能每周发生一次,但这真的很烦人。我现在只有一个崩溃日志。有没有办法找出这些崩溃的真正原因?
Header of crash log, can't see anything useful:
崩溃日志的标题,看不到任何有用的东西:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d80f8d4, pid=1388, tid=3180
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode)
# Problematic frame:
# V [jvm.dll+0xcf8d4]
#
回答by VonC
For Galileo, I would recommend trying to launch it with the most recent JVM possible;
对于 Galileo,我建议尝试使用最新的 JVM 启动它;
That does not mean you have to compile your projects with that JDK: you can declare as many JDK you want within your eclipse session.
这并不意味着您必须使用该 JDK 编译您的项目:您可以在 eclipse 会话中声明任意数量的 JDK。
(source: benmccann.com)
(来源: benmccann.com)
(although this picture shows jdk1.5, you can launch eclipse with any other JVM)
(虽然这张图显示的是jdk1.5,但是你可以用任何其他JVM启动eclipse)
See this eclipse.inifor more details.
有关更多详细信息,请参阅此eclipse.ini。
As this recent thread illustrates, that can happens with an "old" eclipse.ini, so it is worth checking and updating the ini file.
正如这个最近的线程所说明的,这可能发生在“旧”的 eclipse.ini 中,因此值得检查和更新 ini 文件。
回答by Fabian Steeg
I used to have these kind of silent crashes on 64-bit Linux. For me it was fine after adding these lines to my eclipse.ini (see corresponding Eclipseand Sunbug entries):
我曾经在 64 位 Linux 上遇到过这种无声的崩溃。对我来说,将这些行添加到我的 eclipse.ini 后就很好(请参阅相应的Eclipse和Sun错误条目):
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>
回答by Aaron Digulla
This is a bug in the Sun's Java VM which Eclipse triggers. These are notoriously hard to figure out. I suggest this approach:
这是 Eclipse 触发的 Sun Java VM 中的一个错误。众所周知,这些很难弄清楚。我建议这种方法:
- Install a newer VM (1.5.0 16or 1.6)
- Disable all plugins you've installed
- I had a similar issue with Groovy on Linux. I don't remember my solution but try a different version of Groovy in this case.
- 安装更新的 VM(1.5.0 16或 1.6)
- 禁用您已安装的所有插件
- 我在 Linux 上使用 Groovy 时遇到了类似的问题。我不记得我的解决方案,但在这种情况下尝试不同版本的 Groovy。