Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 89980

Summary: [ErrorHandling] Eclipse Startup Error After Opening Binary File In Editor
Product: [Eclipse Project] Platform Reporter: Jeremy Whitlock <Jeremy_Whitlock>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: akurtakov, krzysztof.daniel
Version: 3.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Jeremy Whitlock CLA 2005-04-01 11:29:15 EST
My buddy was opening a compiled C file with the CDT plugin disabled.  The 
editor began filling with the wingding looking characters then Eclipse saved 
the workspace and exited.  We reopened Eclipse and upon startup we got an error 
stating to refer to the log.  We then tried with the "-clean" flag and then 
later the "-data" flag to open a new workspace.  Opening a new workspace was 
fine but when trying to reopen the old workspace it kept failing.  Later we 
deleted the org.eclipse.core.runtime plugin metadata and then we were able to 
get back into the corrupted workspace.  I will paste the pertinent session from 
the .log for your review.  Take care, Jeremy

!SESSION Apr 01, 2005 09:07:25.589 ---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_04
java.vendor=BEA Systems, Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:25.589
!MESSAGE While loading 
class "org.eclipse.cdt.internal.core.search.processing.IndexingJob", 
thread "C/C++ Indexer" timed out waiting (5000ms) for thread "Main Thread" to 
finish starting bundle "org.eclipse.cdt.core". To avoid deadlock, thread "C/C++ 
Indexer" is proceeding 
but "org.eclipse.cdt.internal.core.search.processing.IndexingJob" may not be 
fully initialized.
!STACK 0
java.lang.Exception: Generated exception.
	at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(EclipseClassLoader.java:102)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:371)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:402)
	at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(Ljava.lang.String;Z)Ljava.lang.Class;(AbstractClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;
(Unknown Source)
	at java.lang.ClassLoader.loadClassFromNative(II)Ljava.lang.Class;
(Unknown Source)
	at jrockit.vm.RNI.getRunnableCode(I)I(Unknown Source)
	at jrockit.vm.RNI.trampoline()V(Unknown Source)
	at org.eclipse.cdt.internal.core.search.processing.JobManager.run()V
(JobManager.java:???)
	at java.lang.Thread.run()V(Unknown Source)
	at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown 
Source)

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:36.42
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(ILjava.lang.Throwable;Ljava.lang.String;)V
(SWT.java:2717)
	at org.eclipse.swt.SWT.error(ILjava.lang.Throwable;)V(SWT.java:2616)
	at org.eclipse.swt.SWT.error(I)V(SWT.java:2587)
	at org.eclipse.swt.graphics.Image.init
(Lorg.eclipse.swt.graphics.Device;Lorg.eclipse.swt.graphics.Image;Lorg.eclipse.s
wt.graphics.ImageData;)[I(Image.java:1564)
	at org.eclipse.swt.graphics.Image.init
(Lorg.eclipse.swt.graphics.Device;Lorg.eclipse.swt.graphics.Image;Lorg.eclipse.s
wt.graphics.ImageData;Lorg.eclipse.swt.graphics.ImageData;)[I(Image.java:1689)
	at org.eclipse.swt.graphics.Image.<init>
(Lorg.eclipse.swt.graphics.Device;Lorg.eclipse.swt.graphics.ImageData;Lorg.eclip
se.swt.graphics.ImageData;)V(Image.java:628)
	at org.eclipse.jface.resource.ImageDescriptor.createImage
(ZLorg.eclipse.swt.graphics.Device;)Lorg.eclipse.swt.graphics.Image;
(ImageDescriptor.java:169)
	at org.eclipse.jface.resource.ImageDescriptor.createImage(Z)
Lorg.eclipse.swt.graphics.Image;(ImageDescriptor.java:115)
	at org.eclipse.jface.resource.ImageDescriptor.createImage()
Lorg.eclipse.swt.graphics.Image;(ImageDescriptor.java:97)
	at org.eclipse.jface.action.ActionContributionItem$ImageCache.getImage
(Lorg.eclipse.jface.resource.ImageDescriptor;)Lorg.eclipse.swt.graphics.Image;
(ActionContributionItem.java:422)
	at org.eclipse.jface.action.ActionContributionItem$ImageCache.access$1
(Lorg.eclipse.jface.action.ActionContributionItem$ImageCache;Lorg.eclipse.jface.
resource.ImageDescriptor;)Lorg.eclipse.swt.graphics.Image;
(ActionContributionItem.java:409)
	at org.eclipse.jface.action.ActionContributionItem.updateImages(Z)Z
(ActionContributionItem.java:1232)
	at org.eclipse.jface.action.ActionContributionItem.update
(Ljava.lang.String;)V(ActionContributionItem.java:1072)
	at org.eclipse.jface.action.ActionContributionItem.fill
(Lorg.eclipse.swt.widgets.ToolBar;I)V(ActionContributionItem.java:696)
	at org.eclipse.jface.action.ToolBarManager.update(Z)V
(ToolBarManager.java:260)
	at 
org.eclipse.ui.internal.PluginActionSetBuilder$ActionSetContribution.contributeA
djunctCoolbarAction
(Lorg.eclipse.ui.internal.ActionDescriptor;Lorg.eclipse.ui.internal.ActionSetAct
ionBars;)V(PluginActionSetBuilder.java:324)
	at 
org.eclipse.ui.internal.PluginActionSetBuilder.processAdjunctContributions()V
(PluginActionSetBuilder.java:197)
	at org.eclipse.ui.internal.PluginActionSetBuilder.processActionSets
(Ljava.util.ArrayList;Lorg.eclipse.ui.internal.WorkbenchWindow;)V
(PluginActionSetBuilder.java:185)
	at org.eclipse.ui.internal.ActionPresentation.setActionSets
([Lorg.eclipse.ui.internal.registry.IActionSetDescriptor;)V
(ActionPresentation.java:162)
	at org.eclipse.ui.internal.WorkbenchWindow.updateActionSets()V
(WorkbenchWindow.java:1999)
	at org.eclipse.ui.internal.WorkbenchWindow$4.run()V
(WorkbenchWindow.java:1870)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(Lorg.eclipse.swt.widgets.Display;Ljava.lang.Runnable;)V(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage
(Lorg.eclipse.ui.IWorkbenchPage;)V(WorkbenchWindow.java:1845)
	at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(Lorg.eclipse.ui.IMemento;Lorg.eclipse.ui.IPerspectiveDescriptor;)
Lorg.eclipse.core.runtime.IStatus;(WorkbenchWindow.java:1409)
	at org.eclipse.ui.internal.Workbench.restoreState
(Lorg.eclipse.ui.IMemento;)Lorg.eclipse.core.runtime.IStatus;
(Workbench.java:1224)
	at org.eclipse.ui.internal.Workbench.access$10
(Lorg.eclipse.ui.internal.Workbench;Lorg.eclipse.ui.IMemento;)
Lorg.eclipse.core.runtime.IStatus;(Workbench.java:1185)
	at org.eclipse.ui.internal.Workbench$13.run()V(Workbench.java:1096)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(Lorg.eclipse.core.runtime.ISafeRunnable;)V(InternalPlatform.java:616)
	at org.eclipse.core.runtime.Platform.run
(Lorg.eclipse.core.runtime.ISafeRunnable;)V(Platform.java:747)
	at org.eclipse.ui.internal.Workbench.restoreState()
Lorg.eclipse.core.runtime.IStatus;(Workbench.java:1029)
	at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState()
Lorg.eclipse.core.runtime.IStatus;(WorkbenchConfigurer.java:167)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows()Z
(WorkbenchAdvisor.java:652)

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:36.58
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.javahl.win32_0.9.27/ [274] was 
not resolved.
!SUBENTRY 1 org.eclipse.osgi Apr 01, 2005 09:07:36.58
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.javahl.win32_0.9.28/ was 
picked instead.

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.27/ [276] 
was not resolved.
!SUBENTRY 1 org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.28/ was 
picked instead.

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse.ui_0.9.27/ [278] was 
not resolved.
!SUBENTRY 1 org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse.ui_0.9.28/ was 
picked instead.

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse_0.9.27/ [280] was 
not resolved.
!SUBENTRY 1 org.eclipse.osgi Apr 01, 2005 09:07:36.74
!MESSAGE Bundle 
update@/c:/eclipse/plugins/org.tigris.subversion.subclipse_0.9.28/ was picked 
instead.

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:37.120
!MESSAGE The class "org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor" 
cannot be loaded because the system is shutting down and the plug-
in "org.eclipse.ui.workbench" has already been stopped.
!STACK 0
java.lang.ClassNotFoundException: The 
class "org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor" cannot be 
loaded because the system is shutting down and the plug-
in "org.eclipse.ui.workbench" has already been stopped.
	at org.eclipse.core.runtime.adaptor.EclipseClassLoader.shouldActivateFor
(Ljava.lang.String;)Z(EclipseClassLoader.java:147)
	at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(EclipseClassLoader.java:62)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:371)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:402)
	at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(Ljava.lang.String;Z)Ljava.lang.Class;(AbstractClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;
(Unknown Source)
	at java.lang.ClassLoader.loadClassFromNative(II)Ljava.lang.Class;
(Unknown Source)
	at jrockit.vm.RNI.getRunnableCode(I)I(Unknown Source)
	at jrockit.vm.RNI.trampoline()V(Unknown Source)
	at org.eclipse.ui.internal.progress.ProgressManager.getDefaultMonitor()
Lorg.eclipse.core.runtime.IProgressMonitor;(ProgressManager.java:???)
	at org.eclipse.core.internal.jobs.JobManager.monitorFor
(Lorg.eclipse.core.runtime.IProgressMonitor;)
Lorg.eclipse.core.runtime.IProgressMonitor;(JobManager.java:648)
	at org.eclipse.core.internal.jobs.JobManager.beginRule
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(JobManager.java:170)
	at org.eclipse.core.internal.resources.WorkManager.checkIn
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(WorkManager.java:95)
	at org.eclipse.core.internal.resources.Workspace.prepareOperation
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(Workspace.java:1628)
	at org.eclipse.core.internal.resources.Workspace.close
(Lorg.eclipse.core.runtime.IProgressMonitor;)V(Workspace.java:298)
	at org.eclipse.core.resources.ResourcesPlugin.shutdown()V
(ResourcesPlugin.java:324)
	at org.eclipse.core.internal.compatibility.PluginActivator.stop
(Lorg.osgi.framework.BundleContext;)V(PluginActivator.java:74)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run()
Ljava.lang.Object;(BundleContextImpl.java:994)
	at jrockit.vm.AccessController.do_privileged_exc
(Ljava.security.PrivilegedExceptionAction;Ljava.security.AccessControlContext;I)
Ljava.lang.Object;(Unknown Source)
	at jrockit.vm.AccessController.doPrivileged
(Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop()V
(BundleContextImpl.java:990)
	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(Z)V
(BundleHost.java:502)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.stop()V
(AbstractBundle.java:437)
	at org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBundles()V
(BundleStopper.java:73)
	at org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles()V
(BundleStopper.java:62)
	at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStopping
(Lorg.osgi.framework.BundleContext;)V(EclipseAdaptor.java:551)
	at org.eclipse.osgi.framework.internal.core.Framework.shutdown()V
(Framework.java:457)
	at org.eclipse.osgi.framework.internal.core.SystemBundle$1.run()V
(SystemBundle.java:182)
	at java.lang.Thread.run()V(Unknown Source)
	at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown 
Source)

!ENTRY org.eclipse.osgi Apr 01, 2005 09:07:37.120
!MESSAGE The class "org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor" 
cannot be loaded because the system is shutting down and the plug-
in "org.eclipse.ui.workbench" has already been stopped.
!STACK 0
java.lang.ClassNotFoundException: The 
class "org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor" cannot be 
loaded because the system is shutting down and the plug-
in "org.eclipse.ui.workbench" has already been stopped.
	at org.eclipse.core.runtime.adaptor.EclipseClassLoader.shouldActivateFor
(Ljava.lang.String;)Z(EclipseClassLoader.java:147)
	at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(EclipseClassLoader.java:62)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:371)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass
(Ljava.lang.String;)Ljava.lang.Class;(BundleLoader.java:402)
	at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass
(Ljava.lang.String;Z)Ljava.lang.Class;(AbstractClassLoader.java:93)
	at java.lang.ClassLoader.loadClass(Ljava.lang.String;)Ljava.lang.Class;
(Unknown Source)
	at java.lang.ClassLoader.loadClassFromNative(II)Ljava.lang.Class;
(Unknown Source)
	at jrockit.vm.RNI.getRunnableCode(I)I(Unknown Source)
	at jrockit.vm.RNI.trampoline()V(Unknown Source)
	at org.eclipse.ui.internal.progress.ProgressManager.getDefaultMonitor()
Lorg.eclipse.core.runtime.IProgressMonitor;(ProgressManager.java:???)
	at org.eclipse.core.internal.jobs.JobManager.monitorFor
(Lorg.eclipse.core.runtime.IProgressMonitor;)
Lorg.eclipse.core.runtime.IProgressMonitor;(JobManager.java:648)
	at org.eclipse.core.internal.jobs.JobManager.beginRule
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(JobManager.java:170)
	at org.eclipse.core.internal.resources.WorkManager.checkIn
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(WorkManager.java:95)
	at org.eclipse.core.internal.resources.Workspace.prepareOperation
(Lorg.eclipse.core.runtime.jobs.ISchedulingRule;Lorg.eclipse.core.runtime.IProgr
essMonitor;)V(Workspace.java:1628)
	at org.eclipse.core.internal.resources.Workspace.close
(Lorg.eclipse.core.runtime.IProgressMonitor;)V(Workspace.java:298)
	at org.eclipse.core.resources.ResourcesPlugin.shutdown()V
(ResourcesPlugin.java:324)
	at org.eclipse.core.internal.compatibility.PluginActivator.stop
(Lorg.osgi.framework.BundleContext;)V(PluginActivator.java:74)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run()
Ljava.lang.Object;(BundleContextImpl.java:994)
	at jrockit.vm.AccessController.do_privileged_exc
(Ljava.security.PrivilegedExceptionAction;Ljava.security.AccessControlContext;I)
Ljava.lang.Object;(Unknown Source)
	at jrockit.vm.AccessController.doPrivileged
(Ljava.security.PrivilegedExceptionAction;)Ljava.lang.Object;(Unknown Source)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop()V
(BundleContextImpl.java:990)
	at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(Z)V
(BundleHost.java:502)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.stop()V
(AbstractBundle.java:437)
	at org.eclipse.core.runtime.adaptor.BundleStopper.basicStopBundles()V
(BundleStopper.java:73)
	at org.eclipse.core.runtime.adaptor.BundleStopper.stopBundles()V
(BundleStopper.java:62)
	at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStopping
(Lorg.osgi.framework.BundleContext;)V(EclipseAdaptor.java:551)
	at org.eclipse.osgi.framework.internal.core.Framework.shutdown()V
(Framework.java:457)
	at org.eclipse.osgi.framework.internal.core.SystemBundle$1.run()V
(SystemBundle.java:182)
	at java.lang.Thread.run()V(Unknown Source)
	at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown 
Source)
Comment 1 John Arthorne CLA 2005-05-18 17:46:29 EDT
The source of the startup failure is the following:

!STACK 1
org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(ILjava.lang.Throwable;Ljava.lang.String;)V
(SWT.java:2717)
	at org.eclipse.swt.SWT.error(ILjava.lang.Throwable;)V(SWT.java:2616)
	at org.eclipse.swt.SWT.error(I)V(SWT.java:2587)
	at org.eclipse.swt.graphics.Image.init
(Lorg.eclipse.swt.graphics.Device;Lorg.eclipse.swt.graphics.Image;Lorg.eclipse.s
wt.graphics.ImageData;)[I(Image.java:1564)
  ... snip ...
Comment 2 Eclipse Genie CLA 2019-02-07 12:13:20 EST
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.

If you have further information on the current state of the bug, please add it. 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 3 Alexander Kurtakov CLA 2019-02-07 12:30:23 EST
Close. I haven't seen such issue ever. Please reopen with exact details how to reproduce if you still experience it.