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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Unity highly unstable/unusable on macOS

Discussion in 'Editor & General Support' started by sd_trent, Jun 7, 2021.

  1. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    30
    Hey everyone,

    Over the last few months, Unity has become slower and slower in the editor. Now it's gotten to the point where it's completely unusable. Making the tiniest movements in the scene editor, Unity hangs and beach balls anywhere from a few seconds to almost a full minuet. Sometimes when this happens, my computer will randomly log me out. When I've logged back in, Unity is "is running" in the background but the editor window is nowhere to be found. If I go to Unity Hub and try to launch my project again, it says it's "already running". To quit the Unity Editor I have to use Activity Monitor.

    My scene is relativity basic, I can't imagine it would be the main cause of the issue. I don't use a lot of high polygon objects, they're all relativity simple objects. However, I won't rule anything out.

    One thing that did help that someone suggested awhile ago was logging out of my Unity account in the editor. That helped for some time, but things are slow and unusable again despite still being logged out.

    Please, if anyone has any idea what I can do to resolve this issue that would be great. I'll include my log files. Thank you.

    I'm running macOS Big Sur 11.4 using Unity 2020.3.11f1 LTS (also tried 2021.1.10f1 with same results).
    Specs:
    Processor: 3.3 GHz 12-Core Intel Xeon W
    Memory: 96 GB 2933 MHz DDR4
    Graphics: AMD Radeon Pro Vega II 32 GB, Radeon RX 5700 XT
     

    Attached Files:

    • log.txt
      File size:
      40.7 KB
      Views:
      133
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    First, make sure your project is fully backed up or even better, put it under source control NOW in case something is going horribly wrong with it.

    When properly using source control you should NOT be committing anything from the Library directory (see how to set up a .gitignore file).

    Once you have it under source control AND TESTED in another directory, see if using it in that other directory works better.

    If so, you should probably delete the Library folder in the original project, or perhaps Reimport All.

    DO NOT TRY ANYTHING SUGGESTED until you have it backed up or under proper source control.

    Source control notes:

    Personally I use git because it is free and there are tons of tutorials out there to help you set it up.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    Here's how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up the right .gitignore file:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally setting Unity up (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity
     
  3. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    30
    THANK YOU! Deleting the library folder did the trick! Now the question is why did the library folder get corrupted? o_O
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    There was a version of Unity earlier this year (or late last year?) that kept adding to a shader cache that would grow to terabytes in size (if you had the drive space)... maybe it's that version you were using?
     
  5. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    30
    Hmmm, I don't recall losing drive space but I guess its possible.