Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Unity project is already opened. When is not.

Discussion in 'Unity Hub' started by shanlocuello, Sep 4, 2023.

  1. shanlocuello

    shanlocuello

    Joined:
    Nov 3, 2018
    Posts:
    4
    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:
     
  2. juan_homa

    juan_homa

    Joined:
    Aug 18, 2023
    Posts:
    25
    same problem here :mad:
     
  3. speedhawk21

    speedhawk21

    Joined:
    Apr 30, 2014
    Posts:
    4
    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
     
    Last edited: Nov 24, 2023
  4. hrszn

    hrszn

    Joined:
    Nov 1, 2023
    Posts:
    1
    Still cant delete the UnityLockFile if it is still "running" in Unity Editor, which it isn't.
     
  5. unity_8E68FE3708498C4675CE

    unity_8E68FE3708498C4675CE

    Joined:
    Oct 1, 2021
    Posts:
    1
    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.
     
  6. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,425
    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?
     
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,515
    Is there anything Unity related showing in activity monitor?