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.
Saifur Rahman Reinstall WebStrom from https://www.jetbrains.com/webstorm/download/index.html .
I got following error for GitHub CoPilot and the error is persisted even after restarting.
The cause: java.nio.file.AccessDeniedException: C:\Users\terecr\AppData\Roaming\JetBrains\Rider2023.3\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe
Radu Terec Please see https://github.com/orgs/community/discussions/17298 .
This is my problem:
Stefan Renrew What IDE/ version do you use? Does it help if you delete disabled_plugins.txt file from the Configuration directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory?
hi,
I have an error, and I don't know how to solve the problem. Can you help me find out where it comes from? i use Arch Linux.
I have looked at the link that Serge Baranov posted, and I get the same error
thanks
error:
Jpujol Please see https://youtrack.jetbrains.com/issue/PY-70799/Python-plugin-doesnt-work-after-disabling-Toml-plugin for the workaround.
Very Thanks.
I got this:
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.intellij.cidr.base, com.intellij.clion, com.intellij.nativeDebug at com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.kt:572) at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.kt:639) at com.intellij.ide.plugins.PluginManagerCore$initializeAndSetPlugins$2.invokeSuspend(PluginManagerCore.kt:825) 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:78) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) 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:92) at com.intellij.diagnostic.CoroutineTracerShim.span$default(CoroutineTracerShim.kt:31) at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins$intellij_platform_core_impl(PluginManagerCore.kt:824) at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:377) 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) ----- Your JRE: 17.0.10+7-LTS amd64 (Amazon.com Inc.) C:\Users\jakob\.jdks\corretto-17.0.10
@Jakob Felix Eugen Rössner Hi, I saw you have created a same issue here: https://youtrack.jetbrains.com/issue/CPP-38578/Internal-missing-essential-plugins-error-when-starting-CLION
Please answer the needed info here: https://youtrack.jetbrains.com/issue/CPP-38578/Internal-missing-essential-plugins-error-when-starting-CLION#focus=Comments-27-9766043.0-0
Also, try to remove
disabled_plugins.txt
from config directory, restart the IDE to see if it helps.Also getting the dreaded error about ‘Address already in use’; if only it would mention _which_ address :(
This is on Linux (Ubuntu), but the instructions in https://youtrack.jetbrains.com/issue/IDEA-238995 are exclusively about Windows (and a tiny portion about _macOS_).
BTW, `netstat` doesn’t mention any port in the range 6940 - 6999 as being in use.
ompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Exception in thread "main" FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x4dba84] jni_FatalError+0x10c
V [libjvm.dylib+0x651fe0] JvmtiExport::post_vm_initialized()+0x284
V [libjvm.dylib+0x9bd250] Threads::create_vm(JavaVMInitArgs*, bool*)+0x86c
V [libjvm.dylib+0x4f8b44] JNI_CreateJavaVM+0x78
C [phpstorm+0x586c0] std::sys_common::backtrace::__rust_begin_short_backtrace::h7f1156e096c81a58+0x688
C [phpstorm+0x602bc] core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h1212bbe3c3327fd8+0xe8
C [phpstorm+0x532b0] std::sys::unix::thread::Thread::new::thread_start::h7f56b35fafcfec87+0x30
C [libsystem_pthread.dylib+0x6f94] _pthread_start+0x88
Please try to reinstall the IDE.
For support, please refer to https://jb.gg/ide/critical-startup-errors
Cannot start phpstorm after update. What do i need to do?
after updating the copilot it restarted with a crashed error this keeps happening in a loop every time update the plugin

ballers999 Please see https://github.com/orgs/community/discussions/17298.
Vincent van ’t Zand Please try https://youtrack.jetbrains.com/articles/IDEA-A-2100661821/IntelliJ-IDEA-2024.1-Latest-Builds. If the issue persists, file a bug at https://youtrack.jetbrains.com/newIssue?project=IJPL and provide the console output.
Serhii Melnichuk Does it help if you re-install the IDE and remove the config directory as suggested in this document?
IntelliJ IDEA is showing this error upon startup; it was working fine before 12 PM. I've tried various approaches, including deleting all configuration files and reinstalling IntelliJ IDEA, yet the issue persists.![]()
1515054372 Please contact support at https://intellij-support.jetbrains.com/hc/requests/new with the screenshot of the error and the Logs directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#logs-directory zipped.
I'm receiving `Error occurred during initialization of VM<br>agent library failed Agent_OnLoad: instrument<br><br><br>Please try to reinstall the IDE.<br>For support, please refer to
https://jb.gg/ide/critical-startup-errors` with Webstorm 2024.2 EAP.
Deleted all webstorm folders from .config, .cache, and .local.
The non-EAP version won't even show that. I just shows …opening in toolbox and then doesn't open. I couldn't find the software running at all (no PID).
Reinstalls are not helping.
Pycharm and Intellij are working fine.
Any help is appreciated.
Jokesome Roxburgh Please submit a ticket at https://intellij-support.jetbrains.com/hc/requests/new .
Start the IDE from the command line per https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line and attach the output to the ticket.
Specify your OS version.
I'm getting this in the last few weeks, wehn trying to update co-pilot on Windows 10:
_______________________________________________
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\Angelos\AppData\Roaming\JetBrains\WebStorm2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe
_______________________________________________
Angelos Pikoulas Please see https://github.com/orgs/community/discussions/17298 .
The following happens for a few weeks already whenever the GitHub Copilot plugin needs updates. They have an issue for that and say it's fixed, but obviously it's not, because a lot of people still get the issue. Either GitHub or IntelliJ should do something about that problem.
https://github.com/orgs/community/discussions/17298
Thorsten Schoening Please check the last several answers that mention the same issue. https://github.com/orgs/community/discussions/17298 .
Serge Baranov I did and even linked that discussion already and there's no fix for that issue, if at all only workarounds. Either IntelliJ or GitHub need to fix the problem.
Thorsten Schoening This cannot be solved on the IDE level at the moment. Please follow this request for progress: https://youtrack.jetbrains.com/issue/IJPL-148314/Provide-API-for-satellite-process-termination-during-IDE-shutdown .
Windows 11
The cause: java.nio.file.AccessDeniedException: C:\..\AppData\Roaming\JetBrains\PhpStorm2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe
Ganjargal, please check two comments above yours.
The cause: java.nio.file.AccessDeniedException: C:\Users\MYUSER\AppData\Roaming\JetBrains\PyCharm2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe
After installing the github copilot update upon prompt, restarting the ide throws this error on startup: