Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » exception on thumbnail
exception on thumbnail [message #676645] Sun, 05 June 2011 20:35 Go to next message
Ronald Krijgsheld is currently offline Ronald KrijgsheldFriend
Messages: 41
Registered: November 2010
Member
Hi All,

I sometimes see the following exception in my eclipse log:


Caused by: org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.graphics.GC.getAdvanced(GC.java:3207)
at org.eclipse.draw2d.SWTGraphics.restoreState(SWTGraphics.java:928)
at org.eclipse.draw2d.SWTGraphics.popState(SWTGraphics.java:828)
at org.eclipse.draw2d.ScaledGraphics.popState(ScaledGraphics.java:657)
at org.eclipse.draw2d.ScaledGraphics.dispose(ScaledGraphics.java:277)
at
org.eclipse.graphiti.ui.internal.fixed.FixedThumbnail$ThumbnailUpdater.stop(FixedThumbnail.java:308)
at
org.eclipse.graphiti.ui.internal.fixed.FixedThumbnail$ThumbnailUpdater.run(FixedThumbnail.java:202)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
.... 22 more


I looking at the FixedThumbnail.java at line 308 and was wondering
whether the dispose of the thumbnailGC should be after the dispose of
the thumbnailGraphics instead of before. see copied code snipped:

public void stop() {
isRunning = false;
if (thumbnailGC != null) {
thumbnailGC.dispose();
thumbnailGC = null;
}
if (thumbnailGraphics != null) {
thumbnailGraphics.dispose();
thumbnailGraphics = null;
}
}



Thanks,

Ronald Krijgsheld
Re: exception on thumbnail [message #676745 is a reply to message #676645] Mon, 06 June 2011 12:00 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1921
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Would you please open a bugzilla to track that?

Thanks,
Michael

"Ronald Krijgsheld" wrote in message news:isgoq9$a6j$1@news.eclipse.org...


Hi All,

I sometimes see the following exception in my eclipse log:


Caused by: org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.graphics.GC.getAdvanced(GC.java:3207)
at org.eclipse.draw2d.SWTGraphics.restoreState(SWTGraphics.java:928)
at org.eclipse.draw2d.SWTGraphics.popState(SWTGraphics.java:828)
at org.eclipse.draw2d.ScaledGraphics.popState(ScaledGraphics.java:657)
at org.eclipse.draw2d.ScaledGraphics.dispose(ScaledGraphics.java:277)
at
org.eclipse.graphiti.ui.internal.fixed.FixedThumbnail$ThumbnailUpdater.stop(FixedThumbnail.java:308)
at
org.eclipse.graphiti.ui.internal.fixed.FixedThumbnail$ThumbnailUpdater.run(FixedThumbnail.java:202)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
.... 22 more


I looking at the FixedThumbnail.java at line 308 and was wondering
whether the dispose of the thumbnailGC should be after the dispose of
the thumbnailGraphics instead of before. see copied code snipped:

public void stop() {
isRunning = false;
if (thumbnailGC != null) {
thumbnailGC.dispose();
thumbnailGC = null;
}
if (thumbnailGraphics != null) {
thumbnailGraphics.dispose();
thumbnailGraphics = null;
}
}



Thanks,

Ronald Krijgsheld
Re: exception on thumbnail [message #676768 is a reply to message #676745] Mon, 06 June 2011 12:46 Go to previous message
Ronald Krijgsheld is currently offline Ronald KrijgsheldFriend
Messages: 41
Registered: November 2010
Member
Thanks,

bugzilla 348389 created.

- Ronald
Previous Topic:Override RenderingStyle
Next Topic:connection to another connection
Goto Forum:
  


Current Time: Fri Jul 10 20:24:17 GMT 2020

Powered by FUDForum. Page generated in 0.02096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top