Error launching Idea Community 2024.1 on first launch
Hello,
I am upgrading IntelliJ Idea Community from a very old version, 2018.3.2 to the latest release 2024.1. After I upgrade I see the following error message the first time I launch the application.
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
com.intellij.diagnostic.PluginException: Access from Event Dispatch Thread (EDT) is not allowed; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[AWT-EventQueue-0,6,main] 239646263 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same) [Plugin: com.jetbrains.codeWithMe]
at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:53)
at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext$suspendImpl(LazyInstanceHolder.kt:87)
at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstanceInCallerContext(LazyInstanceHolder.kt)
at com.intellij.serviceContainer.ComponentManagerImplKt$getOrCreateInstanceBlocking$3.invokeSuspend(ComponentManagerImpl.kt:1548)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1636)
at com.intellij.serviceContainer.ComponentManagerImplKt$runBlockingInitialization$1.invoke(ComponentManagerImpl.kt:1627)
at com.intellij.openapi.progress.ContextKt.prepareThreadContext(context.kt:83)
at com.intellij.serviceContainer.ComponentManagerImplKt.runBlockingInitialization(ComponentManagerImpl.kt:1627)
at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1547)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:754)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:698)
at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:30)
at com.intellij.openapi.actionSystem.ex.ActionManagerEx$Companion.getInstanceEx(ActionManagerEx.kt:30)
at com.intellij.openapi.keymap.impl.KeymapImpl$actionIdToShortcuts$1.invoke(KeymapImpl.kt:93)
at com.intellij.openapi.keymap.impl.KeymapImpl$actionIdToShortcuts$1.invoke(KeymapImpl.kt:86)
at com.intellij.util.concurrency.SynchronizedClearableLazy._get_value_$lambda$1$lambda$0(SynchronizedClearableLazy.kt:41)
at java.base/java.util.concurrent.atomic.AtomicReference.updateAndGet(AtomicReference.java:210)
at com.intellij.util.concurrency.SynchronizedClearableLazy.getValue(SynchronizedClearableLazy.kt:40)
at com.intellij.openapi.keymap.impl.KeymapImpl.getShortcuts(KeymapImpl.kt:537)
at com.intellij.openapi.keymap.KeymapUtil.getActiveKeymapShortcuts(KeymapUtil.java:79)
at com.intellij.openapi.keymap.KeymapUtil.getActiveKeymapShortcuts(KeymapUtil.java:74)
at com.intellij.openapi.actionSystem.CommonShortcuts.getCloseActiveWindow(CommonShortcuts.java:110)
at com.intellij.openapi.ui.DialogWrapper.registerKeyboardShortcuts(DialogWrapper.java:1792)
at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1740)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1703)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(DialogWrapper.java:1717)
at com.intellij.ide.gdpr.AgreementUiBuilder.build$intellij_platform_ide_impl(AgreementUi.kt:152)
at com.intellij.ide.gdpr.AgreementUiKt.showAgreementUi(AgreementUi.kt:29)
at com.intellij.ide.gdpr.Agreements.showEndUserAndDataSharingAgreements(Agreements.kt:24)
at com.intellij.platform.ide.bootstrap.EuaKt$prepareShowEuaIfNeededTask$2$1.invoke(eua.kt:56)
at com.intellij.platform.ide.bootstrap.EuaKt$prepareShowEuaIfNeededTask$2$1.invoke(eua.kt:55)
at com.intellij.platform.ide.bootstrap.EuaKt$prepareShowEuaIfNeededTask$prepareAndExecuteInEdt$2$1.invokeSuspend(eua.kt:48)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:326)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Access from Event Dispatch Thread (EDT) is not allowed; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[AWT-EventQueue-0,6,main] 239646263 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:180)
at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:174)
at com.intellij.util.concurrency.ThreadingAssertions.assertBackgroundThread(ThreadingAssertions.java:88)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.kt:122)
at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.<init>(BackendActionManager.kt:17)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:49)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:308)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:42)
at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:31)
... 72 more
-----
Your JRE: 17.0.11+1-b1207.24 amd64 (JetBrains s.r.o.)
C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2024.1.3\jbr
Before installing I maker sure the application is not running and I uninstall the old version first. I do not see he error with a clean install. If I close and relaunch the application, it loads fine.
Any idea what the issue might be?
Please sign in to leave a comment.
Your request will be processed shortly.
Meanwhile, take a look at the three common crash scenarios below. If your problem fits the description, follow the link next to it to view suggested solutions.
**Case 1: IDE is not opening at all. Nothing happens when you launch it or it terminates right after launch**
--> **SOLUTIONS**
**Case 2: IDE starts up fine and loads your project, but exits abruptly some time afterwards**
--> **SOLUTIONS**
**Case 3: IDE becomes unresponsive to mouse input, UI is frozen or blank**
**-->** **SOLUTIONS**
If you tried all of the steps and nothing helps, or the symptoms of your problem are different, please reply to this email and provide the diagnostic results and additional information so that we can analyze it and help you further.
You are also welcome to mark this ticket as solved in case our suggestions helped to fix your problem.
Best regards,
JetBrains Support Team
Thanks,
I didn't find links for the 3 cases, however they are not similar to issue that I am experiencing. I have about 60 machines that I need to update in my organization. The error message appears only on the first launch after updating the application. The application launches fine if I close and relaunch it.
I tried the update on a couple of other machines and was not able to replicate it. The issue seems to be specific to the one machine. Since the error only shows up on first launch after upgrading you can close this, thanks.