microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception Access is allowed from event dispatch thread only com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2022.3 IU-223.7571.182
OS: Linux
JDK: JetBrains s.r.o. 17.0.5
Plugin version: 3.70.1-2022.3
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,0,37,3840x2123,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=Access is allowed from event dispatch thread only, throwable=com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false
Current thread: Thread[ApplicationImpl pooled thread 3,4,main] 1834604953
at com.microsoft.azure.toolkit.intellij.azuresdk.referencebook.AzureSdkTreePanel.loadData(AzureSdkTreePanel.java:191)
at com.microsoft.azure.toolkit.intellij.azuresdk.referencebook.AzureSdkTreePanel.refresh(AzureSdkTreePanel.java:147)
at com.microsoft.azure.toolkit.intellij.azuresdk.referencebook.AzureSdkReferenceBookPanel.lambda$new$0(AzureSdkReferenceBookPanel.java:34)
at com.microsoft.azure.toolkit.lib.common.task.AzureTask.lambda$new$0(AzureTask.java:117)
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.execute(AzureOperationAspect.java:102
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AzureSdkTreePanel.java at loadData (line 191) and refresh (line 147), then trace the call from AzureSdkReferenceBookPanel.java line 34. Reproduce the IntelliJ error using the reported environment and verify that refreshing the Azure SDK reference book no longer raises the event-dispatch-thread exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100