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 report to http://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. 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.
  2. 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.
  3. Delete the IDE system (idea.system.path) directory.
  4. 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 settings directory (idea.config.path).
  5. 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.

38 comments
Comment actions Permalink

Jasper Bojsen please continue at https://youtrack.jetbrains.com/issue/IDEA-238995. Attach the output from "netsh interface ipv4 show excludedportrange protocol=tcp" command there and specify if you are using Hyper-V.

0
Comment actions Permalink

Hello.
I got this message when i started x64 version:

java.lang.NullPointerException
at com.rover12421.crack.jetbrains.ides.ٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴ.m(Unknown Source)
at com.rover12421.crack.jetbrains.ides.Main.m(Unknown Source)
at com.intellij.ide.b.u.n(u.java:70)
at com.intellij.ide.b.b.aQ.b(aQ.java:258)
at com.intellij.ide.b.b.a7.b(a7.java:276)
at com.intellij.ide.b.b.a7.c(a7.java:169)
at com.intellij.ide.b.b.a7.a(a7.java:78)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.idea.MainImpl.start(MainImpl.java:96)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:289)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:233)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:45)
at java.base/java.lang.Thread.run(Thread.java:834)

-----
JRE 11.0.6+8-b765.40 amd64 by JetBrains s.r.o

 

But x32 version started fine.

Edited by Eugene R
-1
Comment actions Permalink

Eugene R Please remove the crack agent you've added to .vmoptions file (https://intellij-support.jetbrains.com/hc/articles/206544869).

0
Comment actions Permalink

When I read the stacktrace, I thought I was wrong. But no, suddenly. I found some strange config for the old version of IDEA. Sorry for that, this is not my own laptop. Deleted all old configs, now everything starts well. Thank you for your help.

0
Comment actions Permalink

please help me solve my problem

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

java.nio.charset.IllegalCharsetNameException: UTF-8
at java.base/java.nio.charset.Charset.checkName(Charset.java:308)
at java.base/java.nio.charset.Charset.lookup2(Charset.java:482)
at java.base/java.nio.charset.Charset.lookup(Charset.java:462)
at java.base/java.nio.charset.Charset.defaultCharset(Charset.java:608)
at java.base/sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:56)
at java.base/java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:110)
at org.apache.log4j.WriterAppender.createWriter(WriterAppender.java:251)
at org.apache.log4j.ConsoleAppender.activateOptions(ConsoleAppender.java:141)
at org.apache.log4j.ConsoleAppender.<init>(ConsoleAppender.java:68)
at org.apache.log4j.ConsoleAppender.<init>(ConsoleAppender.java:57)
at com.intellij.idea.StartupUtil.configureLog4j(StartupUtil.java:409)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:174)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:45)
at java.base/java.lang.Thread.run(Thread.java:834)

0
Comment actions Permalink

Gzk0329 did you already try the steps described in this document? It could be there is some customization to the VM options with some invisible character making the parameter of -Dfile.encoding option invalid.

If it's not the case, please report a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA and provide more details (OS version, Java runtime version, attach logs if any: https://intellij-support.jetbrains.com/hc/articles/207241085).

0
Comment actions Permalink

This is beyond frustrating for such an expense. I have to do a winsock reset or I get the following error for ANY Jetbrains tools. It seems to happen when I'm connected to my companies split tunnel VPN prior to launching the application (i think) but that's required for me to connect to some of the DB's in datagrip for instance.. 

Very frustrating.

PyCharm:
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.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.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.7+10-b944.20 amd64 by JetBrains s.r.o.
C:\Users\brandon.taylor\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\202.6397.98\jbr

Datagrip:

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.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.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.7+10-b944.20 amd64 by JetBrains s.r.o.
C:\Users\brandon.taylor\AppData\Local\JetBrains\Toolbox\apps\datagrip\ch-1\202.6397.93\jbr

 

All the others are the same

0
Comment actions Permalink

Iammrbt

Do these commands in the Administrator console followed by the reboot help?

netsh int ipv4 set dynamicport tcp start=49152 num=16383
netsh int ipv4 set dynamicport udp start=49152 num=16383
0

Please sign in to leave a comment.

Have more questions?

Submit a request