Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [gef-dev] Widget is disposed exception in FigureCanvas during startup

Hi,

 

i had a similar exception calling a another shell from a wizard page. It also threw a WIDGET IS DISPOSED exception. I found that there was a PropertyChangeListener active on may calling shell. I removed the listener for that time and disposed the underlying widget and everything works fine. Maybe this also works for you!

 

Best regards,

Christian

 


Von: gef-dev-admin@xxxxxxxxxxx [mailto:gef-dev-admin@xxxxxxxxxxx] Im Auftrag von Gunnar Wagenknecht
Gesendet: Montag, 17. Mai 2004 16:56
An: gef-dev@xxxxxxxxxxx
Betreff: RE: [gef-dev] Widget is disposed exception in FigureCanvas during startup

 

Indeed it seems to be related to another problem I got during startup. But I'm wondering because the workbench did start fine after ignoring these exceptions (by patching the two property change listeners for updating the scroll bars in FigureCanvas). ???

 

 

 


From: gef-dev-admin@xxxxxxxxxxx [mailto:gef-dev-admin@xxxxxxxxxxx] On Behalf Of Randy Hudson
Sent: Monday, May 17, 2004 4:14 PM
To: gef-dev@xxxxxxxxxxx
Subject: Re: [gef-dev] Widget is disposed exception in FigureCanvas during startup


It is possible that another exception occurred and this one was just cascading?  Why is the Workbench disposing its Display?  That sounds like a startup error occurred prior to this.

DeferredUpdateManager should *not* attempt a layout at this point because it would have been disposed() already when the Canvas was disposed().

-randy


 

"Gunnar Wagenknecht" <G.Wagenknecht@xxxxxxxxxxxx>
Sent by: gef-dev-admin@xxxxxxxxxxx

05/17/2004 04:58 AM
Please respond to gef-dev

       
        To:        <gef-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [gef-dev] Widget is disposed exception in FigureCanvas during startup




Hi!

Any ideas why I'm getting the following exception during starting of Eclipse with an opened editor?

Eclipse 2.1.3
GEF 2.1.3

Cu, Gunnar

Caused by: org.eclipse.swt.SWTException: Widget is disposed
                at org.eclipse.swt.SWT.error(SWT.java:2330)
                at org.eclipse.swt.SWT.error(SWT.java:2260)
                at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
                at org.eclipse.swt.widgets.Control.getDisplay(Control.java:738)
                at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:593)
                at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:315)
                at org.eclipse.swt.widgets.Scrollable.getVerticalBar(Scrollable.java:180)
                at org.eclipse.draw2d.FigureCanvas$2.propertyChange(FigureCanvas.java:65)
                at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:252)
                at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:278)
                at org.eclipse.draw2d.DefaultRangeModel.firePropertyChange(DefaultRangeModel.java:60)
                at org.eclipse.draw2d.DefaultRangeModel.setAll(DefaultRangeModel.java:118)
                at org.eclipse.draw2d.FreeformViewport.readjustScrollBars(FreeformViewport.java:80)
                at org.eclipse.draw2d.Viewport.validate(Viewport.java:352)
                at org.eclipse.draw2d.Figure.validate(Figure.java:1595)
                at org.eclipse.draw2d.DeferredUpdateManager.validateFigures(DeferredUpdateManager.java:230)
                at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:132)
                at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:57)
                at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
                at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
                at org.eclipse.swt.widgets.Display.release(Display.java:1782)
                at org.eclipse.swt.graphics.Device.dispose(Device.java:212)
                at org.eclipse.ui.internal.Workbench.run(Workbench.java:1390)
                at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)


Back to the top