Skip to content

java.util.concurrent.CompletionException: org.eclipse.swt.SWTException: Invalid thread access #15

@FreHu

Description

@FreHu

If I have ABAP traces focused and I do a where-used-list on something, the UI gets stuck in this state:
image

support.zip
I originally reported this as an ADT issue but it turns out it's caused by the plugin (I can't reproduce using a clean ADT).
In the log file in the support.zip there are hundreds of errors like this:

!ENTRY org.eclipse.jface.text 4 0 2022-01-31 13:19:23.199
!MESSAGE org.eclipse.swt.SWTException: Invalid thread access
!STACK 0
java.util.concurrent.CompletionException: org.eclipse.swt.SWTException: Invalid thread access
 at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
 at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
 at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766)
 at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: org.eclipse.swt.SWTException: Invalid thread access
 at org.eclipse.swt.SWT.error(SWT.java:4907)
 at org.eclipse.swt.SWT.error(SWT.java:4822)
 at org.eclipse.swt.SWT.error(SWT.java:4793)
 at org.eclipse.swt.widgets.Widget.error(Widget.java:445)
 at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:365)
 at org.eclipse.swt.widgets.Widget.getData(Widget.java:539)
 at org.eclipse.jface.text.codemining.CodeMiningReconciler.mustInstall(CodeMiningReconciler.java:55)
 at org.eclipse.jface.text.codemining.CodeMiningReconciler.install(CodeMiningReconciler.java:38)
 at abap.codemining.plugin.AbapCodeInsightPlugin.reinitViewInReconcilers(AbapCodeInsightPlugin.java:58)
 at abap.codemining.plugin.AbapCodeInsightPluginHelper.reinitViewInReconcilers(AbapCodeInsightPluginHelper.java:20)
 at abap.codemining.editor.AbapCodeMiningProvider.lambda$0(AbapCodeMiningProvider.java:61)
 at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764)
 ... 6 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions