Was editing a prefab and did something it didn’t like and the Unity editor crashed out. But then I could never open the project from the Unity Hub ever again until I restarted the computer, because it kept saying the project was already open.
I used htop to find everything with “unity” or my project name, and killed a few processes I thought would be it, but still got the same error until I restarted the computer.
Does anyone know what process I should be looking for to terminate to allow me to re-open the project again?
There should be a file in your project called “Temp/UnityLockFile”. If you remove it the issue should go away.
What happens is Unity creates this file when the project open if it doesn’t exist and takes an exclusive lock on it. The lock is released when Unity exists. In the case of a crash, the lock is never freed. So you have to wait for the system to get around to it or just delete the file.
This is something we could consider doing in our crash handler if you wan to log a bug on it.
This has happened to me so many times… now I finally decided to google it and this was the first result.
I am not sure how to log a bug - is it impossible for you to do it?
It sounds like you are already aware of this bug and know how to reproduce it (and even how to fix it). And your description says you work in Unity
Why this can’t be fixed? This is in Unity Hub forever. Looks a bit weird that Unity Hub tells you that Unity is already open when you launched it last time 2 months ago.
Is it so hard to fix?
I mean - programming is about automation, why I should manually go and delete that Temp/UnityLockFile file?