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.

119 out of 592 found this helpful
408 comments

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

0


This is my problem:

0

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?

0

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:

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

com.intellij.ide.plugins.EssentialPluginMissingException: Missing essential plugins: com.jetbrains.pycharm.pro.customization
    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+8-b1207.12 amd64 (JetBrains s.r.o.)
/opt/pycharm-professional/jbr
Edited by Jpujol
0

Very Thanks. 

0

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

1

@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.
 

0

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.

Edited by Vincent van ’t Zand
0

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?

0

after updating the copilot it restarted with a crashed error this keeps happening in a loop every time update the plugin

0

Serhii Melnichuk Does it help if you re-install the IDE and remove the config directory as suggested in this document?

0

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.


 

0

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.

0

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

_______________________________________________

0

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

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\THS\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\github-copilot-intellij\copilot-agent\bin\copilot-agent-win.exe

0

Thorsten Schoening Please check the last several answers that mention the same issue. https://github.com/orgs/community/discussions/17298 .

0

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.

0

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

0

Ganjargal, please check two comments above yours. 

0

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

0

After installing the github copilot update upon prompt, restarting the ide throws this error on startup:
 

0

Please sign in to leave a comment.

Have more questions?

Submit a request