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.
In my case, none of the steps helped, tried deleting the entire settings directory, reinstalling - to no avail. The only way to fix the issue was to run Rider with administrative rights (2019.3.1, installed with Jetbrains Toolbox).
I've tried everything and nothing works for me, including installing it through the Jetbrains Toolbox.
Sorry for the problems, please follow the step 5.
In my case a simple restart was enough (Linux 5.4.12 i3wm). Also it was "just" a NullPointerException...
What port does Clion need? I can't get the port number from the exception information.
Windows 10 20H1
Ti
To lock the folders IDE is starting a server on localhost, it tries to bind on the first available port between 6942 and 6991, this exception is thrown if IDE was not able to bind on any of the ports in this range. All 50 ports are unlikely to be already used on a machine, so it appears to be a networking issue or some security software which doesn't permit the IDE to bind on any port in this range even on the localhost interface.
On Windows "netsh winsock reset" in the Administrator console followed by the reboot should help. Also try disabling the antivirus/firewall and verify that the network configuration is correct.
It seems to be that the EAP versions don't try to use the other 50 Ports when the first one (6942) is already in use which results in them crashing at startup.
Timothy Lutz
I can't confirm this theory. Starting IntelliJ IDEA 2019.3.3 that binds in port 6942 and then starting IntelliJ IDEA 2020.1 EAP works fine and I can see via TcpView that it binds on port 6943.
Turning off Hyper-V and reinstalling it works fine. However, Docker Desktop is no longer available.
Docker must be used as a must, so bugs that conflict with Hyper-V should be fixed.
conflict with hyper v,
Jetbrain Products will dump if hyper v is opened
The autoupdate lead me to this page... Why did it update the software without getting my permission...
IntelliJ IDEA doesn't update itself without your confirmation. There is a setting in https://www.jetbrains.com/toolbox/app/ to update the tools automatically, but it's disabled by default.
Hi serge,
I reinstall the IntelliJ 2019.3 from the official website, instead of toolbox app. Would you please tell me how can I disable the autoupdate in such case?
Because it turns my scala plugin won't crash in 2019.3. For 2020.1, it always shows `start failed`.
Maybe it is better to stay at 2019.3.
Thanks.
IDE installed without toolbox will not update automatically. It can only detect updates and suggest you to install them according to this setting:
To disable automatic updates when using Toolbox make sure the following setting is disabled:
New Version 2020.1 on Windows 10 can't handle special char from username (René) in path:
Rschlossus Please see https://youtrack.jetbrains.com/issue/IDEA-235754 . Should be fixed in the next update.
At the moment you can either user 2019.3.3 from https://www.jetbrains.com/idea/download/previous.html or install the IDE into a path without non-ASCII characters.
The newest CLion application is broken as well.
---------------------------
clion64.exe - Application Error
---------------------------
The application was unable to start correctly (0xc000007b). Click OK to close the application.
---------------------------
OK
---------------------------
The workaround:
Use clion.bat
C:\Users\<username>\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\<version number>\bin\clion.bat
and create a Shortcut for it. Works well for me.
To start the clion64.exe again I disabled the Exploit protection in Windows 10 "Force randomisation for images (Mandatory ASLR) not compiled with /DYNAMICBASE" => Use Default (Off)
Not sure, if this is connected though. "Git for Windows" as well and some other cygwin stuff.
Hi,
I'm running clion in a Linux corporate environment and it failed to start. I use a mix of jetbrains IDEs including pycharm, intellij, and clion. I suspect it was the mix causing the issue, since the failure happened immediately after I ran a most-recent intellij. I didn't find an obvious cue after spending some time on Google. I have tried deleting all the plugins and cache but it didn't solve the issue.
Xu Zhang Your installation appears to be corrupted, try reinstalling from http://www.jetbrains.com/idea/download/index.html or via https://www.jetbrains.com/toolbox/app/.
Hello,
I installed latest build 2020.1 201.7723.91 via Toolbox and I'm having the same issue.
2019.3.5 works fine.
JF Naud most of the crash issues have different stacktrace. Could you please post yours so that we can try to isolate the problem?
I have two popups/traces
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.lang.NullPointerException
at com.aliyun.odps.studio.intellij.ide.IntellijLogger.getInstance(IntellijLogger.java:52)
at com.aliyun.odps.studio.intellij.ide.IntellijLogger.warn(IntellijLogger.java:32)
at com.aliyun.odps.studio.intellij.ide.IntellijStatCollector.lambda$fireInitEvent$0(IntellijStatCollector.java:20)
at java.base/java.lang.Thread.run(Thread.java:834)
-----
JRE 11.0.6+8-b765.40 amd64 by JetBrains s.r.o
/home/synnauj/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/jbr
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.lang.NullPointerException
at com.aliyun.odps.studio.intellij.ide.IntellijLogger.getInstance(IntellijLogger.java:52)
at com.aliyun.odps.studio.intellij.ide.IntellijLogger.warn(IntellijLogger.java:32)
at com.aliyun.odps.studio.option.ManageSettings.isEnableDebuger(ManageSettings.java:40)
at com.aliyun.odps.studio.intellij.StudioMain$1.run(StudioMain.java:109)
-----
JRE 11.0.6+8-b765.40 amd64 by JetBrains s.r.o
/home/synnauj/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/jbr
JF Naud Please clean the contents of the plugins directory (https://intellij-support.jetbrains.com/hc/articles/206544519). There is a third-party plug-in enabled that is causing the problem.
Tried the steps above and still crashing
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
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.lang.Thread.run(Thread.java:834)
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:455)
at java.base/sun.nio.ch.Net.bind(Net.java:447)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
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:248)
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:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
... 1 more
-----
JRE 11.0.6+8-b765.25 amd64 by JetBrains s.r.o
C:\Users\alxx\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.6668.121\jbr
It would be nice if you guys gave clear to the point instructions instead of telling us to go to a web page which then tells us to go to a different page.
I don't have a plugins directory in C:\Users\alxx\AppData\Roaming\JetBrains\IntelliJIdea2020.1
I do in C:\Users\alxx\AppData\Local\JetBrains\IntelliJIdea2020.1\plugins
Frustrating. vs code is more reliable and less buggy than intellij
Alex Gibson
Sorry for the inconvenience.
Please check this comment: https://intellij-support.jetbrains.com/hc/en-us/articles/360007568559?page=1#comment_360000925619 .
It's very uncommon when all 50 ports in this range are not available on the system.
Please provide the output from the following command in the Administrator console:
Does it list all the ports in the range used by IntelliJ IDEA?
One of the possible reasons is a network misconfiguration caused by the Hyper-V. You can try to temporary disable Hyper-V Windows feature and see if it helps. Enabling it back should not cause the same problem again.
before restarting hyperv
C:\Users\alxx>netsh interface ipv4 show excludedportrange protocol=tcp
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
1030 1129
1130 1229
1264 1363
1364 1463
1548 1647
1684 1783
1802 1901
1902 2001
2002 2101
2180 2279
2280 2379
2380 2479
2488 2587
2588 2687
2688 2787
2788 2887
2888 2987
2988 3087
3088 3187
3188 3287
3288 3387
3388 3487
3488 3587
3997 4096
4097 4196
4197 4296
4297 4396
4397 4496
4497 4596
4606 4705
4706 4805
4806 4905
4906 5005
5357 5357
5658 5757
5758 5857
5858 5957
5958 6057
6058 6157
6158 6257
6258 6357
28385 28385
50000 50059 *
* - Administered port exclusions.
after disabling hyperv , rebooting, enabling hyper v, rebooting again, still wouldn't start so uninstalled and reinstalled via toolbox and its now working. I needed it in a hurry.
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
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.lang.Thread.run(Thread.java:834)
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:455)
at java.base/sun.nio.ch.Net.bind(Net.java:447)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
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:248)
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:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
... 1 more
-----
JRE 11.0.6+8-b765.40 amd64 by JetBrains s.r.o
C:\Program Files\JetBrains\PhpStorm 2020.1.1\jbr
Norman it looks like you have the same issue as described one post above yours. See if disabling Hyper-V helps.
To all:
If you see java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind error, please try this workaround.
In Administrator console run the following commands:
I tried the work-around suggested in the previous post. It doesn't work for me.I still get the following error when trying to start PyCharm 2020.1
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
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.lang.Thread.run(Thread.java:834)
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:455)
at java.base/sun.nio.ch.Net.bind(Net.java:447)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
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:248)
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:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
... 1 more
-----
JRE 11.0.6+8-b765.40 amd64 by JetBrains s.r.o