Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity hangs when opening project in Visual Studio

Discussion in 'Editor & General Support' started by Toriously, Feb 2, 2022.

  1. Toriously

    Toriously

    Joined:
    Aug 3, 2017
    Posts:
    2
    Unity gets stuck loading with something like these messages when I try to open the project in VS.

    ProjectBrowser.MouseDown
    Waiting for Unity's code in UnityEditor.CoreModule.dll to finish executing

    or
    MenuItem.Open C# Project
    Waiting for user code in mscorlib.dll to finish executing

    I'm forced to kill Unity, but when I restart, VS opens without issues. But then next time I run Unity it hangs again.

    Unity 2021.2.8f1, Visual Studio 2022.17.0.5
    Did not have this issue in Unity 2020.

    Troubleshooting is slow because of all the hangs and restarts so I appreciate any help I can get.
     
    tedo125 and MGretton like this.
  2. Docboy

    Docboy

    Joined:
    Sep 11, 2013
    Posts:
    14
    The same problem here, cant open a project I worked in yesterday, using Unity 2021.2.16f1

    Help
     
  3. Docboy

    Docboy

    Joined:
    Sep 11, 2013
    Posts:
    14
  4. Nick_Pangburn

    Nick_Pangburn

    Joined:
    Jun 22, 2016
    Posts:
    1
    I solved the problem by going to the directory in File Explorer for my project, I did a local search for the keyword plastic, and everything that popped up I simply sent to the recycle bin to be deleted. Project opened right up, and I'm going to immediately remove the "Source Control" package from my project! Thanks for the pointers!
     
  5. Vaupell

    Vaupell

    Joined:
    Dec 2, 2013
    Posts:
    301
    Hmm, started getting this problem now, i have not updated or anything but now all of the sudden..
    Running on 2021.2.18f1.

    Edit, now opened same project in 2021.3.0f1,,
    same issue..

    Eventually it times out after 5 ish minuttes and crashed the editor..
    Running visual studio on it's own works fine, but with unity,, not anymore.
     
    Last edited: Apr 20, 2022
    Anonymized likes this.
  6. ManuBera

    ManuBera

    Joined:
    Aug 19, 2021
    Posts:
    70
    Solved this by starting the Plastic SCM client before opening the Unity project :)
     
    NestorAlgieri and junhossi like this.
  7. yengNami

    yengNami

    Joined:
    Feb 14, 2021
    Posts:
    12
    Try - Go to Plastic SCM Dashboard> Cloud> Configure> Network allow list> add your IP to the list then Save.
     
  8. Shanlu

    Shanlu

    Joined:
    Jul 24, 2014
    Posts:
    1
    This is the same problem in my case . it worked . Thanks :)
     
    ManuBera likes this.
  9. AdaluteGames

    AdaluteGames

    Joined:
    Dec 10, 2012
    Posts:
    31
  10. Switch_Z

    Switch_Z

    Joined:
    Dec 21, 2016
    Posts:
    3
    That works!
     
    ManuBera likes this.
  11. StormworksWK

    StormworksWK

    Joined:
    Oct 9, 2013
    Posts:
    1
    After running into this yet again and having tried all the solutions before, I have found something that nobody else has mentioned, as far as I can tell, and it solved my problem. Note this occurred on 2021.3.3f1, but I'd bet quite a lot that it will solve the issue on other versions as well.

    It's Windows' file and folder security.

    Opening and then modifying the Windows Security Settings on the Project folder so that Users can have Full Control instantly solved it. After uninstalling and then reinstalling the package Visual Studio Editor to regenerate the csproj after that (as I ran into an issue where the sln and csproj weren't generated at all), I can open VS easily from Unity. Assets > Open C# Project, Edit Script in the Inspector, and double clicking both from the Project Browser and the Console log work.
     
  12. Blarp

    Blarp

    Joined:
    May 13, 2014
    Posts:
    267
    This fixed the problem for me as well, praisebe.

    I duplicated an older project to make a new project and it was just hanging on open.
     
    ManuBera likes this.
  13. MoonMode_Chris

    MoonMode_Chris

    Joined:
    Dec 2, 2019
    Posts:
    4
    Just want to add my +1 to this problem, I'm getting it constantly in 2021.3.5f1, including this guy:

    upload_2022-9-20_15-50-11.png

    This time it's because I tried to *close* the editor :|
     

    Attached Files:

  14. Vaupell

    Vaupell

    Joined:
    Dec 2, 2013
    Posts:
    301
    issue recently started again, and NOT using plastic..
     
  15. CheMBurN

    CheMBurN

    Joined:
    Dec 13, 2020
    Posts:
    17
    Confirmed, just starting happening to me
     
  16. CheMBurN

    CheMBurN

    Joined:
    Dec 13, 2020
    Posts:
    17
    Try restarting PC, seemed to fixed the issue for me.
     
  17. tgkthefirst

    tgkthefirst

    Joined:
    Dec 27, 2020
    Posts:
    13
    Been facing this issue after creating a script, it got severe to the point clicking on a gameobject would trigger this, removed plastic SCM gonna try to restart
    although worth mentioning that I started facing this after I added entities package, but I think this goes beyond entities
     
  18. altepTest

    altepTest

    Joined:
    Jul 5, 2012
    Posts:
    1,050
  19. GabeO1029

    GabeO1029

    Joined:
    Jan 29, 2023
    Posts:
    1
    Just want to add that I have the same problem.
     
  20. DesignSpring

    DesignSpring

    Joined:
    Feb 1, 2021
    Posts:
    1
    same issue here
     
  21. sealfoss

    sealfoss

    Joined:
    Nov 19, 2012
    Posts:
    11
    why is this still happening?
     
  22. aleegs1

    aleegs1

    Joined:
    Jun 12, 2018
    Posts:
    2
    still happening :mad:
     
  23. User414322

    User414322

    Joined:
    Jul 9, 2019
    Posts:
    22
    What even is plastic SCM and how do I fix this issue?