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:
- 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.
- If you get "java.net.BindException: Address already in use: bind" exception, please refer to IDEA-238995 for the workaround.
- 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. - 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.
- Delete the IDE system (
idea.system.path
) directory. - 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
). - 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.
Please sign in to leave a comment.
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:
In my case it was due to a hard drive that was no longer there. My
idea.system.path
andidea.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.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.
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
Yidasanqian Please see resolution point 1 in this document.
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;-)
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:
@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.
I had the following system variable set:
JAVA_TOOL_OPTIONS=UTF16
Once removed everything works like a charm.
@Lejia, thanks for support.
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
Surajkumarsyn479 This specific case with the link to the workaround is described in the very first paragraph of the document.
I am trying to update a plugin “Codium” but after the IDE restart, I receive the error below.
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.
Well, here's a new one, for PyCharm:
I could have sworn I already posted this for PyCharm, but in any case same thing is happening with PHPStorm.
PS: I'll screenshot the comment it just in case.
Alejandro Carrillo Please check these comments:
Upgrading to the latest version fails to open on windows 11 systems.
Aopmesh Please see IJPL-148494. It looks like your .vmoptions file is corrupted. Deleting the file mentioned in the dialog should fix the issue.
Upgraded to 2024.2 and cannot open
Miukuhome Please see IJPL-148494. It looks like your
.vmoptions
file is corrupted. Deleting the file mentioned in the dialog should fix the issue.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
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.
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)
Mahendrakumar091295 See https://stackoverflow.com/a/53474272/104891 . I'd also recommend trying a more recent IDE version.