Intellij hang while coding, switch tab.

Answered

Here is the log. I was using 2 or 3 intellji tab. Switching and coding will make intellj hang and force quit. This issue happen many this few days. I tried to upgrade to latest version, invalid caches but the issue still exist

 

2025-01-20 18:09:45,404 [1703008] INFO - #c.i.l.j.s.JSLanguageServiceQueue - Error during language service queue initialization. com.intellij.openapi.progress.CeProcessCanceledException: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 20000 ms at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable$lambda$0(coroutines.kt:158) at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:85) at com.intellij.openapi.progress.CoroutinesKt.runBlockingCancellable(coroutines.kt:140) at com.intellij.openapi.progress.CoroutinesKt.runBlockingMaybeCancellable(coroutines.kt:176) at com.intellij.lang.javascript.service.JSLanguageServiceQueueImpl.lockCacheCancellable$lambda$26(JSLanguageServiceQueueImpl.kt:542) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan(JSLanguageServiceTracerUtil.kt:42) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan$default(JSLanguageServiceTracerUtil.kt:39) at com.intellij.lang.javascript.service.JSLanguageServiceQueueImpl.lockCacheCancellable(JSLanguageServiceQueueImpl.kt:534) at com.intellij.lang.javascript.service.JSLanguageServiceQueueImpl.executeNoBlocking(JSLanguageServiceQueueImpl.kt:254) at com.intellij.lang.javascript.service.JSLanguageServiceQueue.executeNoBlocking(JSLanguageServiceQueue.kt:86) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl$Companion.sendUpdateCodeFixesState(TypeScriptServerServiceImpl.kt:1451) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl$Companion.access$sendUpdateCodeFixesState(TypeScriptServerServiceImpl.kt:1403) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl._get_initializedCallback_$lambda$42$lambda$41$lambda$40$lambda$35(TypeScriptServerServiceImpl.kt:726) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan(JSLanguageServiceTracerUtil.kt:42) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan$default(JSLanguageServiceTracerUtil.kt:39) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl._get_initializedCallback_$lambda$42$lambda$41$lambda$40(TypeScriptServerServiceImpl.kt:726) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan(JSLanguageServiceTracerUtil.kt:42) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl._get_initializedCallback_$lambda$42$lambda$41(TypeScriptServerServiceImpl.kt:724) at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:54) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:272) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:262) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:863) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66) at com.intellij.openapi.application.ReadAction.run(ReadAction.java:53) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl._get_initializedCallback_$lambda$42(TypeScriptServerServiceImpl.kt:723) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl.createLanguageServiceQueue(TypeScriptServerServiceImpl.kt:560) at com.intellij.lang.typescript.compiler.languageService.TypeScriptServerServiceImpl.createLanguageServiceQueue(TypeScriptServerServiceImpl.kt:94) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase.computeProcessUnderLocks(JSAsyncLanguageServiceBase.kt:226) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase._get_process_$lambda$10$lambda$9(JSAsyncLanguageServiceBase.kt:202) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:314) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:262) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:863) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase._get_process_$lambda$10(JSAsyncLanguageServiceBase.kt:200) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan(JSLanguageServiceTracerUtil.kt:42) at com.intellij.lang.javascript.service.JSLanguageServiceTracerUtilKt.withServiceTraceSpan$default(JSLanguageServiceTracerUtil.kt:39) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase.getProcess(JSAsyncLanguageServiceBase.kt:199) at com.intellij.lang.javascript.service.JSLanguageServiceBase.getProcess(JSLanguageServiceBase.kt:42) at com.intellij.lang.typescript.compiler.TypeScriptCompilerService.getProcess(TypeScriptCompilerService.kt:115) at com.intellij.lang.typescript.compiler.TypeScriptCompilerService.getProcess(TypeScriptCompilerService.kt:63) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase.initializeServiceQueue(JSAsyncLanguageServiceBase.kt:234) at com.intellij.lang.javascript.service.JSAsyncLanguageServiceBase.checkAlive$lambda$7(JSAsyncLanguageServiceBase.kt:162) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:167) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:74) at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:83) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101) at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101) at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107) at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101) at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 20000 ms at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:188) at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:156) at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:498) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277) at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:105) ... 1 more 2025-01-20 18:09:45,448 [1703052] WARN - #c.i.d.PerformanceWatcherImpl - UI was frozen for 19873ms, details saved to /Users/ducvu/Library/Logs/JetBrains/IntelliJIdea2024.3/threadDumps-freeze-20250120-180930-IU-243.22562.218-Object.wait0-19sec 2025-01-20 18:10:05,441 [1723045] INFO - #c.i.l.j.s.JSLanguageServiceQueue - Error during language service queue initialization.

0
1 comment
Hi,
Does the problem go away if you temporarily disable all of the non-bundled plugins and restart the IDE? File | Settings | Plugins | ⚙ | Disable all downloaded plugins

If not, please provide IDE logs for analysis (entire archive): Help | Collect Logs and Diagnostic Data. I will search for exceptions, check automatically generated application thread dumps and your system environment settings.
Logs can be uploaded privately to our server at https://uploads.jetbrains.com. Make sure to share the id of the upload here so that I can find it.
0

Please sign in to leave a comment.