Unable to start PyCharm Community at all!
I recently using PyCharm for my project until one day when I open PyCharm, it doesn't start at all! It stuck at the screen below for forever! When I open Task Manager it said that PyCharm use about 100-300 MB of RAM out of 8GB and using 0% CPU. After multiple time trying to kill it using Task Manager then open it again, it still stuck at that screen. I decided to reinstall PyCharm but it still stuck then reinstall it again but with JetBrain Toolbox! Still not work... So, I try to uninstall PyCharm then clear all JetBrain folders in %LocalAppData% and %AppData% but it still not works. Is there any possible solution for this problem?

Edit 1: I also try to run it with Administrative Privileges but still no working :(
Edit 2: I forgot to put the log for you guys to analysis :)
2021-10-31 15:59:13,263 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2021-10-31 15:59:14,116 [ 853] INFO - #com.intellij.idea.Main - IDE: PyCharm (build #PC-212.5457.59, 19 Oct 2021 21:26)
2021-10-31 15:59:14,245 [ 982] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2021-10-31 15:59:14,354 [ 1091] INFO - #com.intellij.idea.Main - JRE: 11.0.12+7-b1504.40 (JetBrains s.r.o.)
2021-10-31 15:59:14,355 [ 1092] INFO - #com.intellij.idea.Main - JVM: 11.0.12+7-b1504.40 (OpenJDK 64-Bit Server VM)
2021-10-31 15:59:14,468 [ 1205] INFO - #com.intellij.idea.Main - JVM Args: exit -Xmx750m -Xms128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -ea -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djb.vmOptionsFile=D:\Adobe\JetBrains\PyCharmC\bin\pycharm64.exe.vmoptions -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=JetBrains -Didea.paths.selector=PyCharmCE2021.2 -Didea.platform.prefix=PyCharmCore -Dsplash=true -Dide.native.launcher=true -XX:ErrorFile=C:\Users\E7250\java_error_in_pycharm64_%p.log -XX:HeapDumpPath=C:\Users\E7250\java_error_in_pycharm64.hprof
2021-10-31 15:59:14,472 [ 1209] INFO - #com.intellij.idea.Main - library path: D:\Adobe\JetBrains\PyCharmC\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Eclipse Foundation\jdk-16.0.2.7-hotspot\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\Program Files\Java\jdk-16.0.1\bin;C:\Program Files (x86)\dotnet\;C:\Program Files\Java\jdk-16.0.1\bin;D:\Adobe\7-Zip;D:\Adobe\WinSCP;D:\Adobe\GPG4WIN\..\GnuPG\bin;C:\Users\E7250\AppData\Roaming\Python\Python39\Scripts;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\ProgramData\chocolatey\bin;C:\Users\E7250\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\E7250\AppData\Local\Programs\Python\Python39\;D:\Adobe\Python37\Scripts\;D:\Adobe\Python37\;D:\Adobe\Python39\Scripts\;C:\Users\E7250\AppData\Local\Microsoft\WindowsApps;C:\Users\E7250\AppData\Local\Microsoft\WindowsApps;C:\Users\E7250\.dotnet\tools;D:\Adobe\Python39\;C:\Program Files\Azure Data Studio\bin;C:\Users\E7250\AppData\Roaming\npm;C:\Program Files (x86)\GitHub CLI\;D:\Adobe\SysInternalTools;D:\Adobe;C:\Users\E7250\Documents\ProgrammingCodes\Batch\JavaSwitch;D:\Adobe\JetBrains\PyCharmC\bin;.
2021-10-31 15:59:14,473 [ 1210] INFO - #com.intellij.idea.Main - boot library path: D:\Adobe\JetBrains\PyCharmC\jbr\bin
2021-10-31 15:59:14,699 [ 1436] INFO - #com.intellij.idea.Main - locale=en_US JNU=Cp1252 file.encoding=Cp1252
idea.config.path=C:\Users\<UserName>\AppData\Roaming\JetBrains\PyCharmCE2021.2
idea.system.path=C:\Users\<UserName>\AppData\Local\JetBrains\PyCharmCE2021.2
idea.plugins.path=C:\Users\<UserName>\AppData\Roaming\JetBrains\PyCharmCE2021.2\plugins
idea.log.path=C:\Users\<UserName>\AppData\Local\JetBrains\PyCharmCE2021.2\log
2021-10-31 15:59:14,804 [ 1541] INFO - #com.intellij.idea.Main - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@6230c374[Running, parallelism = 3, size = 3, active = 3, running = 2, steals = 0, tasks = 0, submissions = 1]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@2a8823b4
2021-10-31 15:59:16,061 [ 2798] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 1254 ms
2021-10-31 15:59:16,085 [ 2822] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2021-10-31 15:59:16,821 [ 3558] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (212.5457.59), Task Management (212.5457.59), TextMate Bundles (212.5457.59), JetBrains Marketplace Licensing Support (212.5457.59), Copyright (212.5457.59), Images (212.5457.59), Properties (212.5457.59), IDE Features Trainer (212.5457.59), YAML (212.5457.59), EditorConfig (212.5457.59), Machine Learning Code Completion (212.5457.59), Mercurial (212.5457.59), ReStructuredText (212.5457.59), Subversion (212.5457.59), Configuration Script (212.5457.59), Shared Indexes (212.5457.59), Shared Indexes for Python (212.5457.59), IntelliLang (212.5457.59), Markdown (212.5457.59), Grazie (212.5457.59), Windows 10 Light Theme (212.5457.59), Settings Repository (212.5457.59), Terminal (212.5457.59), Git (212.5457.59), ChangeReminder (212.5457.59), GitHub (212.5457.59), Space (212.5457.59), IDE Features Trainer: Git Lessons (212.5457.59), Python Community Edition (212.5457.59), PyCharm Community Customization (212.5457.59), Shell Script (212.5457.59), Code With Me (212.5457.59)
2021-10-31 15:59:19,154 [ 5891] INFO - intellij.util.io.FilePageCache - lower=100; upper=500; buffer=10; max=730
2021-10-31 15:59:19,494 [ 6231] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2021-10-31 15:59:19,500 [ 6237] INFO - intellij.diagnostic.JitWatcher - JIT compilation state checking enabled
2021-10-31 15:59:19,624 [ 6361] INFO - .history.utils.LocalHistoryLog - local history version mismatch (was: 0, expected: 6), rebuilding...
2021-10-31 15:59:19,624 [ 6361] INFO - .history.utils.LocalHistoryLog - FS has been rebuild, rebuilding local history...
2021-10-31 15:59:19,753 [ 6490] INFO - ication.options.PathMacrosImpl - Loaded path macros: {}
2021-10-31 15:59:20,542 [ 7279] ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
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.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool.awaitQuiescence(ForkJoinPool.java:2984)
at com.intellij.idea.StartupUtil.start(StartupUtil.java:294)
at com.intellij.idea.Main.bootstrap(Main.java:123)
at com.intellij.idea.Main.main(Main.java:84)
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: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: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)
at java.base/java.lang.Thread.run(Thread.java:829)
2021-10-31 15:59:20,552 [ 7289] ERROR - llij.ide.plugins.PluginManager - PyCharm 2021.2.3 Build #PC-212.5457.59
2021-10-31 15:59:20,562 [ 7299] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2021-10-31 15:59:20,563 [ 7300] ERROR - llij.ide.plugins.PluginManager - OS: Windows 10
2021-10-31 15:59:20,590 [ 7327] ERROR - llij.ide.plugins.PluginManager - Last Action:
Please sign in to leave a comment.
Hello,
>Address already in use: bind
To lock 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 IDE to bind on any port in this range even on localhost interface.
Usually a simple PC restart solves this issue.
Let me know how it goes.
It still doesn't work... I could rarely work if it the first after the OS program to be executed!
Do you have any antivirus or FW enabled? Could you please check the ports via:
I do have Kaspersky Free and the Windows Firewall enabled. And I can't use that command with or without administrator privileges though. Here the output
Got it, if you don't have admin privileges it is worth involving the system administrator to change the FW/AV settings to allow the IDE to bind a port. As a first step I would try disabling the FW and AV to make sure this is a third-party software affection.
I don't know how but I just try to run PyCharm with Administrative Privileges again and it work! I also get a notification from GlassWire(an application that help you manage networking status, usage) that PyCharm just initialize it first connection! That is pretty weird 🙃
Oh yea, quick question. If it occurs again and it still the fail to bind port, is there any way so that I can check any possible program to run on the port that PyCharm use?