redhat-developer / intellij-quarkus

IntelliJ Quarkus Tools
Eclipse Public License 2.0
114 stars 44 forks source link

Too many non-blocking read actions submitted at once #1246

Open starksm64 opened 8 months ago

starksm64 commented 8 months ago

Quite often on the load of the quarkus core project I'm getting the following error being shown by Intellij:

java.lang.Throwable: Too many non-blocking read actions submitted at once. Please use coalesceBy, BoundedTaskExecutor or another way of limiting the number of concurrently running threads.: 11 with similar stack traces are currently active
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
    at com.intellij.openapi.application.impl.SubmissionTracker.preventTooManySubmissions(SubmissionTracker.java:45)
    at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.<init>(NonBlockingReadActionImpl.java:272)
    at com.intellij.openapi.application.impl.NonBlockingReadActionImpl.submit(NonBlockingReadActionImpl.java:227)
    at com.redhat.devtools.intellij.lsp4ij.internal.PromiseToCompletableFuture.nonBlockingReadActionPromise(PromiseToCompletableFuture.java:156)
    at com.redhat.devtools.intellij.lsp4ij.internal.PromiseToCompletableFuture.init(PromiseToCompletableFuture.java:79)
    at com.redhat.devtools.intellij.lsp4ij.client.LSPCompletableFuture.<init>(LSPCompletableFuture.java:30)
    at com.redhat.devtools.intellij.lsp4ij.client.IndexAwareLanguageClient.runAsBackground(IndexAwareLanguageClient.java:54)
    at com.redhat.devtools.intellij.qute.lsp.QuteLanguageClient.getDataModelProject(QuteLanguageClient.java:153)
    at jdk.internal.reflect.GeneratedMethodAccessor2951.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
    at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
    at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
    at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
    at com.redhat.devtools.intellij.lsp4ij.LanguageServerWrapper.lambda$start$1(LanguageServerWrapper.java:353)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
fbricon commented 8 months ago

we've tried to fix that error before. Which version of quarkus tools are you using?

starksm64 commented 8 months ago

This is for the current quarkus main repo( https://github.com/quarkusio/quarkus.git) which is just post 3.5.0. It is not for a specific quarkus app.

On Mon, Oct 30, 2023 at 11:18 AM Fred Bricon @.***> wrote:

we've tried to fix that error before. Which version of quarkus tools are you using?

— Reply to this email directly, view it on GitHub https://github.com/redhat-developer/intellij-quarkus/issues/1246#issuecomment-1785699995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRDMXGIM6AXBMYVKBCZE3YB7OP5AVCNFSM6AAAAAA6WMBSQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGY4TSOJZGU . You are receiving this because you authored the thread.Message ID: @.***>

fbricon commented 8 months ago

I meant https://plugins.jetbrains.com/plugin/13234-quarkus-tools/versions/stable/420523 Are you using 1.29?

starksm64 commented 8 months ago

The plugin version is 1.29.0.583

On Mon, Oct 30, 2023 at 11:38 AM Fred Bricon @.***> wrote:

I meant https://plugins.jetbrains.com/plugin/13234-quarkus-tools/versions/stable/420523 Are you using 1.29?

— Reply to this email directly, view it on GitHub https://github.com/redhat-developer/intellij-quarkus/issues/1246#issuecomment-1785734119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACRDMS3BL62TKEC2QDWXJDYB7QYJAVCNFSM6AAAAAA6WMBSQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVG4ZTIMJRHE . You are receiving this because you authored the thread.Message ID: @.***>

gastaldi commented 5 months ago

I can confirm this also happens in 1.30.1

angelozerr commented 5 months ago

Thanks @gastaldi, I need to undertsnad how to reproduce this issue.

gastaldi commented 4 months ago

@angelozerr I get this error when opening the https://github.com/quarkusio/quarkus project in IntelliJ