Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Exception in thubnail generation for outline view
Exception in thubnail generation for outline view [message #480177] Fri, 14 August 2009 09:27 Go to next message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
Hi,

I am getting an exception when i close the application,

The thing is i have gef view in which i am generating a large class
diagram(1000<classes with aggrigation,realization and generalization
connections),

there is an outline view which shows the thumbnail of the relations view,
The relations view takes some time to load(pls give some advice to improve
rendering performance,the gui goes blank for some time in case of very
large no of classes),
but even after the relations view gets loaded the thumbnail view loads
slowly and is still loading,

now if i close the application i get the following exception

org.eclipse.swt.SWTException: Failed to execute runnable
(org.eclipse.swt.SWTException: Graphic is disposed)
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:136)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
at org.eclipse.swt.widgets.Display.release(Display.java:3476)
at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
at
ch.dgsl.iarc.application.internal.Application.start(Applicat ion.java:37)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.graphics.Font.getFontData(Font.java:183)
at
org.eclipse.draw2d.ScaledGraphics.getCachedFontData(ScaledGr aphics.java:458)
at org.eclipse.draw2d.ScaledGraphics.zoomFont(ScaledGraphics.ja va:753)
at org.eclipse.draw2d.ScaledGraphics.setLocalFont(ScaledGraphic s.java:686)
at org.eclipse.draw2d.ScaledGraphics.setFont(ScaledGraphics.jav a:638)
at org.eclipse.draw2d.Figure.paint(Figure.java:1045)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
net.java.amateras.uml.classdiagram.figure.ext.ClassFigure.pa int(ClassFigure.java:44)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
net.java.amateras.uml.editpart.RootEditPart$1.paint(RootEdit Part.java:75)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
org.eclipse.draw2d.parts.Thumbnail$ThumbnailUpdater.run(Thum bnail.java:159)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
... 18 more



How to solve this?


Also zooming is also slow how can i improve it???


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: Exception in thubnail generation for outline view [message #481501 is a reply to message #480177] Fri, 21 August 2009 09:58 Go to previous message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
For slow performance of zoom i found the problem,
the problem was shortestpathrouter this router makes zooming scrolling and
loading also slow,
There is a hack in logic example for using shortestpathrouter but it
doesnt help in my case,

The exception is still coming any suggestions??

vijay wrote:

> Hi,

> I am getting an exception when i close the application,

> The thing is i have gef view in which i am generating a large class
> diagram(1000<classes with aggrigation,realization and generalization
> connections),

> there is an outline view which shows the thumbnail of the relations view,
> The relations view takes some time to load(pls give some advice to improve
> rendering performance,the gui goes blank for some time in case of very
> large no of classes),
> but even after the relations view gets loaded the thumbnail view loads
> slowly and is still loading,

> now if i close the application i get the following exception

> org.eclipse.swt.SWTException: Failed to execute runnable
> (org.eclipse.swt.SWTException: Graphic is disposed)
> at org.eclipse.swt.SWT.error(SWT.java:3777)
> at org.eclipse.swt.SWT.error(SWT.java:3695)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:136)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3800)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3425)
> at org.eclipse.swt.widgets.Display.release(Display.java:3476)
> at org.eclipse.swt.graphics.Device.dispose(Device.java:261)
> at
> ch.dgsl.iarc.application.internal.Application.start(Applicat ion.java:37)
> at
>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: org.eclipse.swt.SWTException: Graphic is disposed
> at org.eclipse.swt.SWT.error(SWT.java:3777)
> at org.eclipse.swt.SWT.error(SWT.java:3695)
> at org.eclipse.swt.SWT.error(SWT.java:3666)
> at org.eclipse.swt.graphics.Font.getFontData(Font.java:183)
> at
> org.eclipse.draw2d.ScaledGraphics.getCachedFontData(ScaledGr aphics.java:458)
> at org.eclipse.draw2d.ScaledGraphics.zoomFont(ScaledGraphics.ja va:753)
> at org.eclipse.draw2d.ScaledGraphics.setLocalFont(ScaledGraphic s.java:686)
> at org.eclipse.draw2d.ScaledGraphics.setFont(ScaledGraphics.jav a:638)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1045)
> at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
> at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
> at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
> at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
> at
>
net.java.amateras.uml.classdiagram.figure.ext.ClassFigure.pa int(ClassFigure.java:44)
> at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
> at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
> at
> net.java.amateras.uml.editpart.RootEditPart$1.paint(RootEdit Part.java:75)
> at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
> at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
> at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
> at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
> at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
> at
> org.eclipse.draw2d.parts.Thumbnail$ThumbnailUpdater.run(Thum bnail.java:159)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
> ... 18 more



> How to solve this?


> Also zooming is also slow how can i improve it???


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Editing capabilities with GEF in Eclipse View
Next Topic:[Zest] Node Gradients
Goto Forum:
  


Current Time: Tue Sep 30 22:03:15 GMT 2014

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

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