Unity project is already opened. When is not.

Device: Macbook pro m2 chip apple.
Unity Hub version: 3.5.1
Unity editor version: 2021.3.13

How to reproduce:
When I get a “Unity not responding” I can’t close the app with the X buttton. So I open the “Force quit application” of Apple (is like the task manager of Windows) I select the Unity editor and force quit. Then I try to open the Unity project again but it says that is already opened. The only way to fix this is restart the computer.

Here is a full video:

same problem here :rage:

Same here. Killing the process doesn’t actually kill the lock file, which I needed to do manually.

Unity v2022.3.14f1

The location of the lockfile that needs to be removed:

Temp/UnityLockfile

Still cant delete the UnityLockFile if it is still “running” in Unity Editor, which it isn’t.

1 Like

I found a solution for the lock file not being able to be deleted you need first to remove the project from list via unity hub, then restart your pc and then you should be able to delete it.

1 Like

sounds like either a process is still running or something like antivirus hasnt let go of the file yet. Have you done some process debugging to see if thats the case?

Is there anything Unity related showing in activity monitor?