How to fix "Cannot connect to already running IDE instance." error when launching PyCharm?

When I launch PyCharm I encounter the following error:

Start Failed
Cannot connect to already running IDE instance.
Exception: Process 5,095 is still running

enter image description here

How to solve this?

Asked By: Python


The error informs you that you cannot launch PyCharm because another instance of it is already running. The error also informs you that the process ID (PID) of this instance is 5095.

So to launch PyCharm, you have to kill this running instance (which is probably a crashed instance) using the PID provided by the error. To do that open a terminal and run:

kill -9 5095

If you prefer a graphical way of killing the specified PyCharm process, you can do it as follows:

  1. Open System Monitor.

  2. Go to the Processes tab.

  3. Search for "5095". This should only list this PyCharm process.

  4. Right-click on the process and select Kill.

  5. In the pop-up window click Kill Process.

Then try to launch PyCharm again. It should open properly.

Answered By: BeastOfCaerbannog
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.