Search Unity

Bug Unity refuses to create project

Discussion in 'Editor & General Support' started by BubblyGumKrisk, May 15, 2022.

  1. BubblyGumKrisk

    BubblyGumKrisk

    Joined:
    Jul 20, 2020
    Posts:
    2
    Hi, I've been stuck on this bug for ages. Whenever I try and create a project, Unity responds with the infamous "Multiple Unity instances" error:

    It looks like another Unity instance is running with this project open.
    Multiple Unity instances cannot open the same project.
    Project: {path to my project}

    I am running Debian 10 and Unity v2021.3.2f1. I am also booting it off a USB drive, as I do not have enough storage space on my computer. Thank you!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Steps to succes:

    Fire up tops and start killing processes that look like Unity.

    Now make an empty folder structure:

    MyGame/
    MyGame/Assets
    MyGame/ProjectSettings


    Now open folder MyGame with Unity.

    Sit back and wait for all the noise to subside, or be more aggressive:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122
     
  3. BubblyGumKrisk

    BubblyGumKrisk

    Joined:
    Jul 20, 2020
    Posts:
    2
    When I try and open MyGame with unityhub, it gives me the same error and creates the folder "Temp". In that folder, there is also "UnityLockFile". If I try to delete them, I get ".fuse_hiddenXXXXXXXXXXXXXX", where X are seemingly random numbers and letters. I also cannot delete Temp or MyGame. I get the error "rm: cannot remove 'Temp': Directory not empty", including when I use sudo or -rf.‮
     
    Last edited: May 16, 2022