Start Failed, Internal error: recovering IDE to the working state after the critical startup error

Symptoms

IDE shows the Start Failed dialog with the exception stacktrace and the following text:

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

Cause

There are multiple possible causes for this issue: broken or incompatible plug-in, corrupted IDE installation files, failed patch update, broken caches or damaged configuration.

It may be hard to guess the root case from the exception stacktrace.

Resolution

Please try the following steps one by one until the issue is resolved:

  1. In case of "java.nio.file.AccessDeniedException: ...plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe", please see this Copilot discussion and the corresponding issue.
  2. If you get "java.net.BindException: Address already in use: bind" exception, please refer to IDEA-238995 for the workaround.
  3. Delete the third-party plug-ins directory (idea.plugins.path in the user's home directory, depends on the OS and IDE version. Please be aware that default locations have changed in 2020.1 release). You can bisect the plug-ins to find the offending one and remove only that plug-in, keeping the working plug-ins.

    Note: if the installation is managed by the Toolbox App, plug-ins directory will be located next to the application install location which can be found from the Toolbox properties of the installed app. Look for the directory name starting with the build number and ending with the .plugins, like 192.5728.98.plugins.
  4. Download and install the IDE again, either from the official site or using the Toolbox App. Your settings and projects will be preserved. When installing from .tar.gz on Linux make sure to unpack into the new empty directory, not on the top of the existing installation.
  5. Delete the IDE system (idea.system.path) directory.
  6. In most cases the issue should be already resolved, but if the IDE still doesn't start with the same error dialog, you can also try to backup and delete the configuration directory (idea.config.path).
  7. Contact support with the full exception stacktrace (you can copy/paste it from the error dialog).

Feedback

We'd appreciate if you report all such issues to the support team or directly to the issue tracker. We are trying to eliminate the root cases and make the IDE recovery process more seamless.

115 out of 548 found this helpful
400 comments

ilhami, Elazarg

We updated the document to mention the issue caused by the Copilot plug-in update, we link to https://github.com/orgs/community/discussions/17298 and https://youtrack.jetbrains.com/issue/IJPL-148314:

 

0

In my case it was due to a hard drive that was no longer there. My idea.system.path and idea.log.path (defined in the %APPDATA%\JetBrains\Rider2023.2\idea.properties file) was pointing to a path wherein that hard drive letter no longer exists, so I had to change it manually. Then Rider was finally started up fine.

0

 

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
kotlinx.coroutines.JobCancellationException: Parent job is Cancelling; job=UndispatchedCoroutine{Cancelling}@52dc7a82
Caused by: java.lang.NoClassDefFoundError: io/opentelemetry/sdk/OpenTelemetrySdkBuilder
   at com.intellij.platform.ide.bootstrap.StartupUtil$startApplication$7.invokeSuspend(main.kt:244)
   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.lang.ClassNotFoundException: io.opentelemetry.sdk.OpenTelemetrySdkBuilder
   at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:248)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
   ... 7 more
-----
Your JRE: 17.0.11+1-b1207.24 amd64 (JetBrains s.r.o.)
/home/peter/Programs/pycharm-community-2023.2/jbr

 

 

Happened with my PyCharm after I failed to upgrade my Idea.

 

Upd.: 

Looks like, after PyCharm update, the desktop shortcut was not updated properly, leading to such behaviour.

Edited by Ussx Hares
0

The IDE failed to install or update some plugins.
Please try again, and if the problem persists, please report it
to https://jb.gg/ide/critical-startup-errors

The cause: java.nio.file.AccessDeniedException: C:\Users\xxx\AppData\Roaming\JetBrains\IntelliJIdea2023.3\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe

0

Yidasanqian Please see resolution point 1 in this document.

0

My workaround:

Before updating CoPilot Plugin:

- Close all projects 

- Disable the CoPilot Plugin. 

- Restart WebStorm, dont open any projects

- Go to plugins, enable & update plugin

- Restart,  and voila;-)

0

Today, Win10 Pro restarted, IDEA can't launch:

I cannot copy the whole stacktrace.

I uninstalled and installed the fresh IDEA Ultimate with no effect.

The same for 2023.3 version.

Edit: Similar problem with Community Edition 2023.2.7:

Edited by Bartek
0

@Bartek Try to remove the Kotlin plugin-related files from C:\Users\<your_system_name>\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins to see if it helps.

0

I had the following system variable set:

JAVA_TOOL_OPTIONS=UTF16

Once removed everything works like a charm.

 

@Lejia, thanks for support.

0

I am not able to install my github copilot in android studio

 

The IDE failed to install or update some plugins.
Please try again, and if the problem persists, please report it
to https://jb.gg/ide/critical-startup-errors

The cause: java.nio.file.AccessDeniedException: C:\Users\Suraj Kumar Sahoo\AppData\Roaming\Google\AndroidStudio2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe

 

Edited by Surajkumarsyn479
0

Surajkumarsyn479 This specific case with the link to the workaround is described in the very first paragraph of the document.

0

I am trying to update a plugin “Codium” but after the IDE restart, I receive the error below.
 

0

Ziafat This looks similar to the problem with Copilot described in the first item of the document. Killing an external process started by the plug-in or rebooting (in case you can't find the specific process) should help.

0

Well, here's a new one, for PyCharm:

java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
    at java.base/java.nio.file.FileChannelLinesSpliterator.readLine(FileChannelLinesSpliterator.java:192)
    at java.base/java.nio.file.FileChannelLinesSpliterator.tryAdvance(FileChannelLinesSpliterator.java:120)
    at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
    at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$lazyMap$1.invoke(EarlyAccessRegistryManager.kt:41)
    at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$lazyMap$1.invoke(EarlyAccessRegistryManager.kt:30)
    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.util.registry.EarlyAccessRegistryManager.getString(EarlyAccessRegistryManager.kt:84)
    at com.intellij.openapi.util.BuildNumber.getPluginCompatibleBuild(BuildNumber.java:306)
    at com.intellij.openapi.util.BuildNumber.fromPluginCompatibleBuild(BuildNumber.java:107)
    at com.intellij.ide.plugins.PluginManagerCore.getBuildNumber(PluginManagerCore.kt:408)
    at com.intellij.ide.plugins.DescriptorListLoadingContext$1.invoke(DescriptorListLoadingContext.kt:25)
    at com.intellij.ide.plugins.DescriptorListLoadingContext$1.invoke(DescriptorListLoadingContext.kt:25)
    at com.intellij.ide.plugins.DescriptorListLoadingContext.getDefaultVersion(DescriptorListLoadingContext.kt:53)
    at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.readExternal(IdeaPluginDescriptorImpl.kt:230)
    at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.createSub(IdeaPluginDescriptorImpl.kt:182)
    at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.readExternal(IdeaPluginDescriptorImpl.kt:198)
    at com.intellij.ide.plugins.PluginDescriptorLoader.loadCoreProductPlugin(PluginDescriptorLoader.kt:688)
    at com.intellij.ide.plugins.PluginDescriptorLoader.access$loadCoreProductPlugin(PluginDescriptorLoader.kt:1)
    at com.intellij.ide.plugins.PluginDescriptorLoader$loadCoreModules$2.invokeSuspend(PluginDescriptorLoader.kt:625)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
    at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:274)
    at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:337)
    at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:189)
    at java.base/java.io.BufferedReader.fill(BufferedReader.java:162)
    at java.base/java.io.BufferedReader.readLine(BufferedReader.java:329)
    at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
    at java.base/java.nio.file.FileChannelLinesSpliterator.readLine(FileChannelLinesSpliterator.java:190)
    ... 28 more

-----
Your JRE: 17.0.11+1-b1207.24 amd64 (JetBrains s.r.o.)
0

I could have sworn I already posted this for PyCharm, but in any case same thing is happening with PHPStorm.

java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
   at java.base/java.nio.file.FileChannelLinesSpliterator.readLine(FileChannelLinesSpliterator.java:189)
   at java.base/java.nio.file.FileChannelLinesSpliterator.tryAdvance(FileChannelLinesSpliterator.java:117)
   at java.base/java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681)
   at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$lazyMap$1.invoke(EarlyAccessRegistryManager.kt:41)
   at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$lazyMap$1.invoke(EarlyAccessRegistryManager.kt:30)
   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.util.registry.EarlyAccessRegistryManager.getString(EarlyAccessRegistryManager.kt:84)
   at com.intellij.openapi.util.BuildNumber.getPluginCompatibleBuild(BuildNumber.java:306)
   at com.intellij.openapi.util.BuildNumber.fromPluginCompatibleBuild(BuildNumber.java:107)
   at com.intellij.ide.plugins.PluginManagerCore.getBuildNumber(PluginManagerCore.kt:442)
   at com.intellij.ide.plugins.DescriptorListLoadingContext$1.invoke(DescriptorListLoadingContext.kt:25)
   at com.intellij.ide.plugins.DescriptorListLoadingContext$1.invoke(DescriptorListLoadingContext.kt:25)
   at com.intellij.ide.plugins.DescriptorListLoadingContext.getDefaultVersion(DescriptorListLoadingContext.kt:53)
   at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.createSub$intellij_platform_core_impl(IdeaPluginDescriptorImpl.kt:224)
   at com.intellij.ide.plugins.PluginDescriptorLoader.loadProductModule(PluginDescriptorLoader.kt:1022)
   at com.intellij.ide.plugins.PluginDescriptorLoader.loadModuleDescriptors(PluginDescriptorLoader.kt:968)
   at com.intellij.ide.plugins.PluginDescriptorLoader.loadCoreProductPlugin(PluginDescriptorLoader.kt:943)
   at com.intellij.ide.plugins.PluginDescriptorLoader.access$loadCoreProductPlugin(PluginDescriptorLoader.kt:1)
   at com.intellij.ide.plugins.PluginDescriptorLoader$loadPluginDescriptorsImpl$2.invokeSuspend(PluginDescriptorLoader.kt:615)
   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
   at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:279)
   at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:405)
   at java.base/sun.nio.cs.StreamDecoder.lockedRead(StreamDecoder.java:217)
   at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
   at java.base/java.io.BufferedReader.fill(BufferedReader.java:160)
   at java.base/java.io.BufferedReader.implReadLine(BufferedReader.java:370)
   at java.base/java.io.BufferedReader.readLine(BufferedReader.java:353)
   at java.base/java.io.BufferedReader.readLine(BufferedReader.java:436)
   at java.base/java.nio.file.FileChannelLinesSpliterator.readLine(FileChannelLinesSpliterator.java:187)
   ... 26 more
-----
JRE: 21.0.3+13-b509.4 amd64 (JetBrains s.r.o.)

PS: I'll screenshot the comment it just in case.

0

Upgrading to the latest version fails to open on windows 11 systems.

0

Aopmesh Please see IJPL-148494. It looks like your .vmoptions file is corrupted. Deleting the file mentioned in the dialog should fix the issue.

0

Upgraded to 2024.2 and cannot open

0

Miukuhome Please see IJPL-148494. It looks like your .vmoptions file is corrupted. Deleting the file mentioned in the dialog should fix the issue.

0

The cause: java.nio.file.AccessDeniedException: C:\Users\bagro\AppData\Roaming\JetBrains\PyCharmCE2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe

0

I got two of the messages stating that startup failed ("Cannot connect to already running IDE instance"), but they only appeared AFTER I manually killed the stuck process.

0

Hi, I am running this on a Ubuntu 22.04 LTS (WSL). tried all the 6 steps, no luck. Pls help

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Start Failed: Internal error. Please refer to http://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.StartupAbortedException: UI initialization failed
       at com.intellij.idea.StartupUtil.lambda$prepareApp$3(StartupUtil.java:193)
       at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
       at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
       at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$9(StartupUtil.java:373)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
       at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.concurrent.CompletionException: java.lang.UnsatisfiedLinkError: /opt/idea-IC-202.8194.7/jbr/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
       at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
       at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
       at java.base/java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1423)
       ... 10 more
Caused by: java.lang.UnsatisfiedLinkError: /opt/idea-IC-202.8194.7/jbr/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
       at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
       at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
       at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
       at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
       at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
       at java.base/java.lang.Runtime.load0(Runtime.java:768)
       at java.base/java.lang.System.load(System.java:1837)
       at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
       at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
       at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
       at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
       at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2648)
       at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
       at java.base/java.lang.System.loadLibrary(System.java:1873)
       at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1395)
       at java.desktop/java.awt.Toolkit$3.run(Toolkit.java:1393)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1392)
       at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1430)
       at java.desktop/java.awt.EventQueue.invokeLater(EventQueue.java:1318)
       at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$9(StartupUtil.java:324)
       ... 7 more

-----
JRE 11.0.9+11-b944.49 amd64 by JetBrains s.r.o.
/opt/idea-IC-202.8194.7/jbr

Also, a UI exception occurred on an attempt to show the above message:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
       at java.desktop/java.awt.Component.<clinit>(Component.java:628)
       at com.intellij.idea.Main.showMessage(Main.java:237)
       at com.intellij.idea.Main.showMessage(Main.java:213)
       at com.intellij.ide.plugins.StartupAbortedException.logAndExit(StartupAbortedException.java:83)
       at com.intellij.ide.plugins.StartupAbortedException.processException(StartupAbortedException.java:33)
       at com.intellij.idea.StartupUtil.lambda$prepareApp$3(StartupUtil.java:193)
       at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
       at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
       at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$9(StartupUtil.java:373)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
       at java.base/java.lang.Thread.run(Thread.java:834)
2024-09-02 23:36:25,679 [     70]  ERROR - llij.ide.plugins.PluginManager - null
java.lang.ExceptionInInitializerError
       at java.prefs/java.util.prefs.FileSystemPreferencesFactory.userRoot(FileSystemPreferencesFactory.java:41)
       at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457)
       at com.intellij.ide.Prefs.migrate(Prefs.java:123)
       at com.intellij.ide.Prefs.get(Prefs.java:24)
       at com.intellij.ide.gdpr.EndUserAgreement.getAcceptedVersion(EndUserAgreement.java:81)
       at com.intellij.ide.gdpr.EndUserAgreement.access$100(EndUserAgreement.java:23)
       at com.intellij.ide.gdpr.EndUserAgreement$Document.isAccepted(EndUserAgreement.java:210)
       at com.intellij.idea.StartupUtil.showUserAgreementAndConsentsIfNeeded(StartupUtil.java:784)
       at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:264)
       at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:242)
       at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
       at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: Shutdown in progress
       at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
       at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:216)
       at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:457)
       at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:455)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.prefs/java.util.prefs.FileSystemPreferences.<clinit>(FileSystemPreferences.java:455)
       ... 12 more
2024-09-02 23:36:25,681 [     72]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2020.2.4  Build #IC-202.8194.7
2024-09-02 23:36:25,681 [     72]  ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.9; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-09-02 23:36:25,681 [     72]  ERROR - llij.ide.plugins.PluginManager - OS: Linux

Start Failed: Internal error. Please refer to http://jb.gg/ide/critical-startup-errors

java.lang.ExceptionInInitializerError
       at java.prefs/java.util.prefs.FileSystemPreferencesFactory.userRoot(FileSystemPreferencesFactory.java:41)
       at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457)
       at com.intellij.ide.Prefs.migrate(Prefs.java:123)
       at com.intellij.ide.Prefs.get(Prefs.java:24)
       at com.intellij.ide.gdpr.EndUserAgreement.getAcceptedVersion(EndUserAgreement.java:81)
       at com.intellij.ide.gdpr.EndUserAgreement.access$100(EndUserAgreement.java:23)
       at com.intellij.ide.gdpr.EndUserAgreement$Document.isAccepted(EndUserAgreement.java:210)
       at com.intellij.idea.StartupUtil.showUserAgreementAndConsentsIfNeeded(StartupUtil.java:784)
       at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:264)
       at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:242)
       at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
       at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalStateException: Shutdown in progress
       at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
       at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:216)
       at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:457)
       at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:455)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.prefs/java.util.prefs.FileSystemPreferences.<clinit>(FileSystemPreferences.java:455)
       ... 12 more

-----
JRE 11.0.9+11-b944.49 amd64 by JetBrains s.r.o.
/opt/idea-IC-202.8194.7/jbr

Also, a UI exception occurred on an attempt to show the above message:
java.lang.NoClassDefFoundError: Could not initialize class javax.swing.JTextPane
       at com.intellij.idea.Main.showMessage(Main.java:237)
       at com.intellij.idea.Main.showMessage(Main.java:213)
       at com.intellij.ide.plugins.StartupAbortedException.logAndExit(StartupAbortedException.java:83)
       at com.intellij.ide.plugins.StartupAbortedException.processException(StartupAbortedException.java:33)
       at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:50)
       at java.base/java.lang.Thread.run(Thread.java:834)

0

The morning didn't start with coffee. Everything worked fine yesterday, but today this is what I got:

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] 1199675478 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same) [Plugin: com.intellij]
   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.diagnostic.GuiPluginConflictReporter.lambda$reportConflict$0(GuiPluginConflictReporter.java:25)
   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] 1199675478 (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 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)
   ... 64 more

-----
Your JRE: 17.0.11+1-b1207.30 amd64 (JetBrains s.r.o.)
/home/user/.local/share/JetBrains/Toolbox/apps/goland/jbr


I even updated it through Toolbox but the result didn't change.

0

Regarding my error, nothing helped (not even removing all plugins), only completely uninstalling and reinstalling worked. I think I know what the problem is—the installed version of GoLand no longer had the option to switch to the old interface. That is, the old interface depended on some "plugin" that was removed, and everything broke down. Thanks to the development team for making me increasingly think about switching IDEs. JetBrains started off very well, but now it seems every year they stray further and further in the wrong direction.

0

@SUNsung Your crash case will be fixed in the upcoming 2024.3 version. Sorry about it.

0

this shows when i try to run android studio app.

0

Android Studio crashes on startup. 

The first launch was successful—I installed the Android SDK and everything worked fine. However, from the second launch onward, Android Studio won’t start.

 I’ve tried deleting the configuration and cache folders, but it didn’t help. 

I encountered this issue running Linux Mint 22 (based on Ubuntu 24.04) in VMware 17.6.1 build-24319023 on Windows.

 

Internal error

com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.android.tools.design, org.jetbrains.android
    at com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.kt:626)
    at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.kt:694)
    at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invokeSuspend(PluginManagerCore.kt:909)
    at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
    at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invoke(PluginManagerCore.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
    at com.intellij.idea.Main$startApp$2$1$1.span(Main.kt:90)
    at com.intellij.diagnostic.CoroutineTracerShim.span$default(CoroutineTracerShim.kt:31)
    at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins$intellij_platform_core_impl(PluginManagerCore.kt:908)
    at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:385)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

-----
JRE: 21.0.3+-12282718-b509.11 amd64 (JetBrains s.r.o.)
/home/aoeiuv/.local/share/JetBrains/Toolbox/apps/android-studio/jbr
0

Please sign in to leave a comment.

Have more questions?

Submit a request