Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361557 - Eclipse workspace corrupted after abnormal termination of app
Summary: Eclipse workspace corrupted after abnormal termination of app
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 350492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-20 11:16 EDT by Eric Mielke CLA
Modified: 2020-09-19 06:14 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Mielke CLA 2011-10-20 11:16:23 EDT
Build Identifier: 20110218-0911

This is the info necessary to look into a bug similar to Bug 350492. 

Eclipse won't open the workspace after an abnormal termination:

java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:116)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (66).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:466)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 14 more
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:806)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
	... 23 more
Caused by: org.eclipse.core.internal.resources.ResourceException: Problems reading workspace tree.
	at org.eclipse.core.internal.resources.WorkspaceTreeReader_1.readTree(WorkspaceTreeReader_1.java:172)
	at org.eclipse.core.internal.resources.SaveManager.restoreTree(SaveManager.java:978)
	at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:665)
	at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1503)
	at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2134)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1883)
	at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:406)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
	... 29 more
Caused by: java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at java.io.DataInputStream.readUTF(Unknown Source)
	at java.io.DataInputStream.readUTF(Unknown Source)
	at org.eclipse.core.internal.dtree.DataTreeReader.readNode(DataTreeReader.java:63)
	at org.eclipse.core.internal.dtree.DataTreeReader.readTree(DataTreeReader.java:147)
	at org.eclipse.core.internal.watson.ElementTreeReaderImpl_1.readDelta(ElementTreeReaderImpl_1.java:43)
	at org.eclipse.core.internal.watson.ElementTreeReader.readDelta(ElementTreeReader.java:86)
	at org.eclipse.core.internal.watson.ElementTreeReaderImpl_1.readDeltaChain(ElementTreeReaderImpl_1.java:88)
	at org.eclipse.core.internal.watson.ElementTreeReader.readDeltaChain(ElementTreeReader.java:110)
	at org.eclipse.core.internal.resources.WorkspaceTreeReader_1.readTrees(WorkspaceTreeReader_1.java:232)
	at org.eclipse.core.internal.resources.WorkspaceTreeReader_1.readTree(WorkspaceTreeReader_1.java:166)
	... 38 more

Reproducible: Always

Steps to Reproduce:
1.Eclipse terminates when saving workspace settings due to low memory.
2.Reopen Eclipse 
3.Error occurs
Comment 1 Szymon Ptaszkiewicz CLA 2011-11-23 05:37:11 EST
We may not be able to restore the workspace if it crashed during save, but we may try to overcome the problem. If we find a corrupted file, we may report an error and allow the workspace to start. The user would probably need to re-import all projects but it is better than leaving the workspace in unusable state.

Eric, could you please zip your workspace and attach it to this bug so that we can investigate how much information we can restore?
Comment 2 Szymon Ptaszkiewicz CLA 2011-11-23 05:42:37 EST
*** Bug 350492 has been marked as a duplicate of this bug. ***
Comment 3 Martin Meyer CLA 2014-06-13 15:12:51 EDT
I've just encountered this problem. I'm going to delete the resources directory as suggested, but I've saved a copy in case anyone wants to analyze it. I'd rather not attach it to the bug directly (too hard to verify it doesn't contain sensitive info), but I'm willing to email it to a dev if one is interested in taking a look at it. The gzip archive is 2.7MB.
Comment 4 Eclipse Genie CLA 2020-04-02 08:54:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 hossein mahdavipour CLA 2020-09-19 06:14:37 EDT
i was updating from 2020-06 to 2020-09 and i stoped the update and close eclipse then it does not opens and i get error with one plugin after i remove plugin from .p2 direcory and configs i get this error