[jbosstools-issues] [JBoss JIRA] (JBIDE-10202) VPE has leaks of resources which results to "Unhandled event loop exception - org.eclipse.swt.SWTError: No more handles"

Yahor Radtsevich (Updated) (JIRA) jira-events at lists.jboss.org
Mon Nov 21 11:49:41 EST 2011


     [ https://issues.jboss.org/browse/JBIDE-10202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yahor Radtsevich updated JBIDE-10202:
-------------------------------------

    Priority: Major  (was: Critical)


Yes, here is an image which is not disposed and it should be fixed.

But it hardly could be the reason of the mentioned error, since it is only one handle per one VPE opening\closing. You have to open\close VPE several thousand times to get this error.
                
> VPE has leaks of resources which results to "Unhandled event loop exception - org.eclipse.swt.SWTError: No more handles"
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-10202
>                 URL: https://issues.jboss.org/browse/JBIDE-10202
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M4
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Yahor Radtsevich
>
> Sometimes this issue leads to 
> {code}
> Error
> Unhandled event loop exception
> org.eclipse.swt.SWTError: No more handles
> 	at org.eclipse.swt.SWT.error(SWT.java:4308)
> 	at org.eclipse.swt.SWT.error(SWT.java:4197)
> 	at org.eclipse.swt.SWT.error(SWT.java:4168)
> 	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
> 	at org.eclipse.swt.widgets.Control.createHandle(Control.java:704)
> 	at org.eclipse.swt.widgets.Composite.createHandle(Composite.java:305)
> 	at org.eclipse.swt.widgets.Control.createWidget(Control.java:744)
> 	at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:134)
> 	at org.eclipse.swt.widgets.Control.<init>(Control.java:112)
> 	at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:75)
> {code}
> and only restart of whole eclipse can helps.
> ImageDescriptor -> createImage() - from documentation to this function:
> {code}
> * Creates and returns a new SWT image for this image descriptor. Note that
> * each call returns a new SWT image object. The returned image must be
> * explicitly disposed using the image's dispose call. The image will not be
> * automatically garbage collected. ...
> {code}
> here you create images, but did not dispose it:
> {code}
> at org.jboss.tools.vpe.editor.toolbar.format.TextFormattingToolBar.createItems(TextFormattingToolBar.java:180)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list