简体   繁体   中英

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:

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. 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.

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.

Go to eclipse folder path in command prompt(shell) Run command eclipse -clean

Or

Delete old workbench(First copy all project present inside it). Start 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用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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