Skip to main content



      Home
Home » Eclipse Projects » GEF » SWTError: No more handles
SWTError: No more handles [message #21577] Thu, 26 September 2002 22:03 Go to next message
Eclipse UserFriend
Originally posted by: julien.omondo.com

I have a question about draw2D. I don\'t if it belong to this group or to
eclipse.tools.

We run into another problem with Image which is hold in draw2d.Label. In
our UML Plugin, if we create a huge diagram, we got the following error:

SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2144)
at org.eclipse.swt.SWT.error(SWT.java:2051)
at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
at
com.ibm.etools.draw2d.BufferedGraphicsSource.getGraphics(Buf feredGraphicsSource.java:63)
at
com.ibm.etools.draw2d.DeferredUpdateManager.getGraphics(Defe rredUpdateManager.java:68)
at
com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateManager.java:133)
at
com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateManager.java:92)
at
com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateManager.java:82)
at
com.ibm.etools.draw2d.LightweightSystem.paint(LightweightSys tem.java:167)
at
com.ibm.etools.draw2d.LightweightSystem$2.handleEvent(Lightw eightSystem.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:66 5)

We have followed the article \"Using Images in the Eclipse UI\" and using
shared image. When I trace the ImagerRegister\'s counter, I used only
about 30 images. I cannot figure out what is wrong ? Can someone help me ?

Julien
Re: SWTError: No more handles [message #21894 is a reply to message #21577] Fri, 27 September 2002 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Do you have a large diagram and the overview window?

Use the latest drop. It fixes this problem.

"Julien" <julien@omondo.com> wrote in message
news:an0ea2$mbt$1@rogue.oti.com...
> I have a question about draw2D. I don\'t if it belong to this group or to
> eclipse.tools.
>
> We run into another problem with Image which is hold in draw2d.Label. In
> our UML Plugin, if we create a huge diagram, we got the following error:
>
> SWTError: No more handles
> at org.eclipse.swt.SWT.error(SWT.java:2144)
> at org.eclipse.swt.SWT.error(SWT.java:2051)
> at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
> at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
> at
>
com.ibm.etools.draw2d.BufferedGraphicsSource.getGraphics(Buf feredGraphicsSou
rce.java:63)
> at
>
com.ibm.etools.draw2d.DeferredUpdateManager.getGraphics(Defe rredUpdateManage
r.java:68)
> at
>
com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateManag
er.java:133)
> at
>
com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
ger.java:92)
> at
>
com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
ger.java:82)
> at
> com.ibm.etools.draw2d.LightweightSystem.paint(LightweightSys tem.java:167)
> at
>
com.ibm.etools.draw2d.LightweightSystem$2.handleEvent(Lightw eightSystem.java
:89)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:66 5)
>
> We have followed the article \"Using Images in the Eclipse UI\" and using
> shared image. When I trace the ImagerRegister\'s counter, I used only
> about 30 images. I cannot figure out what is wrong ? Can someone help me ?
>
> Julien
>
>
Re: SWTError: No more handles [message #22112 is a reply to message #21894] Fri, 27 September 2002 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: julien.omondo.com

Randy Hudson wrote:

> Do you have a large diagram and the overview window?

> Use the latest drop. It fixes this problem.

You means last version of GEF ?

Julien

> "Julien" <julien@omondo.com> wrote in message
> news:an0ea2$mbt$1@rogue.oti.com...
> > I have a question about draw2D. I don\'t if it belong to this group or to
> > eclipse.tools.
> >
> > We run into another problem with Image which is hold in draw2d.Label. In
> > our UML Plugin, if we create a huge diagram, we got the following error:
> >
> > SWTError: No more handles
> > at org.eclipse.swt.SWT.error(SWT.java:2144)
> > at org.eclipse.swt.SWT.error(SWT.java:2051)
> > at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
> > at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
> > at
> >
> com.ibm.etools.draw2d.BufferedGraphicsSource.getGraphics(Buf feredGraphicsSou
> rce.java:63)
> > at
> >
> com.ibm.etools.draw2d.DeferredUpdateManager.getGraphics(Defe rredUpdateManage
> r.java:68)
> > at
> >
> com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateManag
> er.java:133)
> > at
> >
> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
> ger.java:92)
> > at
> >
> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
> ger.java:82)
> > at
> > com.ibm.etools.draw2d.LightweightSystem.paint(LightweightSys tem.java:167)
> > at
> >
> com.ibm.etools.draw2d.LightweightSystem$2.handleEvent(Lightw eightSystem.java
> :89)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> > at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:66 5)
> >
> > We have followed the article \"Using Images in the Eclipse UI\" and using
> > shared image. When I trace the ImagerRegister\'s counter, I used only
> > about 30 images. I cannot figure out what is wrong ? Can someone help me ?
> >
> > Julien
> >
> >
Re: SWTError: No more handles [message #22156 is a reply to message #22112] Fri, 27 September 2002 16:00 Go to previous messageGo to next message
Eclipse UserFriend
Yes, he's talking about GEF. The overview was causing this exception if the
diagram was very large. The newest GEF drop includes the fix.

Eric

julien wrote:
>
> Randy Hudson wrote:
>
>
>>Do you have a large diagram and the overview window?
>
>
>>Use the latest drop. It fixes this problem.
>
>
> You means last version of GEF ?
>
> Julien
>
>
>>"Julien" <julien@omondo.com> wrote in message
>>news:an0ea2$mbt$1@rogue.oti.com...
>>
>>>I have a question about draw2D. I don\'t if it belong to this group or to
>>>eclipse.tools.
>>>
>>>We run into another problem with Image which is hold in draw2d.Label. In
>>>our UML Plugin, if we create a huge diagram, we got the following error:
>>>
>>>SWTError: No more handles
>>>at org.eclipse.swt.SWT.error(SWT.java:2144)
>>>at org.eclipse.swt.SWT.error(SWT.java:2051)
>>>at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
>>>at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
>>>at
>>>
>>
>> com.ibm.etools.draw2d.BufferedGraphicsSource.getGraphics(Buf feredGraphicsSou
>>rce.java:63)
>>
>>>at
>>>
>>
>> com.ibm.etools.draw2d.DeferredUpdateManager.getGraphics(Defe rredUpdateManage
>>r.java:68)
>>
>>>at
>>>
>>
>> com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateManag
>>er.java:133)
>>
>>>at
>>>
>>
>> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
>>ger.java:92)
>>
>>>at
>>>
>>
>> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
>>ger.java:82)
>>
>>>at
>>> com.ibm.etools.draw2d.LightweightSystem.paint(LightweightSys tem.java:167)
>>>at
>>>
>>
>> com.ibm.etools.draw2d.LightweightSystem$2.handleEvent(Lightw eightSystem.java
>>:89)
>>
>>>at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
>>>at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
>>>at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:66 5)
>>>
>>>We have followed the article \"Using Images in the Eclipse UI\" and using
>>>shared image. When I trace the ImagerRegister\'s counter, I used only
>>>about 30 images. I cannot figure out what is wrong ? Can someone help me ?
>>>
>>>Julien
>>>
>>>
>
>
>
>
>
>
Re: SWTError: No more handles [message #22199 is a reply to message #22156] Fri, 27 September 2002 19:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: julein.omondo.com

Eric Bordeau wrote:

> Yes, he's talking about GEF. The overview was causing this exception if the
> diagram was very large. The newest GEF drop includes the fix.

> Eric

I just passed to GEF 20020821. Nothing changed. The Eclipse crash after I
minimize a class and then maximize the class to display all members in the
case I have a huge diagram. It seems that problem is relative with the
Label deleting. Is it helpfull to remove "Overview" thumbnail ?

Julien

> julien wrote:
> >
> > Randy Hudson wrote:
> >
> >
> >>Do you have a large diagram and the overview window?
> >
> >
> >>Use the latest drop. It fixes this problem.
> >
> >
> > You means last version of GEF ?
> >
> > Julien
> >
> >
> >>"Julien" <julien@omondo.com> wrote in message
> >>news:an0ea2$mbt$1@rogue.oti.com...
> >>
> >>>I have a question about draw2D. I don\'t if it belong to this group or to
> >>>eclipse.tools.
> >>>
> >>>We run into another problem with Image which is hold in draw2d.Label. In
> >>>our UML Plugin, if we create a huge diagram, we got the following error:
> >>>
> >>>SWTError: No more handles
> >>>at org.eclipse.swt.SWT.error(SWT.java:2144)
> >>>at org.eclipse.swt.SWT.error(SWT.java:2051)
> >>>at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
> >>>at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.BufferedGraphicsSource.getGraphics(Buf feredGraphicsSou
> >>rce.java:63)
> >>
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.DeferredUpdateManager.getGraphics(Defe rredUpdateManage
> >>r.java:68)
> >>
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.DeferredUpdateManager.repairDamage(Def erredUpdateManag
> >>er.java:133)
> >>
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
> >>ger.java:92)
> >>
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.DeferredUpdateManager.performUpdate(De ferredUpdateMana
> >>ger.java:82)
> >>
> >>>at
> >>> com.ibm.etools.draw2d.LightweightSystem.paint(LightweightSys tem.java:167)
> >>>at
> >>>
> >>
>
>> com.ibm.etools.draw2d.LightweightSystem$2.handleEvent(Lightw eightSystem.java
> >>:89)
> >>
> >>>at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
> >>>at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> >>>at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:66 5)
> >>>
> >>>We have followed the article \"Using Images in the Eclipse UI\" and using
> >>>shared image. When I trace the ImagerRegister\'s counter, I used only
> >>>about 30 images. I cannot figure out what is wrong ? Can someone help me ?
> >>>
> >>>Julien
> >>>
> >>>
> >
> >
> >
> >
> >
> >
Re: SWTError: No more handles [message #22379 is a reply to message #22199] Sat, 28 September 2002 18:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

> I just passed to GEF 20020821. Nothing changed. The Eclipse crash after I
> minimize a class and then maximize the class to display all members in the
> case I have a huge diagram. It seems that problem is relative with the
> Label deleting. Is it helpfull to remove "Overview" thumbnail ?

It is probably a different exception, please post the .log stacktrace.
Re: SWTError: No more handles [message #22719 is a reply to message #22379] Tue, 01 October 2002 19:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: julien.omondo.com

Randy Hudson wrote:

> > I just passed to GEF 20020821. Nothing changed. The Eclipse crash after I
> > minimize a class and then maximize the class to display all members in the
> > case I have a huge diagram. It seems that problem is relative with the
> > Label deleting. Is it helpfull to remove \"Overview\" thumbnail ?

> It is probably a different exception, please post the .log stacktrace.

Here you are:
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2144)
at org.eclipse.swt.SWT.error(SWT.java:2051)
at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
at
org.eclipse.draw2d.BufferedGraphicsSource.getGraphics(Buffer edGraphicsSource.java:63)
at
org.eclipse.draw2d.DeferredUpdateManager.getGraphics(Deferre dUpdateManager.java:68)
at
org.eclipse.draw2d.DeferredUpdateManager.repairDamage(Deferr edUpdateManager.java:133)
at
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:92)
at
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:82)
at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem .java:171)
at
org.eclipse.draw2d.LightweightSystem$2.handleEvent(Lightweig htSystem.java:93)

Il seems to us the culprit is the call
GraphicalViewerImpl.setcontent(null) to force the total update in the
disgram.

Julien
Re: SWTError: No more handles [message #22805 is a reply to message #22719] Wed, 02 October 2002 09:49 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

It sounds like you are leaking GCs. Try to find a place where you new a GC
and don't dispose it.
There is an SWT tool to help you track resource leaks. See the SWT article
on managing resources.

"julien" <julien@omondo.com> wrote in message
news:andbbk$ldp$1@rogue.oti.com...
> Randy Hudson wrote:
>
> > > I just passed to GEF 20020821. Nothing changed. The Eclipse crash
after I
> > > minimize a class and then maximize the class to display all members in
the
> > > case I have a huge diagram. It seems that problem is relative with the
> > > Label deleting. Is it helpfull to remove \"Overview\" thumbnail ?
>
> > It is probably a different exception, please post the .log stacktrace.
>
> Here you are:
> org.eclipse.swt.SWTError: No more handles
> at org.eclipse.swt.SWT.error(SWT.java:2144)
> at org.eclipse.swt.SWT.error(SWT.java:2051)
> at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:18 48)
> at org.eclipse.swt.graphics.GC.<init>(GC.java:70)
> at
>
org.eclipse.draw2d.BufferedGraphicsSource.getGraphics(Buffer edGraphicsSource
..java:63)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.getGraphics(Deferre dUpdateManager.j
ava:68)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.repairDamage(Deferr edUpdateManager.
java:133)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager
..java:92)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager
..java:82)
> at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem .java:171)
> at
>
org.eclipse.draw2d.LightweightSystem$2.handleEvent(Lightweig htSystem.java:93
)
>
> Il seems to us the culprit is the call
> GraphicalViewerImpl.setcontent(null) to force the total update in the
> disgram.
>
> Julien
>
>
>
Previous Topic:Dumb's man guide to porting GEF 2.0 application to GEF 1.0 / WSAD 4.0.3
Next Topic:Delete
Goto Forum:
  


Current Time: Thu Mar 13 13:55:04 EDT 2025

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

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

Back to the top