flathub / com.jetbrains.IntelliJ-IDEA-Ultimate

https://flathub.org/apps/details/com.jetbrains.IntelliJ-IDEA-Ultimate
15 stars 7 forks source link

Cannot launch: "Cannot connect to already running IDE instance. Exception: Process 2 is still running" #157

Closed brittyazel closed 9 months ago

brittyazel commented 1 year ago

IntelliJ has been running fine up until this point, but today I was hit with a strange issue where I can no longer launch the program. I get this error:

Start Failed
Cannot connect to already running IDE instance.
Exception: Process 2 is still running

This issue has been reported here, but my issue might be different as they're attributing the bug to samba, and I am not using samba.

Uninstalling and reinstalling has not worked, nor has rebooting. I am unsure on what more to do, nor am I sure what triggered this to happen all of a sudden.

x80486 commented 1 year ago

It basically says there is another instance. Try to search for any intellij or java process, and kill it. Make sure it's the correct process, because there could be plenty of java processes running different things.

brittyazel commented 1 year ago

Certainly, however this behavior is happening after a fresh reboot, with it being the first application to be launched. It's highly unlikely that there is any other process running, and I have verified as much from looking at top and system monitor.

I deleted all of my saved configs, and starting fresh seemed to alleviate the issue for the time being. That said, 'something' is triggering this to happen, and I'm concerned it will come back.

fjbaldon commented 1 year ago

Happening on mine too.

brittyazel commented 1 year ago

Update: It's back again today. Same situation as above.

road2react commented 12 months ago

Downgrading to 335102ecea77f8a27a08860faf19cc784f2aacc2 (before update to 2023.2.1) makes the error appear on the first launch, but relaunching makes it load on the second launch.

Job79 commented 11 months ago

Deleting the lock file at ~/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2023.2/.lock fixed the issue for me. Killing the process or reinstalling without deleting the user data doesn't fix this issue.

fjbaldon commented 11 months ago

Deleting the lock file at ~/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2023.2/.lock fixed the issue for me. Killing the process or reinstalling without deleting the user data doesn't fix this issue.

Does the issue come back after deleting the file?

brittyazel commented 11 months ago

Mine seems to come back randomly. I'm not sure what triggers it, but I have had to delete the .lock file a couple of times now to clear it up.

Job79 commented 11 months ago

Deleting the lock file at ~/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2023.2/.lock fixed the issue for me. Killing the process or reinstalling without deleting the user data doesn't fix this issue.

Does the issue come back after deleting the file?

After some time yes. No idea what triggers it, but it doesn't look like a flatpak problem. People that used the official jetbrains toolbox to install intellij are also experiencing problems.

x80486 commented 9 months ago

Will close this one since this is not specific to the Flatpak package.

This issue was fixed recently so the application should behave accordingly in all formats from now on.