Search Unity

"Error: It looks like another Unity instance is running with this project open"

Discussion in 'Linux' started by wenderRondonia, Feb 26, 2017.

  1. wenderRondonia

    wenderRondonia

    Joined:
    Mar 15, 2015
    Posts:
    29
    Sometimes when my project chashes and I try to open it again show this message. Usually I restart the OS to solve this. My quesiont is: How can I tell unity that there is not project left? killing a process? modifying a file?
    I am a bit worried about trying to end a process and killing the unity ubuntu user interface.
     
    crns13, tgrotte and tilaprimera like this.
  2. frcaton

    frcaton

    Joined:
    Jan 24, 2015
    Posts:
    15
    When Unity closes unexpectedly it fails to delete a temporary file that prevents another instance of unity to open the same project. This file is located at [ProjectRootFolder]/Temp/UnityLockFile. So, you need to delete that file in order to open the project again without restarting the OS.
     
    crns13 and wenderRondonia like this.
  3. Collateral-Studios

    Collateral-Studios

    Joined:
    Dec 10, 2016
    Posts:
    13
    Same issue here... but the UnityLock file still exist because not all process are closed right.

    Code (CSharp):
    1. ps ax | grep Unity
     
    wenderRondonia likes this.
  4. wenderRondonia

    wenderRondonia

    Joined:
    Mar 15, 2015
    Posts:
    29
    ah thanks for explanation and for the command line help!
     
  5. knobby67

    knobby67

    Joined:
    Aug 30, 2015
    Posts:
    389
    Also on a side to a the above, if you have your debugger attached to the process you get this. I need to close down mono or vsc
     
    wenderRondonia likes this.
  6. kalibcrone

    kalibcrone

    Joined:
    Sep 4, 2015
    Posts:
    10
    Awesome thanks! Deleting UnityLock fixed my issue. Side note, I first had to go into task manager > details, and force close Unity.exe before I could delete UnityLock.
     
  7. kentg1

    kentg1

    Joined:
    Dec 22, 2014
    Posts:
    168
    We cannot do either on some of our computers, and when we do e still get the same error message.
     
    Last edited: Sep 28, 2017
  8. djenningsais

    djenningsais

    Joined:
    Aug 17, 2017
    Posts:
    1
    @kentg1 - is the project on a shared network drive?? If so you may need to find the other machine that is accessing the project. .
     
  9. kentg1

    kentg1

    Joined:
    Dec 22, 2014
    Posts:
    168
    Looks like Unity has fixed this problem - I got a email form tech support a few days ago saying that they would address it