Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Overview causing a SWTError: No more handles
Overview causing a SWTError: No more handles [message #8663] Fri, 07 June 2002 15:11 Go to next message
Eclipse UserFriend
Originally posted by: chyliko.dev.disnet.cz

This is a multi-part message in MIME format.

------=_NextPart_000_0119_01C20E46.6F145BE0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Hi,

I encountered a problem with the Overview in my EditPartViewer. In my
application, I have a table that contains items and allows adding and
removing them. Next to the table there's a GEF viewer (a graphical one with
overview) that shows a bar for every item in the table (my model). Therefore
there are exactly as much EditParts as the items in the table plus one as
the contents of the viewer.
Now that I tested my app with more than few items (several hundreds, to
be more specific) in my model I end up with "SWTError: No more handles"
everytime when I try to pop-up the overview by clicking on its tab. The
viewer works fine with even larger models, but just as long as I do not
click the "Overview" sign in its lower corner.
In fact, I have more than one viewer created in my application and I
switch them on a Composite with a StackLayout. And when there are for
example 3 viewers stacked on top of each other, one containing 5 items, the
second 1 item only and the third some 220 items, the overviews on the
first two viewers would work fine, only the third one would cause the crash
of the workbench.
It definitely seems to have something to do with the number of items in
the viewer. Also some of my colleagues told me they had a similar problem
too when working with a overview in GEF (unfortunately I don't know
more details). They work on a completely distinct application, so I dare
suppose that it's a problem of GEF, not of my code ;-)

Attached is the error log produced by the workbench.

Note: I still use the previous build of GEF (not the latest from 4 Jun) and
the M5 (20020416) build of Eclipse. However, I briefly tried the latest
Eclipse and GEF as well and the problem was the same.

I'd appreciate an opinion that would state whether this is a GEF bug or not
(or is it a _known_ bug after all?) and mention if and when it would be
fixed or how it can be worked around. Thanks.

Oh, and I'm sorry for being so lengthy :-)

Regards,
Ondrej



------=_NextPart_000_0119_01C20E46.6F145BE0
Content-Type: application/octet-stream;
name=".log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename=".log"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<log>
<log-entry date=3D"Fri Jun 07 16:11:16 CEST 2002">
<status
plugin-id=3D"org.eclipse.core.resources"
severity=3D"INFO"
message=3D"Unhandled exception caught in event loop."
code=3D"4">
</status>
</log-entry>
<log-entry date=3D"Fri Jun 07 16:11:17 CEST 2002">
<status
plugin-id=3D"org.eclipse.ui"
severity=3D"ERROR"
message=3D"No more handles"
code=3D"0">
<exception
message=3D"No more handles"
trace=3D"
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:1912)
at org.eclipse.swt.SWT.error(SWT.java:1819)
at org.eclipse.swt.graphics.Image.init(Image.java:1497)
at org.eclipse.swt.graphics.Image.&lt;init&gt;(Image.ja va:151)
at com.ibm.etools.draw2d.util.ImageInfo.&lt;init&gt;(Im ageInfo.java:34)
at com.ibm.etools.draw2d.util.ImageInfo.&lt;init&gt;(Im ageInfo.java:30)
at com.ibm.etools.draw2d.util.ImageCache.checkout(ImageCache.ja va:91)
at =
com.ibm.etools.draw2d.parts.Thumbnail.resetOriginalImage(Thu mbnail.java:9=
1)
at =
com.ibm.etools.draw2d.parts.Thumbnail.paintFigure(Thumbnail. java:119)
at com.ibm.etools.draw2d.Figure.paint(Figure.java:776)
at =
com.ibm.etools.draw2d.parts.Dock.maximizeDockIfMinimized(Doc k.java:177)
at com.ibm.etools.draw2d.parts.Dock$2.mousePressed(Dock.java:73 )
at com.ibm.etools.draw2d.Figure.handleMousePressed(Figure.java: 647)
at =
com.ibm.etools.draw2d.SWTEventDispatcher.dispatchMousePresse d(SWTEventDis=
patcher.java:93)
at =
com.ibm.etools.gef.ui.parts.DomainEventDispatcher.dispatchMo usePressed(Do=
mainEventDispatcher.java:99)
at =
com.ibm.etools.draw2d.LightweightSystem$EventHandler.mouseDo wn(Lightweigh=
tSystem.java:200)
at =
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:124)=

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :75)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:6 37)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1412)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1208)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:836)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
at =
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
java:777)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14)
">
</exception>
</status>
</log-entry>
<log-entry date=3D"Fri Jun 07 16:11:17 CEST 2002">
<status
plugin-id=3D"org.eclipse.core.resources"
severity=3D"INFO"
message=3D"Unhandled exception caught in event loop."
code=3D"4">
</status>
</log-entry>
<log-entry date=3D"Fri Jun 07 16:11:17 CEST 2002">
<status
plugin-id=3D"org.eclipse.ui"
severity=3D"ERROR"
message=3D"No more handles"
code=3D"0">
<exception
message=3D"No more handles"
trace=3D"
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:1912)
at org.eclipse.swt.SWT.error(SWT.java:1819)
at org.eclipse.swt.graphics.Image.init(Image.java:1497)
at org.eclipse.swt.graphics.Image.&lt;init&gt;(Image.ja va:151)
at com.ibm.etools.draw2d.util.ImageInfo.&lt;init&gt;(Im ageInfo.java:34)
at com.ibm.etools.draw2d.util.ImageInfo.&lt;init&gt;(Im ageInfo.java:30)
at com.ibm.etools.draw2d.util.ImageCache.checkout(ImageCache.ja va:91)
at =
com.ibm.etools.draw2d.parts.Thumbnail.resetOriginalImage(Thu mbnail.java:9=
1)
at =
com.ibm.etools.draw2d.parts.Thumbnail.paintFigure(Thumbnail. java:119)
at com.ibm.etools.draw2d.Figure.paint(Figure.java:776)
at com.ibm.etools.draw2d.Figure.paintChildren(Figure.java:803)
at com.ibm.etools.draw2d.Figure.paintClientArea(Figure.java:828 )
at com.ibm.etools.draw2d.Figure.paint(Figure.java:777)
at com.ibm.etools.draw2d.Figure.paintChildren(Figure.java:803)
at com.ibm.etools.draw2d.Figure.paintClientArea(Figure.java:828 )
at com.ibm.etools.draw2d.Figure.paint(Figure.java:777)
at com.ibm.etools.draw2d.Layer.paint(Layer.java:55)
at =
com.ibm.etools.draw2d.LayeredPane.paintChildren(LayeredPane. java:137)
at com.ibm.etools.draw2d.Figure.paintClientArea(Figure.java:828 )
at com.ibm.etools.draw2d.Figure.paint(Figure.java:777)
at com.ibm.etools.draw2d.Figure.paintChildren(Figure.java:803)
at com.ibm.etools.draw2d.Figure.paintClientArea(Figure.java:828 )
at com.ibm.etools.draw2d.Figure.paint(Figure.java:777)
at =
com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateMa=
nager.java:126)
at =
com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateM=
anager.java:87)
at =
com.ibm.etools.draw2d.DeferredUpdateManager$UpdateRequest.ru n(DeferredUpd=
ateManager.java:36)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:2 9)
at =
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:9=
3)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:1389)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1211)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:538 )
at org.eclipse.jface.window.Window.open(Window.java:525)
at =
org.eclipse.ui.internal.dialogs.InternalErrorDialog.openQues tion(Internal=
ErrorDialog.java:171)
at =
org.eclipse.ui.internal.ExceptionHandler.openQuestionDialog( ExceptionHand=
ler.java:142)
at =
org.eclipse.ui.internal.ExceptionHandler.handleException(Exc eptionHandler=
..java:60)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:839)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
at =
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
java:777)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14)
">
</exception>
</status>
</log-entry>
</log>

------=_NextPart_000_0119_01C20E46.6F145BE0--
Re: Overview causing a SWTError: No more handles [message #8689 is a reply to message #8663] Fri, 07 June 2002 18:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

What platform?

"Ondrej Chylik" <chyliko@dev.disnet.cz> wrote in message
news:adqhfg$jrp$1@rogue.oti.com...
> Hi,
>
> I encountered a problem with the Overview in my EditPartViewer. In my
> application, I have a table that contains items and allows adding and
> removing them. Next to the table there's a GEF viewer (a graphical one
with
> overview) that shows a bar for every item in the table (my model).
Therefore
> there are exactly as much EditParts as the items in the table plus one as
> the contents of the viewer.
> Now that I tested my app with more than few items (several hundreds,
to
> be more specific) in my model I end up with "SWTError: No more handles"
> everytime when I try to pop-up the overview by clicking on its tab. The
> viewer works fine with even larger models, but just as long as I do not
> click the "Overview" sign in its lower corner.
> In fact, I have more than one viewer created in my application and I
> switch them on a Composite with a StackLayout. And when there are for
> example 3 viewers stacked on top of each other, one containing 5 items,
the
> second 1 item only and the third some 220 items, the overviews on the
> first two viewers would work fine, only the third one would cause the
crash
> of the workbench.
> It definitely seems to have something to do with the number of items
in
> the viewer. Also some of my colleagues told me they had a similar problem
> too when working with a overview in GEF (unfortunately I don't know
> more details). They work on a completely distinct application, so I dare
> suppose that it's a problem of GEF, not of my code ;-)
>
> Attached is the error log produced by the workbench.
>
> Note: I still use the previous build of GEF (not the latest from 4 Jun)
and
> the M5 (20020416) build of Eclipse. However, I briefly tried the latest
> Eclipse and GEF as well and the problem was the same.
>
> I'd appreciate an opinion that would state whether this is a GEF bug or
not
> (or is it a _known_ bug after all?) and mention if and when it would be
> fixed or how it can be worked around. Thanks.
>
> Oh, and I'm sorry for being so lengthy :-)
>
> Regards,
> Ondrej
>
>
>
Re: Overview causing a SWTError: No more handles [message #8735 is a reply to message #8689] Sun, 09 June 2002 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chyliko.dev.disnet.cz

> What platform?

Windows 2000.
I'm sorry, I forgot to mention this.

Regards,
Ondrej
Re: Overview causing a SWTError: No more handles [message #8747 is a reply to message #8663] Sun, 09 June 2002 22:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

It sounds like a resource leak, but I don't know about any in GEF or draw2d.
Try to create a simpler reproducable test case and submit that code as a
bugzilla.

"Ondrej Chylik" <chyliko@dev.disnet.cz> wrote in message
news:adqhfg$jrp$1@rogue.oti.com...
> Hi,
>
> I encountered a problem with the Overview in my EditPartViewer. In my
> application, I have a table that contains items and allows adding and
> removing them. Next to the table there's a GEF viewer (a graphical one
with
> overview) that shows a bar for every item in the table (my model).
Therefore
> there are exactly as much EditParts as the items in the table plus one as
> the contents of the viewer.
> Now that I tested my app with more than few items (several hundreds,
to
> be more specific) in my model I end up with "SWTError: No more handles"
> everytime when I try to pop-up the overview by clicking on its tab. The
> viewer works fine with even larger models, but just as long as I do not
> click the "Overview" sign in its lower corner.
> In fact, I have more than one viewer created in my application and I
> switch them on a Composite with a StackLayout. And when there are for
> example 3 viewers stacked on top of each other, one containing 5 items,
the
> second 1 item only and the third some 220 items, the overviews on the
> first two viewers would work fine, only the third one would cause the
crash
> of the workbench.
> It definitely seems to have something to do with the number of items
in
> the viewer. Also some of my colleagues told me they had a similar problem
> too when working with a overview in GEF (unfortunately I don't know
> more details). They work on a completely distinct application, so I dare
> suppose that it's a problem of GEF, not of my code ;-)
>
> Attached is the error log produced by the workbench.
>
> Note: I still use the previous build of GEF (not the latest from 4 Jun)
and
> the M5 (20020416) build of Eclipse. However, I briefly tried the latest
> Eclipse and GEF as well and the problem was the same.
>
> I'd appreciate an opinion that would state whether this is a GEF bug or
not
> (or is it a _known_ bug after all?) and mention if and when it would be
> fixed or how it can be worked around. Thanks.
>
> Oh, and I'm sorry for being so lengthy :-)
>
> Regards,
> Ondrej
>
>
>
Re: Overview causing a SWTError: No more handles [message #9387 is a reply to message #8747] Mon, 10 June 2002 15:28 Go to previous message
Eclipse UserFriend
Originally posted by: chyliko.dev.disnet.cz

Randy Hudson wrote:
> It sounds like a resource leak, but I don't know about any in GEF or draw2d.
> Try to create a simpler reproducable test case and submit that code as a
> bugzilla.

Submitted as bug #19803

http://bugs.eclipse.org/bugs/show_bug.cgi?id=19803

Ondrej
Previous Topic:Warning about using new features in GEF
Next Topic:How to delete a figure?
Goto Forum:
  


Current Time: Sun Oct 06 09:28:03 GMT 2024

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

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

Back to the top