简体   繁体   English

崩溃后无法重启eclipse

[英]Can't restart eclipse after crash

At some point my eclipse crashed and ever since that moment every time i try to restart it, it fails and I get the following exception in my logs: 在某些时候我的eclipse崩溃了,从那一刻起我每次尝试重新启动它都会失败,我在日志中遇到以下异常:

Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:478)
    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:109)
    ... 22 more
Caused by: java.lang.StackOverflowError
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:86)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:98)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:98)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:98)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:98)
    at org.eclipse.core.internal.localstore.SafeChunkyInputStream.find(SafeChunkyInputStream.java:98)

I was able to workarond the problem by removing the folder .metadata/.plugins/org.eclipse.core.resources but in this way I've lost all my run history and I'd like to recover that. 我能够通过删除文件夹.metadata / .plugins / org.eclipse.core.resources来解决这个问题,但是这样我就失去了所有的运行历史,我想恢复它。 Is there any more specific file that I can remove to solve this problem? 是否有更具体的文件我可以删除来​​解决这个问题?

It turns out the problem was hidden somewhere in a *.snap file. 事实证明问题隐藏在* .snap文件中的某处。

I was able to solve the problem by running the command: 我能够通过运行命令解决问题:

 find . -name "*.snap" -exec rm -rf {} \;

within the .metadata/.plugins/org.eclipse.core.resources folder. 在.metadata / .plugins / org.eclipse.core.resources文件夹中。

Go to eclipse folder path in command prompt(shell) Run command eclipse -clean 在命令提示符(shell)中转到eclipse文件夹路径运行命令eclipse -clean

Or 要么

Delete old workbench(First copy all project present inside it). 删除旧工作台(首先复制其中的所有项目)。 Start Eclipse. 启动Eclipse。 Once it starts try to put some folders from workbench and up the eclipse. 一旦它开始尝试从工作台和日食中放置一些文件夹。 It goes successful try with next bunch. 它成功尝试下一堆。 You have to do trial and error way 你必须做试验和错误的方式

删除工作区目录中的锁定文件.metadata/.lock对我来说.metadata/.lock用。

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

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