| Summary: | Unrecoverable crash on Linux-GTK | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Chen Shaopeng <chen_shaopeng> | ||||||
| Component: | Resources | Assignee: | Platform-Resources-Inbox <platform-resources-inbox> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P3 | CC: | carsten.pfeiffer, cwoelk, emil.einarsson, hauser, john.arthorne, krzysztof.daniel, Szymon.Brandys | ||||||
| Version: | 2.1 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux-GTK | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chen Shaopeng
I had several times also this problem on W2K with JDK 1.4. I have detected that it is something with the .snap-file in the directory <tt>.metadata\.plugins\org.eclipse.core.resources</tt>. Removing this, Eclipse starts again, but with resetted settings: No Projects in Workspace, No run targets! All the work must be done again! I think it occurs if Eclipse internally was not able to store a "stamp" and the file has changed and does not compare to the old stamp. To get around this bug I backup my workspace every 2 hours, because I poorly found no solution to "repair" the Workspace. Can you both tell me what build of Eclipse you were using (available from Help > About). In release 2.1 something like this could happen if you got an OutOfMemoryError during shutdown. If this is the case, you can work around it by supplying more heap space like this: "eclipse -vmargs -Xmx 265M". Also, is there any information in your log file about why the crash occurred? Please attach complete .log if still available (you can zip it if it's big). The .log file has rather the same entries than the .log of Chen. Only other files are causing the exceptions (one session see below, it is always the same trace). I added now the -Xmx-parameter although I have 0,5GB Ram. My current version is: Version: 2.1.1 Build id: 200306112021 !SESSION Jun 16, 2003 10:07:15.386 --------------------------------------------- java.version=1.3.1 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86 -vm C:\j2sdk1.4.0_01\jre\bin -vmargs -DproxySet=true -data h:" -install file:D:/Program Files/eclipse/ !ENTRY org.eclipse.core.runtime 4 2 Jun 16, 2003 10:07:15.386 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". !STACK 0 org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element /CLBGclassificationbags-RM/misc/GUIuserinterface/rbundles/ not found. at org.eclipse.core.internal.dtree.AbstractDataTree.handleNotFound(AbstractDataTree.java:243) at org.eclipse.core.internal.dtree.DeltaDataTree.getData(DeltaDataTree.java:608) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:54) at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:56) at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:56) at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:56) at org.eclipse.core.internal.dtree.NoDataDeltaNode.asBackwardDelta(NoDataDeltaNode.java:56) at org.eclipse.core.internal.dtree.DataDeltaNode.asBackwardDelta(DataDeltaNode.java:51) at org.eclipse.core.internal.dtree.DeltaDataTree.asBackwardDelta(DeltaDataTree.java:95) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:819) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:818) at org.eclipse.core.internal.dtree.DeltaDataTree.reroot(DeltaDataTree.java:794) at org.eclipse.core.internal.watson.ElementTree.immutable(ElementTree.java:698) at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:511) at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1033) at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1734) at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1537) at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:268) at org.eclipse.core.internal.plugins.PluginDescriptor$1.run(PluginDescriptor.java:736) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006) at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:748) at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188) at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112) at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876) at org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167) at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103) at org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) !ENTRY org.eclipse.core.runtime 4 2 Jun 16, 2003 10:07:15.495 !MESSAGE Plug-in "org.eclipse.ui" was unable to instantiate class "org.eclipse.ui.internal.Workbench". !STACK 0 org.eclipse.core.internal.boot.DelegatingLoaderException: org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "org.eclipse.core.resources". at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754) at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188) at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112) at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876) at org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167) at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103) at org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) !ENTRY org.eclipse.core.runtime 4 2 Jun 16, 2003 10:07:15.511 !MESSAGE Plug-in "org.eclipse.ui" was unable to instantiate class "org.eclipse.ui.internal.Workbench". !STACK 0 org.eclipse.core.internal.boot.DelegatingLoaderException: org.eclipse.core.runtime.CoreException: Problems encountered starting up plug-in: "org.eclipse.core.resources". at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:754) at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188) at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112) at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:490) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.access$0(DelegatingURLClassLoader.java:876) at org.eclipse.core.internal.boot.DelegatingURLClassLoader$DelegateLoader.loadClass(DelegatingURLClassLoader.java:90) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassPrerequisites(DelegatingURLClassLoader.java:554) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:890) at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:138) at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167) at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103) at org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) !SESSION ---------------------------------------------------------------------- !ENTRY org.eclipse.core.launcher 4 0 Jun 16, 2003 10:07:15.542 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException: Application not found: org.eclipse.ui.workbench. at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:856) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) Stephan, thank you for including a stack trace. However, these traces only show the failure to startup *after* the crash. What I'm looking for is evidence about what *caused* the crash. Is there any information in the log file for the session in which the crash occurred? I.e., at some point you must have been using Eclipse, and it ended abnormally due to some kind of error. That's the error I'm trying to track down. About the VM args: with some VMs, it doesn't matter how much RAM your machine actually have. When they reach their default maximum heap size they start to throw OutOfMemoryErrors even if there is physical memory left on the machine. Finally, I realize it is not much consolation, but we have released a tool that helps you recover from corrupt workspaces. It is available here (see the spies/tools section): http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/dev.html Sorry John, there is no previous log. But next time the workspace is corrupt, I try your tool. Probably this tool could be included in eclipe and ask at corrupt workspace for repair automatically? Created attachment 5629 [details]
Another user's log file
An interesting clue... another user reported that they got this same message when they accidently opened two Eclipse instances on the same workspace. This may be the cause of the error, if one Eclipse writes a snapshot based on a different saved state from the other instance. Here is a possible scenario: - Instance 1 starts up, loading saved tree "1" from disk - Instance 2 starts up, loading saved tree "1" from disk - Instance 2 shuts down, writing saved tree "2" to disk - Instance 1 writes an incremental snapshot based on tree "1". - Instance 1 crashes - On next startup, it will try to apply the snapshot on tree "1" to the tree file from state "2". This could very well cause the problem... Created attachment 5759 [details]
Log with previous OutOfMemory
Hi John,
I ran into a similar problem. Please see my attached logfile, with the entries
from today and the last previous entry from begin of august which indicates an
OutOfMemoryException.
I'm using Version: 2.1.1 Build id: 200306271545
Hope that helps.
Regards
Christoph
We've made some changes in this area and haven't seen this problem in a while. I'm closing for now but please re-open if you still have problems using the latest builds. Exact same problem occured using 3.1-M4 build: Linux 2.6 GTK Java 1.5 build 1.5.0-b64 1. Coding in debug mode. Save -> Computer freezes. Stays frozen for a while 2. Log in from other place, killall java 3. Unable to start with the same messages as above. Going for a clean CVS checkout and manual merge of the lost changes... Tedious to say the least! Oh, by the way, the workspace repair tool does absolutly nothing. Just shows me the eclipse splash, then exits (the splash does not go away however...). Also tried to run eclipse with the -clean option. Are there _any_ other known workarounds? It would be nice to keep some of the settings... Can't eclipse be forced to somehow drop the cached resource tree, or whatever it is that keeps failing, and rebuild it? Cheers, Emil I've got a similar problem -- I had a complete system lockup including filesystem corruption. After repairing the filesystem eclipse wouldn't start up anymore. Log message is below. I tried the Workspace Rebuilder from http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-core-home/downloads/tools/readme_restorer_1.0.0.html but it didn't help. Only after removing the workspace/.metadata/.plugins/org.eclipse.core.resources/.snap file, eclipse started up again -- albeit without any projects. !SESSION Feb 24, 2005 20:09:43.786 --------------------------------------------- eclipse.buildId=I200406251208 java.version=1.4.2_07 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE !ENTRY org.eclipse.osgi Feb 24, 2005 20:09:43.787 !MESSAGE An error occured while automatically activating bundle org.eclipse.core.resources (46). !STACK 0 org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle org.eclipse.core.resources. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:975) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293) at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371) at org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336) at org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26) at org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33) at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155) at org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165) at org.eclipse.ui.internal.Workbench.init(Workbench.java:789) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:183) at org.eclipse.core.launcher.Main.run(Main.java:644) at org.eclipse.core.launcher.Main.main(Main.java:628) Caused by: org.eclipse.core.internal.resources.ResourceException: The resource tree is locked for modifications. at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93) at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628) at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298) at org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324) at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954) ... 30 more Root exception: org.eclipse.core.internal.resources.ResourceException: The resource tree is locked for modifications. at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93) at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628) at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298) at org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324) at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293) at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371) at org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336) at org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26) at org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33) at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155) at org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165) at org.eclipse.ui.internal.Workbench.init(Workbench.java:789) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:183) at org.eclipse.core.launcher.Main.run(Main.java:644) at org.eclipse.core.launcher.Main.main(Main.java:628) !ENTRY org.eclipse.osgi Feb 24, 2005 20:09:43.854 !MESSAGE Application error !STACK 1 java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject at org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26) at org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33) at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155) at org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165) at org.eclipse.ui.internal.Workbench.init(Workbench.java:789) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:183) at org.eclipse.core.launcher.Main.run(Main.java:644) at org.eclipse.core.launcher.Main.main(Main.java:628) If this happens again, a stack trace *before* killing the frozen application is critical for us to be able to figure out what is going wrong. If/when it freezes again, find out the pid of the Java process, and run "kill -3 <pid>". This will generate a VM dump file. Attach that dump file to this bug report. (In reply to comment #12) > If this happens again, a stack trace *before* killing the frozen application is > critical for us to be able to figure out what is going wrong. If/when it In my case, it wasn't only eclipse that froze, it was the entire box. Not even Magic-Sysreq worked. Thanks for the hint, though, I will follow it once it happens. I'm running eclipse 3.0.1 on RH AS3 Build id: 200409161125 using java version 1.4.2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled:
jitc))
Last friday I closed eclipse before leaving the office, this morning when I came
to work, I started eclipse as usual however I got a popup that pointed an error,
and that I had to check my .log file.
To make my eclipse start again I had to move
.metadata/.plugins/org.eclipse.core.resources/.snap out of the way
However, after eclipse restarted all my projects were gone and I had to import
them one by one. Luckily I did not seem to have lost any java code. But I lost
two hours finding the problem and rebuilding my workspace.
here's an extract of my .log file:
!SESSION Feb 28, 2005 12:52:40.838 ---------------------------------------------
eclipse.buildId=M200409161125
java.fullversion=J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en
!ENTRY org.eclipse.osgi Feb 28, 2005 12:52:40.840
!MESSAGE An error occured while automatically activating bundle
org.eclipse.core.resources (15).
!STACK 0
org.osgi.framework.BundleException: Exception in
org.eclipse.core.internal.compatibility.PluginActivator.start() of bundle
org.eclipse.core.resources.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:975)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: org.eclipse.core.internal.resources.ResourceException: The resource
tree is locked for modifications.
at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
at
org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
... 30 more
Root exception:
org.eclipse.core.internal.resources.ResourceException: The resource tree is
locked for modifications.
at
org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:93)
at
org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1628)
at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:298)
at
org.eclipse.core.resources.ResourcesPlugin.shutdown(ResourcesPlugin.java:324)
at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:52)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:351)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:421)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:293)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:110)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:371)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.requireClass(BundleLoader.java:336)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findRequiredClass(BundleLoader.java:914)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
!ENTRY org.eclipse.osgi Feb 28, 2005 12:52:41.42
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IProject
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterFactory.<init>(WorkbenchAdapterFactory.java:26)
at
org.eclipse.ui.internal.ide.model.WorkbenchAdapterBuilder.registerAdapters(WorkbenchAdapterBuilder.java:33)
at
org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor.initialize(IDEWorkbenchAdvisor.java:155)
at
org.eclipse.ui.application.WorkbenchAdvisor.internalBasicInitialize(WorkbenchAdvisor.java:165)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:789)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
I opened the bug for version 3.0.1 see bug #86846 (In reply to comment #15) > I opened the bug for version 3.0.1 see bug #86846 I have the same issue in eclipse 3.1 on windows XP. This is most likely due to two instances as I might have left eclipse running at my office and then ran eclipse from home over vpn to my office eclipse workspace. Re: comment 16 - note that unless you are explicitly turning file locking off (using the osgi.locking property), Eclipse prevents the execution of two instances simultaneously *on the same workspace*. "RESOLVED WORKSFORME" feels like an insult to all the users loosing hours in trying to recover their project settings after removing the .snap file - see also Bug 149121 (In reply to comment #18) > "RESOLVED WORKSFORME" feels like an insult to all the users loosing hours in > trying to recover their project settings after removing the .snap file - see > also Bug 149121 Ralf, Does it mean that you see the issue in the current Eclipse version? If not, what version do you use? This issue has been observed on Eclipse 3.4 therefore I am reopening the bug.
All stacktraces are caused by an Exception during resources startup, caused probably by either not corrupted .snap *or* by workspace changes that were made after Eclispe was shutdown.
It looks like .snap contains references to not-existing file, which may means one of the following things:
(1) .snap was altered by other Eclipse instance
I am not going to investigate this.
(2) .snap was written down before the modification occurred.
This definitely needs to be checked.
It is also important to ask if workspaces are on network drive?
And one more thing: maybe we could just collect startup exceptions and show the error dialog: Eclipse was not able to recover after crash. Following exceptions occurred: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element /com.idsignet.platform.service/bin/com/idsignet/platform/service/group/GroupServiceModel.class not found. org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element /CLBGclassificationbags-RM/misc/GUIuserinterface/rbundles/ not found. (In reply to comment #21) > Eclipse was not able to recover after crash. Following exceptions occurred: > org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element > /com.idsignet.platform.service/bin/com/idsignet/platform/service/group/GroupServiceModel.class > not found. I think that this one and bug 149121 are duplicates. This one is older, however I would mark it as a duplicate of bug 149121 and maybe bump up the severity. I would not consider it as a blocker since there is known workaround. What do you think Krzysztof? (In reply to comment #20) > It looks like .snap contains references to not-existing file, which may means > one of the following things: > (1) .snap was altered by other Eclipse instance > I am not going to investigate this. > (2) .snap was written down before the modification occurred. > This definitely needs to be checked. Does it mean that you offer your help in investigating and maybe fixing the issue? You could maybe start from looking at bug 151075, comment 6. Considering the quality of the workaround (all projects lost, need of merging everything manually) I do not think we can lower this priority a lot. I want to work on this bug and fix it if possible. (In reply to comment #23) > I want to work on this bug and fix it if possible. Thanks Krzysztof. What about marking it a duplicate of bug 149121? *** This bug has been marked as a duplicate of bug 149121 *** |