[jbosstools-issues] [JBoss JIRA] (JBIDE-10202) VPE resource leak in TextFormattingToolBar

Alexey Kazakov (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 5 14:50:40 EST 2011


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

Alexey Kazakov updated JBIDE-10202:
-----------------------------------

    Fix Version/s: 3.3.0.M5
                       (was: 3.3.0.Beta1)

    
> VPE resource leak in TextFormattingToolBar
> ------------------------------------------
>
>                 Key: JBIDE-10202
>                 URL: https://issues.jboss.org/browse/JBIDE-10202
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: Visual Page Editor core
>    Affects Versions: 3.3.0.M4
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Yahor Radtsevich
>             Fix For: 3.3.0.M5
>
>
> 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