Menu

Illegal thread access to SWT thread

2017-01-26
2017-01-26
  • Clemens Eisserer

    Hello,

    I wasn't able to find the project's bug tracker, so I'll simply post this issue here.
    When an invalid xdc file is loaded, the error reporting tries to modify SWT widgets from within a worker thread:

    org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(SWT.java:4533)
    at org.eclipse.swt.SWT.error(SWT.java:4448)
    at org.eclipse.swt.SWT.error(SWT.java:4419)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
    at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:373)
    at org.eclipse.swt.widgets.Control.redraw(Control.java:2419)
    at org.eclipse.swt.custom.StyledText.redraw(StyledText.java:7539)
    at org.eclipse.ui.console.TextConsolePage.propertyChange(TextConsolePage.java:262)
    at org.eclipse.ui.console.AbstractConsole$PropertyNotifier.run(AbstractConsole.java:96)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.console.AbstractConsole$PropertyNotifier.notify(AbstractConsole.java:111)
    at org.eclipse.ui.console.AbstractConsole.firePropertyChange(AbstractConsole.java:229)
    at org.eclipse.ui.console.IOConsoleOutputStream.setColor(IOConsoleOutputStream.java:139)
    at org.epsg.openconfigurator.console.OpenConfiguratorMessageConsole.getErrorMessageStream(OpenConfiguratorMessageConsole.java:128)
    at org.epsg.openconfigurator.console.OpenConfiguratorMessageConsole.printErrorMessage(OpenConfiguratorMessageConsole.java:172)
    at org.epsg.openconfigurator.model.PowerlinkRootNode.importNodes(PowerlinkRootNode.java:739)
    at org.epsg.openconfigurator.editors.project.IndustrialNetworkProjectEditor$4.run(IndustrialNetworkProjectEditor.java:538)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Best regards, Clemens

     
  • Powerlink-team Kalycito

    Hello Clemens,

    Could you please share the XDC file to support in reproducibilty at our desk. What is the version of openCONFIGURATOR running? Is this behaviour consistent?

    Regards,
    Powerlink-team-Kalycito

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.