OpenLiberty / OpenLiberty/liberty-tools-eclipse

GHA Mac tests are failing with org.eclipse.swt.SWTException: Invalid thread access

Open
#555 1 comment 0 reactions 1 assignee View on GitHub

@awisniew90 is already working on this.

Since Mar 31, 2025.

testing
Dominant language
Java
Stars
16
Forks
20
Avg merge
2d 9h
Merged PRs (30d)
16

Description

!ENTRY org.eclipse.core.commands 4 2 2025-03-13 17:57:50.015
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.commands".
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4922)
at org.eclipse.swt.SWT.error(SWT.java:4837)
at org.eclipse.swt.SWT.error(SWT.java:4808)
at org.eclipse.swt.widgets.Display.error(Display.java:1211)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:962)
at org.eclipse.swt.widgets.Display.create(Display.java:946)
at org.eclipse.swt.graphics.Device.(Device.java:132)
at org.eclipse.swt.widgets.Display.(Display.java:800)
at org.eclipse.swt.widgets.Display.(Display.java:791)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1545)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.lambda$1(HandledContributionItem.java:174)
at org.eclipse.core.commands.Command$1.run(Command.java:529)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.core.commands.Command.fireCommandChanged(Command.java:522)
at org.eclipse.core.commands.Command.lambda$0(Command.java:1000)
at org.eclipse.core.commands.AbstractHandler.fireHandlerChanged(AbstractHandler.java:77)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.fireHandlerChanged(HandlerServiceHandler.java:189)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.handlerChanged(E4HandlerProxy.java:116)
at org.eclipse.core.commands.AbstractHandler.fireHandlerChanged(AbstractHandler.java:77)
at org.eclipse.ui.internal.handlers.HandlerProxy.lambda$0(HandlerProxy.java:242)
at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:116)
at org.eclipse.ui.internal.services.EvaluationReference.changed(EvaluationReference.java:100)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:105)
at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:358)
at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:374)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:200)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:164)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:102)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:144)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:982)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:235)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:134)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:126)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:229)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:531)
at org.eclipse.osgi.container.Module.doStop(Module.java:693)
at org.eclipse.osgi.container.Module.stop(Module.java:554)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:212)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:240)
at java.base/java.lang.Thread.run(Thread.java:1595)
***WARNING: Display must be created on main thread due to Cocoa restrictions. Use vmarg -XstartOnFirstThread

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.