Closed PanjiNamjaElf closed 2 years ago
Same here when doing a tab in the commit window:
Access is allowed from event dispatch thread only
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false
Current thread: Thread[Action Updater (Exclusive),4,main] 1188360638
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 2041053352
at com.intellij.openapi.application.impl.ApplicationImpl.throwThreadAccessException(ApplicationImpl.java:1035)
at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1018)
at com.intellij.openapi.editor.impl.view.EditorView.assertIsDispatchThread(EditorView.java:713)
at com.intellij.openapi.editor.impl.view.EditorView.visualToLogicalPosition(EditorView.java:191)
at com.intellij.openapi.editor.impl.EditorImpl.visualToLogicalPosition(EditorImpl.java:2268)
at com.intellij.openapi.editor.ex.util.EditorUtil.calcSurroundingRange(EditorUtil.java:517)
at com.intellij.openapi.editor.ex.util.EditorUtil.calcCaretLineRange(EditorUtil.java:479)
at com.github.lppedd.cc.CCExtensionsKt.getCurrentLineRange(CCExtensions.kt:215)
at com.github.lppedd.cc.editor.CommitTabAction$CommitTabHandler.isEnabled(CommitTabAction.kt:39)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:125)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:107)
at com.intellij.openapi.editor.actionSystem.EditorAction.updateForKeyboardAccess(EditorAction.java:111)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:149)
at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performDumbAwareUpdate$0(ActionUtil.java:131)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:145)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:637)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$updateActionReal$7(ActionUpdater.java:129)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:173)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.updateActionReal(ActionUpdater.java:130)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$0(ActionUpdater.java:112)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:623)
at com.intellij.openapi.actionSystem.impl.ActionUpdater$UpdateSessionImpl.presentation(ActionUpdater.java:737)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doUpdateActionsInner(IdeKeyEventDispatcher.java:673)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$4(IdeKeyEventDispatcher.java:618)
at com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$11(Utils.java:523)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084)
at com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$14(Utils.java:543)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$15(Utils.java:540)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$16(Utils.java:539)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
at com.intellij.openapi.actionSystem.impl.Utils.lambda$runUpdateSessionForInputEvent$18(Utils.java:538)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:246)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:32)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:225)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:214)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
WebStorm 2021.3.3 Build #WS-213.7172.31, built on March 18, 2022 Runtime version: 11.0.14.1+1-b1751.46 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 12 Non-Bundled Plugins: some.awesome (1.14) com.github.lppedd.idea-conventional-commit (0.19.0) zielu.gittoolbox (212.8.8) org.sonarlint.idea (6.6.0.45106) izhangzhihao.rainbow.brackets (6.21) com.microsoft.vso.idea (1.162.0)
@PanjiNamjaElf @rklec IDEA yup, this was an issue in my customized tabbing behavior inside the commit panel. Basically I was trying to "write" (only conceptually) from a "read-only" thread. This would result in a deadlock.
Sometime after do a commit I got some error like this:
stacktrace.txt
threadDump.txt