Skip to content

IDE freezes (stuck in LanguageServerWrapper.lambda$start$6) #1620

Closed

Description

@floating-cat

Reported in IJPL-250834. Please see that issue link for more details.

From a user's report:

Steps to reproduce

  1. 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.
  2. 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).
  3. Start typing or, more consistently, press Backspace to delete characters in the editor.
  4. Observe that the IDE UI becomes unresponsive for several seconds, and sometimes a freeze is reported by the IDE's built-in performance monitor.
  5. 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)

threadDump-20260721-152225-1784618545833 (1).txt

Activity

  1. self-assigned this
    on Jul 22, 2026
  2. added
    bug
    on Jul 22, 2026
  3. added this to the 0.21.0 milestone on Jul 22, 2026
  4. moved this to In Progress in Java Toolingon Jul 22, 2026
  5. angelozerr commented on Jul 22, 2026

    @angelozerr
    Contributor

    Reported in IJPL-250834. Please see that issue link for more details.

    The issue seems not exist?

  6. angelozerr commented on Jul 22, 2026

    @angelozerr
    Contributor
  7. floating-cat commented on Jul 22, 2026

    @floating-cat
    Author

    @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!

  8. subchannel13 commented on Jul 27, 2026

    @subchannel13

    Hi! I'm the one who reported the issue on JetBrains Youstack. So far the 0.20.2-20260722-095644 version works without issues.

  9. floating-cat commented on Jul 29, 2026

    @floating-cat
    Author

    Because the user reported the issue is fixed in nightly builds, I am closing this issue.

  10. moved this from In Progress to Done in Java Toolingon Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions