Bug 8456 - Widget is disposed error in Search
Summary: Widget is disposed error in Search
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-25 08:37 EST by Tod Creasey CLA
Modified: 2002-01-28 05:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-01-25 08:37:28 EST
I was doing a search and received the following widget is disposed error.

I was in the Java Perspective and was doing a search on all senders of Cursor
(Device device, int style). Note that I also had a workbench window open that 
was showing no perspective.

Log: Fri Jan 25 08:38:39 EST 2002
4 org.eclipse.core.runtime 0 Widget is disposed
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:1887)
	at org.eclipse.swt.SWT.error(SWT.java:1819)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:368)
	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.Widget.checkWidget(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Table.setSelection(Table.java:1805)
	at org.eclipse.jface.viewers.TableViewer.setSelectionToWidget
(TableViewer.java:635)
	at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget
(StructuredViewer.java:790)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection
(StructuredViewer.java:579)
	at org.eclipse.jface.viewers.StructuredViewer.refresh
(StructuredViewer.java:624)
	at org.eclipse.jface.viewers.StructuredViewer.refresh
(StructuredViewer.java:592)
	at org.eclipse.jface.viewers.StructuredViewer.setSorter
(StructuredViewer.java:803)
	at org.eclipse.search.internal.ui.SortDropDownAction.setPageId
(SortDropDownAction.java:70)
	at org.eclipse.search.internal.ui.SearchResultViewer.setPageId
(SearchResultViewer.java:263)
	at org.eclipse.search.internal.ui.SearchManager.handleNewSearchResult
(SearchManager.java:385)
	at 
org.eclipse.search.internal.ui.SearchManager.handleSearchMarkersChanged
(SearchManager.java:327)
	at org.eclipse.search.internal.ui.SearchManager.access$2
(SearchManager.java:324)
	at org.eclipse.search.internal.ui.SearchManager$7.run
(SearchManager.java:459)
	at org.eclipse.ui.internal.UIWorkspaceLock.doPendingWork
(UIWorkspaceLock.java:53)
	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.jface.window.Window.runEventLoop(Window.java(Compiled 
Code))
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.jface.dialogs.MessageDialog.openError
(MessageDialog.java:318)
	at org.eclipse.ui.internal.Workbench.handleExceptionInEventLoop
(Workbench.java:394)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:827)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:878)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:321)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Tod Creasey CLA 2002-01-25 09:14:15 EST
This was in build 20020123. I have tried to replicate this in build 20020124 
and I cannot get it to happen again there.

I had gotten previous Widget is disposed error from an unrelated view earlier 
so this may have been related to that problem.
Comment 2 Erich Gamma CLA 2002-01-25 09:33:14 EST
Dani can you try to protect the code against this failure.
Comment 3 Dani Megert CLA 2002-01-28 05:45:49 EST
Could not reproduce either.

I guess that an exception occurred during the close of the workbench page (I
know the BreakpointsPage had such problem) and therefore the SearchManager was
not notified about the Search view being closed.