Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Figure.validate() crashes
Figure.validate() crashes [message #218027] Fri, 16 June 2006 18:27 Go to next message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
R3.1.2, WinXP

Sometimes I get this call-stack after disposing the canvas containing my figure; anyone know why? is
it a Figure bug, or is there some action I should be taking?

thanks,
Paul

org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.SWT.error(SWT.java:2836)
at org.eclipse.swt.widgets.Widget.error(Widget.java:395)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:297)
at org.eclipse.swt.widgets.Scrollable.getVerticalBar(Scrollable .java:187)
at org.eclipse.draw2d.FigureCanvas$2.propertyChange(FigureCanva s.java:72)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at org.eclipse.draw2d.DefaultRangeModel.firePropertyChange(Defa ultRangeModel.java:60)
at org.eclipse.draw2d.DefaultRangeModel.setAll(DefaultRangeMode l.java:118)
at org.eclipse.draw2d.Viewport.readjustScrollBars(Viewport.java :203)
at org.eclipse.draw2d.Viewport.validate(Viewport.java:364)
at org.eclipse.draw2d.Figure.validate(Figure.java:1738)
at org.eclipse.draw2d.DeferredUpdateManager.validateFigures(Def erredUpdateManager.java:271)
at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)
at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(D eferredUpdateManager.java:40)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3102)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2761)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
Re: Figure.validate() crashes [message #218047 is a reply to message #218027] Sun, 18 June 2006 20:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: none.us.ibm.com

When the canvas is disposed, the updatemanager is supposed to be disposed
too. I thought that this typically happens for free, but maybe not in all
cases.

"Paul Keyser" <rolarenfan@earthlink.net> wrote in message
news:e6vb8p$f1n$1@utils.eclipse.org...
> R3.1.2, WinXP
>
> Sometimes I get this call-stack after disposing the canvas containing my
> figure; anyone know why? is it a Figure bug, or is there some action I
> should be taking?
>
> thanks,
> Paul
>
> org.eclipse.swt.SWTException: Widget is disposed
> at org.eclipse.swt.SWT.error(SWT.java:2942)
> at org.eclipse.swt.SWT.error(SWT.java:2865)
> at org.eclipse.swt.SWT.error(SWT.java:2836)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:395)
> at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:297)
> at org.eclipse.swt.widgets.Scrollable.getVerticalBar(Scrollable .java:187)
> at org.eclipse.draw2d.FigureCanvas$2.propertyChange(FigureCanva s.java:72)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at
> org.eclipse.draw2d.DefaultRangeModel.firePropertyChange(Defa ultRangeModel.java:60)
> at org.eclipse.draw2d.DefaultRangeModel.setAll(DefaultRangeMode l.java:118)
> at org.eclipse.draw2d.Viewport.readjustScrollBars(Viewport.java :203)
> at org.eclipse.draw2d.Viewport.validate(Viewport.java:364)
> at org.eclipse.draw2d.Figure.validate(Figure.java:1738)
> at
> org.eclipse.draw2d.DeferredUpdateManager.validateFigures(Def erredUpdateManager.java:271)
> at
> org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)
> at
> org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(D eferredUpdateManager.java:40)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3102)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2761)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
Re: Figure.validate() crashes [message #218077 is a reply to message #218027] Mon, 19 June 2006 11:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: lamont_gilbert.rigidsoftware.com

Your not alone. I started getting these lately as well. Not sure if its
the same stack trace as I haven't investigated. But I am getting the
exception.


CL

Paul Keyser wrote:

> R3.1.2, WinXP
>
> Sometimes I get this call-stack after disposing the canvas containing my
> figure; anyone know why? is it a Figure bug, or is there some action I
> should be taking?
>
> thanks,
> Paul
>
> org.eclipse.swt.SWTException: Widget is disposed
> at org.eclipse.swt.SWT.error(SWT.java:2942)
> at org.eclipse.swt.SWT.error(SWT.java:2865)
> at org.eclipse.swt.SWT.error(SWT.java:2836)
> at org.eclipse.swt.widgets.Widget.error(Widget.java:395)
> at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:297)
> at org.eclipse.swt.widgets.Scrollable.getVerticalBar(Scrollable .java:187)
> at org.eclipse.draw2d.FigureCanvas$2.propertyChange(FigureCanva s.java:72)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
> at
>
org.eclipse.draw2d.DefaultRangeModel.firePropertyChange(Defa ultRangeModel.java:60)
> at org.eclipse.draw2d.DefaultRangeModel.setAll(DefaultRangeMode l.java:118)
> at org.eclipse.draw2d.Viewport.readjustScrollBars(Viewport.java :203) at
> org.eclipse.draw2d.Viewport.validate(Viewport.java:364) at
> org.eclipse.draw2d.Figure.validate(Figure.java:1738) at
>
org.eclipse.draw2d.DeferredUpdateManager.validateFigures(Def erredUpdateManager.java:271)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)
> at
>
org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(D eferredUpdateManager.java:40)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5) at
>
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3102) at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2761) at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699) at
> org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)

--
Respectfully,

CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
Re: Figure.validate() crashes [message #218091 is a reply to message #218077] Mon, 19 June 2006 13:48 Go to previous messageGo to next message
Eclipse User
Originally posted by: none.us.ibm.com

> org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)

Note that the above method returns without doing anything if the manager has
been disposed. You should always dispose the manager when the canvas is
disposed, since painting and layout occur asynchronously.
Re: Figure.validate() crashes [message #218099 is a reply to message #218091] Mon, 19 June 2006 14:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: lamont_gilbert.rigidsoftware.com

Randy Hudson wrote:

>>
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)
>
> Note that the above method returns without doing anything if the manager
> has been disposed. You should always dispose the manager when the canvas
> is disposed, since painting and layout occur asynchronously.

Only manager I created is a DeferredTreeContentManager but it does not
dispose. I didnt make any changes to the figure layer. Im just using a
TreeViewer. Its not GEF related. Again, I'm not sure where the exception
is being thrown so it could be something different.



--
Respectfully,

CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
Re: Figure.validate() crashes [message #218167 is a reply to message #218091] Tue, 20 June 2006 09:36 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
Randy Hudson wrote:
>> org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:143)
>
>
> Note that the above method returns without doing anything if the manager has
> been disposed. You should always dispose the manager when the canvas is
> disposed, since painting and layout occur asynchronously.
>
>
Weird -- I did not create that object and do not have a handle to it (that I know of); when and how
should I dispose it?

Paul
Re: Figure.validate() crashes [message #218388 is a reply to message #218077] Fri, 23 June 2006 13:03 Go to previous message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
So I have entered a new bug, https://bugs.eclipse.org/bugs/show_bug.cgi?id=148412, which seems very
similar to the fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=24716 ...

Paul
Previous Topic:IFileEditorInput not there
Next Topic:Connection overlaping other connection
Goto Forum:
  


Current Time: Sat Aug 30 10:42:35 EDT 2014

Powered by FUDForum. Page generated in 0.03177 seconds