简体   繁体   English

Eclipse(Android Bundle)崩溃

[英]Eclipse(Android Bundle) Crashing

I recently upgraded to Ubuntu 14.04. 我最近升级到Ubuntu 14.04。 Since then Eclipse has been crashing. 从那以后,Eclipse一直在崩溃。 The message is 信息是

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x734be86d, pid=7930, tid=3076015872
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) Client VM (25.5-b02 mixed mode linux-x86 )
# Problematic frame:
# C  [libsoup-2.4.so.1+0x5486d]  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:
# /home/funcoding/Android Development/adt-bundle-linux-x86-20131030/eclipse/hs_err_pid7930.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

I also tried adding -Dorg.eclipse.swt.browser.DefaultType=mozilla" to eclipse.ini 我也尝试将-Dorg.eclipse.swt.browser.DefaultType=mozilla"添加到eclipse.ini

Update: I tried many things but keeps on crashing unexpectedly. 更新:我尝试了很多东西,但意外地继续崩溃。 Finally I have decided to stick with Android Studio(Running smoothly as of now). 最后,我决定坚持使用Android Studio(截至目前正在顺利运行)。

This is just a temporary fix, and I am sure it won't be selected as an answer, but I am putting this here so that anyone with this problem can at least continue to use eclipse until a better solution is found. 这只是一个临时修复,我相信它不会被选为答案,但我把它放在这里,以便任何有此问题的人至少可以继续使用eclipse,直到找到更好的解决方案。

Tool tips appear to be causing the problem so I disabled them. 工具提示似乎导致问题所以我禁用了它们。 I am able to continue programming and I haven't had it crash on me again (yet). 我能够继续编程,我还没有再次崩溃(还)。

To disable tool tips go to Windows>Preferences>Java>Editor>Hovers and deselect all of the text hover key modifier preferences. 要禁用工具提示,请转到Windows>首选项> Java>编辑器>悬停,然后取消选择所有文本悬停键修改器首选项。

I hope this helps. 我希望这有帮助。

edit: 编辑:

It also crashes when eclipse tries to content assist users. 当eclipse尝试内容辅助用户时,它也会崩溃。 To disable this go to Windows>Preferences>Java>Editor>Content Assist. 要禁用此功能,请转到Windows>首选项> Java>编辑器>内容辅助。 Scroll down to Auto Activation and disable auto activation 向下滚动到“自动激活”并禁用自动激活

This bug has been reported here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776 此错误已在此处报告: https//bugs.eclipse.org/bugs/show_bug.cgi?id = 404776

Fix described in comments that works for me too is to add this line at the end of your eclipse.ini file 在对我有用的注释中描述的修复是在eclipse.ini文件的末尾添加此行

-Dorg.eclipse.swt.browser.DefaultType=mozilla -Dorg.eclipse.swt.browser.DefaultType = Mozilla浏览器

I am running Ubuntu 14.04 and was getting this with the Android ADT bundle of eclipse. 我正在运行Ubuntu 14.04并且正在使用Android ADT捆绑的eclipse。 Installing eclipse via the Ubuntu Software Center and then installing ADT via the directions linked below worked for me. 通过Ubuntu软件中心安装eclipse,然后通过下面链接的方向安装ADT对我有用。

http://developer.android.com/sdk/installing/installing-adt.html http://developer.android.com/sdk/installing/installing-adt.html

this is probably not the smartest solution but it definitely solved my problems: 这可能不是最聪明的解决方案,但它确实解决了我的问题:

after playing with eclipse.ini parameters I asked to a friend of mine to give me his eclipse.ini based on Kepler and I found out that some packages invoked in the startup were newer than the ones that come with the ADT bundle. 在玩了eclipse.ini参数后,我问我的一个朋友给我他的基于Kepler的eclipse.ini,我发现在启动时调用的一些软件包比ADT软件包附带的软件包更新。

So I: 所以我:

1) installed a fresh copy of Kepler 2) used the Android update site to add the android framework 3) after rebooting it asked me to update the Android SDK 1)安装了Kepler的新副本2)使用Android更新站点添加android框架3)重新启动后它要求我更新Android SDK

So far I didn't have any crash (autocompletion etc.) so it seems it solved the problem... 到目前为止,我没有任何崩溃(自动完成等)所以它似乎解决了问题...

hope that helps 希望有所帮助

Luca 卢卡

You can reinstall eclipse. 你可以重新安装eclipse。

I had got this problem after upgrading to 14.04. 升级到14.04后我遇到了这个问题。 I downloaded the latest JRE, it didn't work. 我下载了最新的JRE,它没用。 Then I got the latest eclipse and now it works. 然后我得到了最新的日食,现在它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM