[jbosstools-issues] [JBoss JIRA] (JBIDE-17624) (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException

Snjezana Peco (JIRA) issues at jboss.org
Tue Jul 1 10:52:25 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981090#comment-12981090 ] 

Snjezana Peco commented on JBIDE-17624:
---------------------------------------

The issue happens if you click the "Show Early access" action while the Central editor is refreshing the page.
The issue isn't OS specific. All you need to do is to click the action quickly.

The PR fixes the issue by disabling the "Show Early access" action (as well as "Select All"/"Deselect all" actions) during refreshing.


> (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-17624
>                 URL: https://issues.jboss.org/browse/JBIDE-17624
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 4.2.0.Beta2
>            Reporter: Fred Bricon
>            Assignee: Snjezana Peco
>            Priority: Minor
>             Fix For: 4.2.0.Beta3
>
>
> In Central > Software/Update page, (un)checking Early Access while refreshing the connector logs the following exception : 
> {noformat}
> org.eclipse.swt.SWTException: Graphic is disposed
> 	at org.eclipse.swt.SWT.error(SWT.java:4441)
> 	at org.eclipse.swt.SWT.error(SWT.java:4356)
> 	at org.eclipse.swt.SWT.error(SWT.java:4327)
> 	at org.eclipse.swt.graphics.Image.getBounds(Image.java:1164)
> 	at org.eclipse.swt.widgets.Label.computeSize(Label.java:149)
> 	at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> 	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> 	at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> 	at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> 	at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> 	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> 	at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> 	at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> 	at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> 	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> 	at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> 	at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> 	at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> 	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> 	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197)
> 	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
> 	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1276)
> 	at org.eclipse.swt.widgets.Composite.layout(Composite.java:665)
> 	at org.jboss.tools.central.editors.xpl.DiscoveryViewer.updateFilters(DiscoveryViewer.java:628)
> 	at org.jboss.tools.central.editors.SoftwarePage.handleEarlyAccessChanged(SoftwarePage.java:536)
> 	at org.jboss.tools.central.editors.SoftwarePage.access$8(SoftwarePage.java:486)
> 	at org.jboss.tools.central.editors.SoftwarePage$5.widgetSelected(SoftwarePage.java:229)
> {noformat}
> scrolledContents is checked for disposed state, but the error occurs within layout()
> {code}
> if (this.scrolledContents != null && !this.scrolledContents.isDisposed()) {
> 			this.scrolledContents.layout(true, true); //crashes here
> 			...
> 		}
> {code}
> I don't know how we can prevent that



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list