Repository navigation
Closed
Description
Reported in IJPL-250834. Please see that issue link for more details.
From a user's report:
Steps to reproduce
- Open a mixed-language project (e.g., Kotlin + Spring Boot + YAML + Markdown) with the lsp4ij (Red Hat Language Server Protocol for IntelliJ) plugin installed and enabled.
- Open any source file (e.g., Kotlin controller, service, or Java file) that is also processed by a language server (e.g.,
harper-ls.exe,embeddings-server). - Start typing or, more consistently, press Backspace to delete characters in the editor.
- Observe that the IDE UI becomes unresponsive for several seconds, and sometimes a freeze is reported by the IDE's built-in performance monitor.
- The issue occurs intermittently but is more frequent when editing files under active indexing or when the language server is processing.
Actual result (faulty result)
The IDE becomes unresponsive (UI thread blocked) for several seconds, sometimes causing the "IDE is not responding" warning. In extreme cases, the IDE may eventually respond after tens of seconds, or the user may need to force‑close it.
From the thread dump:
"AWT-EventQueue-0" (EDT/UI thread) -> wanted to use a write action and waiting for all read action to be finished.
"JobScheduler FJ pool 13/19" -> used a read action and stuck in LanguageServerWrapper.lambda$start$6 due to java.lang.Object@177fafed owned by "JobScheduler FJ pool 9/19".
"JobScheduler FJ pool 9/19": -> stuck in StreamMessageConsumer.consume and FileOutputStream.writeBytes.
"JobScheduler FJ pool 13/19" prio=0 tid=0x0 nid=0x0 blocked
java.lang.Thread.State: BLOCKED
on java.lang.Object@177fafed owned by "JobScheduler FJ pool 9/19" Id=6915
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:66)
at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$6(LanguageServerWrapper.java:458)
at com.redhat.devtools.lsp4ij.LanguageServerWrapper$$Lambda/0x000000001d916c00.run(Unknown Source)
at [email protected]/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1825)
at [email protected]/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1817)
at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.helpAsyncBlocker(ForkJoinPool.java:1570)
at [email protected]/java.util.concurrent.ForkJoinPool.helpAsyncBlocker(ForkJoinPool.java:2674)
at [email protected]/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1954)
at [email protected]/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2116)
at com.redhat.devtools.lsp4ij.internal.CompletableFutures.waitUntilDone(CompletableFutures.java:189)
at com.redhat.devtools.lsp4ij.internal.CompletableFutures.waitUntilDone(CompletableFutures.java:115)
at com.redhat.devtools.lsp4ij.features.codeAction.intention.LSPIntentionCodeActionSupport.getCodeActionAt(LSPIntentionCodeActionSupport.java:160)
at com.redhat.devtools.lsp4ij.features.codeAction.LSPLazyCodeActionIntentionAction.loadCodeActionIfNeeded(LSPLazyCodeActionIntentionAction.java:166)
at com.redhat.devtools.lsp4ij.features.codeAction.LSPLazyCodeActionIntentionAction.isAvailable(LSPLazyCodeActionIntentionAction.java:77)
at com.redhat.devtools.lsp4ij.features.codeAction.intention.LSPIntentionAction.isAvailable(LSPIntentionAction.java:62)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$Companion.availableFor(ShowIntentionActionsHandler.kt:154)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.availableFor(ShowIntentionActionsHandler.kt)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.lambda$getRegisteredIntentionActions$0(ShowIntentionsPass.java:393)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$$Lambda/0x000000001de7e000.invoke(Unknown Source)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$Companion.chooseBetweenHostAndInjected(ShowIntentionActionsHandler.kt:217)
at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseBetweenHostAndInjected(ShowIntentionActionsHandler.kt)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getRegisteredIntentionActions(ShowIntentionsPass.java:392)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:364)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:262)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:81)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:459)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$$Lambda/0x000000001a25f400.invoke(Unknown Source)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:29)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:455)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$$Lambda/0x000000001a25f000.run(Unknown Source)
at com.intellij.openapi.application.RunnableToLambda.invoke(coroutines.kt:343)
at com.intellij.openapi.application.RunnableToLambda.invoke(coroutines.kt:341)
at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:907)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1270)
"JobScheduler FJ pool 9/19" prio=0 tid=0x0 nid=0x0 runnable
java.lang.Thread.State: RUNNABLE
(in native)
at [email protected]/java.io.FileOutputStream.writeBytes(Native Method)
at [email protected]/java.io.FileOutputStream.implWriteBytes(FileOutputStream.java:436)
at [email protected]/java.io.FileOutputStream.write(FileOutputStream.java:431)
at [email protected]/java.lang.Process$PipeOutputStream.write(Process.java:1027)
at [email protected]/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:123)
at [email protected]/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:203)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:69)
at com.redhat.devtools.lsp4ij.LanguageServerWrapper.lambda$start$6(LanguageServerWrapper.java:458)
at com.redhat.devtools.lsp4ij.LanguageServerWrapper$$Lambda/0x000000001d916c00.run(Unknown Source)
at [email protected]/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1825)
at [email protected]/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1817)
at [email protected]/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)
at [email protected]/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
at [email protected]/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)
at [email protected]/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Type
Projects
- StatusShow more project fieldsDone
Activity
angelozerr commentedon Jul 22, 2026
The issue seems not exist?
fix: IDE freezes (stuck in LanguageServerWrapper.lambda$start$6)
angelozerr commentedon Jul 22, 2026
@floating-cat please install https://github.com/redhat-developer/lsp4ij#testing-nightly-builds and tell me if it is working better. Thanks!
floating-cat commentedon Jul 22, 2026
@angelozerr Okay. I just noticed that this issue was reported by a user with limited visibility, so you should be able to view it. I will ask the reporter to try the nightly version in that issue.
Thanks for the quick fix!
subchannel13 commentedon Jul 27, 2026
Hi! I'm the one who reported the issue on JetBrains Youstack. So far the 0.20.2-20260722-095644 version works without issues.
floating-cat commentedon Jul 29, 2026
Because the user reported the issue is fixed in nightly builds, I am closing this issue.