Bug 2293

Summary: NPE during build (1GELWYX)
Product: [Eclipse Project] Platform Reporter: Jed Anderson <jed.anderson>
Component: UIAssignee: Unknown User <unknown>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

Description Jed Anderson CLA 2001-10-10 22:33:26 EDT
jkca (5/31/2001 3:11:10 PM)
	jre-motif-sdk 115

I encountered a NPE during a build after which my workbench PAFed (possibly due to
the SWT exception which I received at the same time).

I had loaded the debug teams projects from our repository.  They do not use
variables yet, so I was setting up the project to use variables so that I could
test cross platform development selfhosting.

I brought up the project properties dialog on the Eclipse Launcher plugin which only
contains Main & UIMain.  I changed the build path to include two variables, the JRE_LIB
and one I created PLUGINS/org.eclipse.core.runtime/runtime.jar.  I then hit ok and the
workbench started a build (autobuild on).  After a while the Progress dialog said "Running."
and was completely filled, then the workbench PAFed and I got the following in the error log.

Log: Fri Jun 01 14:05:53 GMT+00:00 2001
2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in: org.eclipse.ui.
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:1700)
	at org.eclipse.swt.SWT.error(SWT.java:1741)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:262)
	at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Control.setToolTipText(Control.java:2278)
	at org.eclipse.swt.custom.CLabel.setToolTipText(CLabel.java:444)
	at org.eclipse.ui.internal.ViewPane.updateTitles(ViewPane.java:519)
	at org.eclipse.ui.internal.ViewPane.propertyChanged(ViewPane.java:360)
	at org.eclipse.ui.part.WorkbenchPart$1.run(WorkbenchPart.java:75)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:718)
	at org.eclipse.core.runtime.Platform.run(Platform.java:388)
	at org.eclipse.ui.part.WorkbenchPart.firePropertyChange(WorkbenchPart.java:73)
	at org.eclipse.ui.part.WorkbenchPart.setTitleToolTip(WorkbenchPart.java:225)
	at org.eclipse.search.internal.ui.SearchResultView.setTitleToolTip(SearchResultView.java:162)
	at org.eclipse.search.internal.ui.SearchResultViewer.updateTitle(SearchResultViewer.java:395)
	at org.eclipse.search.internal.ui.SearchManager$5.run(SearchManager.java:395)
	at org.eclipse.ui.internal.UIWorkspaceLock.doPendingWork(UIWorkspaceLock.java:35)
	at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer.java:23)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code))
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.release(Display.java:1452)
	at org.eclipse.swt.graphics.Device.dispose(Device.java:87)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:627)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:810)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:280)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:69)
	at org.eclipse.core.launcher.Main.run(Main.java:311)
	at org.eclipse.core.launcher.Main.main(Main.java:198)
Log: Fri Jun 01 14:06:00 GMT+00:00 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources.
java.lang.NullPointerException
	at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:239)
	at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:83)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:718)
	at org.eclipse.core.runtime.Platform.run(Platform.java:388)
	at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:94)
	at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:767)
	at org.eclipse.core.internal.resources.SaveManager.snapshotIfNeeded(SaveManager.java:881)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:637)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1115)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:73)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)


JM (31/05/2001 7:20:45 PM)
	Looks like something is messed up in the UI.  At the end of the operation a snapshot was begin done
	and at the end of the snapshot notification is being broadcast.  In the notification someone is trying
	to dispose a widget that is already disposed.
	Moving to UI

SA (6/1/2001 3:49:23 PM)
	Not having any luck reproducing this problem. Sent e-mail to Jed to get more information. Very
	weird error for sure. If you look at ViewPane::updateTitles, it made calls to the CLabel before
	calling setToolTipText() (for example, it called getText() in the if statement). None of those
	failed so the widget was not disposed. Somehow, someone disposed the widget prior to
	the setToolTipText() call!
Comment 1 Unknown User CLA 2001-10-11 12:01:32 EDT
This bug is over 5 months old.  Moving to Invalid