PyCharm Community 2021.2 Refuses to properly boot on Windows 10

When I try to boot it, it often shows the beginning splash screen and then stays on it, never changing and never booting the program when I do. When I click anywhere else, it disappears and is nowhere to be seen in any of my windows. However, it is listed as running in the background in Task Manager. When I run it before ending it in the Task Manager, nothing happens whatsoever. The following appears when I run pycharm.bat after ending the PyCharm background process in Task Manager:

Date, time [ 4430] ERROR - llij.ide.plugins.PluginManager - java.lang.IllegalStateException: failed to create a child event loop
java.util.concurrent.CompletionException: java.lang.IllegalStateException: failed to create a child event loop
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.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47)
at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:86)
at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:81)
at org.jetbrains.io.BuiltInServerKt.multiThreadEventLoopGroup(BuiltInServer.kt:158)
at org.jetbrains.io.BuiltInServerKt.access$multiThreadEventLoopGroup(BuiltInServer.kt:1)
at org.jetbrains.io.BuiltInServer$Companion.start(BuiltInServer.kt:58)
at com.intellij.idea.SocketLock.lambda$lockAndTryActivate$2(SocketLock.java:168)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
... 6 more
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175)
at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:142)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:146)
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:37)
at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84)
... 16 more
Caused by: java.io.IOException: Unable to establish loopback connection
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.nio.ch.PipeImpl.<init>(PipeImpl.java:171)
at java.base/sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.base/java.nio.channels.Pipe.open(Pipe.java:155)
at java.base/sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:142)
at java.base/sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:173)
... 20 more
Caused by: java.net.SocketException: Permission denied: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:476)
at java.base/sun.nio.ch.Net.connect(Net.java:468)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:692)
at java.base/java.nio.channels.SocketChannel.open(SocketChannel.java:194)
at java.base/sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
... 28 more
Date, time [ 4443] ERROR - llij.ide.plugins.PluginManager - PyCharm 2021.2.1 Build #PC-212.5080.64
Date, time [ 4457] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.11; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
Date, time[ 4457] ERROR - llij.ide.plugins.PluginManager - OS: Windows 10
Date, time [ 4462] ERROR - llij.ide.plugins.PluginManager - Last Action:

I have looked all over and have yet to find a true solution. I reset my PC, and uninstalled and reinstalled PyCharm twice (I was able to open it the second time but the same issues occurred after closing it and trying to open it again). Any help would be greatly appreciated.

3 comments
Comment actions Permalink

This may be related to a known issue https://youtrack.jetbrains.com/issue/IDEA-253939

Could you please try the following:

- Temporarily disable any antivirus/firewall software you may have
- Add `-Djava.net.preferIPv4Stack=true` to VM options https://intellij-support.jetbrains.com/hc/en-us/articles/206544869
- Make sure localhost is resolved to 127.0.0.1
- Reboot the PC

1
Comment actions Permalink

Thank you for the help. So in this case are you saying that this is an internet issue?

0
Comment actions Permalink

Not internet per se, but network issue in general. IDE uses tcp/ip stack for some internal functionality. It can also happen when antivirus is blocking IDE from creating files in the temp directory.

0

Please sign in to leave a comment.