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.
I wrote here before, but the error still exist.
I hope to get your support.
The workarounds don't work for me. As a developer, I can't help wondering why this bug is so difficult to fix. It has been years, but JetBrains still is not able to fix it in the root. Could you please give it a high priority in your todo list? It's really bothering.
Steven Xiangyu Lai Think of it like of the Windows BSOD. There is no single bug that causes it, there are hundreds of potential scenarios when this issue can occur and it's almost impossible to fix them all. That being said, the most common issue is https://youtrack.jetbrains.com/issue/IDEA-238995 that we plan to address in one of the nearest updates.
Noaarg Please make sure you have DISPLAY environment variable exported correctly so that you can run GUI apps on this system.
Dandrfranco The plug-in is still present on your system, according to the logs. Please double check it's removed from the Plugins directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#plugins-directory.
Mike Samsonov You have Rider specific issue. The best place to get help would be https://rider-support.jetbrains.com/hc/en-us.
I've got this
I just updated Clion and got the following start up error.
I already
a) Uninstalled and installed again Clion
b) erased the plugin file in Clion.app/Contents/plugins
Nothing worked, and since I coudn't find anything on the internet, I'm running out of ideas. Can you help me? Otherwise, I'll try to revert to a previous build.
This is the error I get (I'll also create a separate report for this):
Eliferna
> erased the plugin file in Clion.app/Contents/plugins
You should never delete the bundled plug-ins, please install the IDE again, or it will not run.
Delete the plugins from the user profile instead: https://www.jetbrains.com/help/clion/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#plugins-directory.
If the issue persists, please report a bug at https://youtrack.jetbrains.com/newIssue?project=CPP.
I got this .Could you give some suggestions? Thanks a lot for that
java.lang.UnsatisfiedLinkError: /home/zhouwanyun/pycharm-community-2022.3.1/jbr/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:285)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1388)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1386)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1385)
at java.desktop/java.awt.Toolkit.initStatic(Toolkit.java:1428)
at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1397)
at java.desktop/java.awt.Color.<clinit>(Color.java:277)
at com.intellij.ide.ui.laf.IdeaLaf.<clinit>(IdeaLaf.java:24)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at com.intellij.idea.StartupUtil$preloadLafClasses$1.invokeSuspend(StartupUtil.kt:573)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
at com.intellij.idea.StartupUtil$initAwtToolkit$1$1.invokeSuspend(StartupUtil.kt:479)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
... 4 more
-----
Your JRE: 17.0.5+1-b653.23 amd64 (JetBrains s.r.o.)
/home/zhouwanyun/pycharm-community-2022.3.1/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:632)
at com.intellij.idea.StartupErrorReporter.showMessage(StartupErrorReporter.java:85)
at com.intellij.idea.StartupErrorReporter.showMessage(StartupErrorReporter.java:39)
at com.intellij.idea.Main.main(Main.kt:65)
Wanyunzh See https://askubuntu.com/questions/787957/running-a-jar-file-with-jdk-1-8-0.
The problem is: java.lang.UnsatisfiedLinkError: /home/zhouwanyun/pycharm-community-2022.3.1/jbr/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
I have read your comment with the link https://askubuntu.com/questions/787957/running-a-jar-file-with-jdk-1-8-0 but the problem is I have no permission for sudo. Are there any other methods?
Wanyunzh I'm afraid, no.
When tried to Invalidate Caches and restart received this error
Internal error. Please report to http://jb.gg/ide/critical-startup-errors
java.lang.NoSuchMethodException: com.intellij.ide.plugins.PluginManager.start(java.lang.String, java.lang.String, [Ljava.lang.String;)
at java.lang.Class.getDeclaredMethod(Class.java:2130)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:25)
at com.intellij.idea.Main.main(Main.java:60)
Tasya Innian Looks like a corrupted installation, please install the IDE again.
Any idea why I am seeing below -
java.io.UncheckedIOException: java.io.IOException: C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\lib\jsch-agent.jar
at com.intellij.util.lang.ZipResourceFile.<init>(ZipResourceFile.java:41)
at com.intellij.util.lang.PathClassLoader.lambda$static$0(PathClassLoader.java:21)
at com.intellij.util.lang.ClassPath.createLoader(ClassPath.java:412)
at com.intellij.util.lang.ClassPath.getLoaderSlowPath(ClassPath.java:363)
at com.intellij.util.lang.ClassPath.findClassWithoutCache(ClassPath.java:223)
at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:202)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:203)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at com.intellij.openapi.application.PathManager.platformPath(PathManager.java:745)
at com.intellij.openapi.application.PathManager.getDefaultConfigPathFor(PathManager.java:315)
at com.intellij.openapi.application.PathManager.getCustomOptionsDirectory(PathManager.java:349)
at com.intellij.openapi.application.PathManager.getCustomPropertiesFile(PathManager.java:582)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:537)
at com.intellij.idea.Main.bootstrap(Main.java:91)
at com.intellij.idea.Main.main(Main.java:81)
Caused by: java.io.IOException: C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\lib\jsch-agent.jar
at com.intellij.util.lang.ImmutableZipFile.load(ImmutableZipFile.java:84)
at com.intellij.util.lang.ImmutableZipFile.load(ImmutableZipFile.java:54)
at com.intellij.util.lang.ZipResourceFile.<init>(ZipResourceFile.java:33)
... 15 more
Caused by: java.util.zip.ZipException: Archive is not a ZIP archive
at com.intellij.util.lang.ImmutableZipFile.populateFromCentralDirectory(ImmutableZipFile.java:234)
at com.intellij.util.lang.ImmutableZipFile.load(ImmutableZipFile.java:81)
... 17 more
-----
Your JRE: 17.0.3+7-b469.37 amd64 (JetBrains s.r.o.)
C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\jbr
Shishir Choubey Reinstalling the IDE should fix it, your installation is damaged.
Since a few hours after enabling sync between JetBrains IDEs. Reinstalling or removing plugins alone does not fix, I need to remove all configs. Then re-enabling sync makes it crash instantly again on next start. unchecking plugin sync does make it not crash.
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
com.intellij.ide.plugins.PluginManagerCore$EssentialPluginMissingException: Missing essential plugins: JavaScript
at com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.java:746)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:839)
at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins(PluginManagerCore.java:1043)
at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:397)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-----
Your JRE: 17.0.5+1-b653.25 x86_64 (JetBrains s.r.o.)
/Users/---censored---/Library/Application Support/JetBrains/Toolbox/apps/WebStorm/ch-0/223.8617.44/WebStorm.app/Contents/jbr/Contents/Home
In my case,DataSpell New Version 2022.3.2 on Windows 11 can't startup normally:
I have reinstalled and rolled back the version, but it still doesn't work
Raphael B.
Related issues:
It should help if you enable JavaScript plug-in in IntelliJ IDEA or disable plug-ins sync in the settings sync settings.
Hi, I installed IntelliJ IDEA Community edition last night via the Toolbox app and everything was fine.
Today when I tried opening it I was met with this error:
```
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
com.intellij.ide.plugins.StartupAbortedException: Cannot start app
at com.intellij.idea.StartupUtil.lambda$start$15(StartupUtil.java:265)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionallyStage(CompletableFuture.java:1008)
at java.base/java.util.concurrent.CompletableFuture.exceptionally(CompletableFuture.java:2364)
at com.intellij.idea.StartupUtil.start(StartupUtil.java:264)
at com.intellij.idea.Main.bootstrap(Main.java:119)
at com.intellij.idea.Main.main(Main.java:81)
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:555)
at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:833)
-----
Your JRE: 17.0.4.1+7-b469.62 amd64 (JetBrains s.r.o.)
C:\Users\[REDACTED]\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\222.4345.14\jbr
```
Is there anything I can do besides reinstalling?
Smmh72 Please see https://youtrack.jetbrains.com/issue/IDEA-238995 for the workaround.
Hello, I encountered a bug when using clion today. The program was interrupted and exited during startup. Everything was normal before use
The system has not been updated or the clion has not been updated before
The current system is x86 Ubuntu 22.04
Yesterday, another computer (apple silicon arm64) was installed with 'arm64 clion for macOS'. When logging in to the account, the configuration was automatically pulled from the cloud. At the same time, some of the configuration might also be updated to the cloud,
In retrospect, the only change may be the configuration of automatic synchronization from the cloud (settings, shortcut keys, ui, etc.),
Will the automatic synchronization configuration affect the normal startup of the IDE? If so, how should computers of different architectures be configured synchronously (UI, plug-ins, etc.)
log as follow:
Liaozihang
Looks like a bug caused by the third-party plug-in (likely Atom Material File Icons). Remove it from the plugins directory. See https://intellij-support.jetbrains.com/hc/en-us/articles/206544519.
Settings sync itself should not cause issues unless it syncs a broken plug-in.
I got the error in the code block below. This happened whenever I opened IntelliJ from the dock icon (it was opening the last opened projects). The fix was rather simple: instead of opening from the dock, I instead chose a project from the Toolbox -> Projects tab. This opened a specific project only rather than all those that were opened in the last run. Following this I was able to shutdown IntelliJ and reopen from the dock and all was fine. It's an irritating error and I would think a ClassCastException should definitely be fixable.
Kbreidenbach
It looks like a known issue: https://youtrack.jetbrains.com/issue/IDEA-310743/Nightly-build-of-231-hangs-and-crashes.
We DO need a separate tool to manage plugins' enabled/disabled state without running the whole IDE.
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.RuntimeException: 无法调用 (class=aq, method=appFrameCreated, topic=AppLifecycleListener) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:639) at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:395) at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:374)
at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1) at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:433) at jdk.proxy1/jdk.proxy1.$Proxy 53.appFrameCreated(Unknown Source) at com.intellij.idea.IdeStarter.openProjectIfNeed$suspendImpl(IdeStarter.kt:91) at com.intellij.idea.IdeStarter.openProjectIfNeed(IdeStarter.kt)
at com.intellij.idea.IdeStarter$start$2.invokeSuspend(IdeStarter.kt:72) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
atcom.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:70) at com.intellij.idea.IdeStarter.start(IdeStarter.kt) at com.intellij.idea.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:169) at com.intellij.idea.ApplicationLoader.access$initApplicationImpl(ApplicationLoader.kt:1) at com.intellij.idea.ApplicationLoader$initApplicationImpl$1.invokeSuspend(ApplicationLoader.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)由: java.lang.NoClassDefFoundError: com/intellij/ide/util/PropertiesComponentImpl at fuck_you.ap.a(Unknown Source) at fuck_you.aq.appFrameCreated(Unknown Source) at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:655)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:625)
...23 更多
由: java.lang.ClassNotFoundException: com.intellij.ide.util.PropertiesComponentImpl PluginClassLoader(plugin=PluginDescriptor(name=BetterIntelliJ, id=org.example.BetterIntelliJ, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\PyCharm2022.3\plugins\BetterIntelliJ-1.20.jar, version=1.20, package=null, isBundled=false), packagePrefix=null, instanceId=83, state=active)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:217) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
...还有 27 个
-----
您的 JRE: 17.0.6+1-b653.34 amd64 (JetBrains s.r.o.)
D:\PyCharn\PyCharm 2022.3.3\jbr
Cheon Park Please see https://youtrack.jetbrains.com/issue/IDEA-310743/Nightly-build-of-231-hangs-and-crashes.
Do you have -Didea.is.internal=true added in the .vmoptions file? See https://intellij-support.jetbrains.com/hc/en-us/articles/206544869.