Search Unity

Unity 2019.3.4f1 hangs on Mac OS Catalina after inactivity

Discussion in 'Editor & General Support' started by SixTimesNothing, Mar 13, 2020.

  1. SixTimesNothing

    SixTimesNothing

    Joined:
    Dec 26, 2007
    Posts:
    167
    I am finding that Unity keeps hanging after the editor application is left inactive for a while – e.g. switching to other applications. Returning to the editor after a period of inactivity results in the Unity hanging and I get the spinning 'beach ball' cursor. Almost always, it's unrecoverable and it becomes necessary to force quit and restart Unity.

    Memory usage in Activity Monitor seems to spike as soon as the editor is brought back into the foreground, but the amount of memory used at the point of hanging varies considerably. I have already run some tests in my project to determine if there is a memory leak, but haven't found anything as yet.

    It's also notable that this problem only occurs when Unity is idle and in the background. I have not seen his happen at all when I have been actively using Unity and I have no problem switching back and for the between my code editor, Sublime Text and Unity. I also have no problem going into play mode in the editor repeatedly. It seems that I can use Unity for a while like this, but if I switch to other applications (even web browser, email) for a long period of time, Unity will hang when I return to it.

    The last 2 versions of Unity have had this problem for me (2019.3.3 and 2019.3.4), running on Mac OS Catalina 10.15.3. Prior to 2019.3.3 the same project never had this problem.

    I'm posting this here to see if this is something anyone else is experiencing or if it's just me. It looks like a Unity issue and not a project issue, but hard to be sure. So please let me know if you have seen this happen too. Thanks!
     
    midsummer, Neku66 and jmark like this.
  2. jmark

    jmark

    Joined:
    Feb 25, 2017
    Posts:
    1
    I was experiencing this as well. Just upgraded a project to 2020.1.0b1 and it looks like it's fixed
     
    SixTimesNothing likes this.
  3. SixTimesNothing

    SixTimesNothing

    Joined:
    Dec 26, 2007
    Posts:
    167
    Thanks jmark, that's good to know. I had been holding back on moving my project to the beta, but maybe now is the time.
     
  4. argh6543

    argh6543

    Joined:
    Apr 14, 2017
    Posts:
    48
    Unfortunately I did not see any improvement in 2020.1.0b2... Every release since 2019.3.3f1 hangs when the editor is left idle. I'm on the same version of MacOS and there is barely any other software installed on this machine since I only use it for Unity dev (Unity, VS2019, Xcode, Chrome). No other software shows any issues.
     
  5. SixTimesNothing

    SixTimesNothing

    Joined:
    Dec 26, 2007
    Posts:
    167
    I'm on 2020.1.0b1 and haven't seen the problem at all since upgrading. Btw @argh6543, did you try 2020.1.0b1 or go straight to 2020.1.0b2?
     
  6. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    Yes I noticed it too, staying on 2019.3.2 for now
     
  7. argh6543

    argh6543

    Joined:
    Apr 14, 2017
    Posts:
    48
    I went straight to 2020.1.0b2. 2020.1.0b3 did not improve the behavior either.
     
  8. SixTimesNothing

    SixTimesNothing

    Joined:
    Dec 26, 2007
    Posts:
    167
    Actually I'm now on 2020.1.0b4 and the issue is back again – crashing when inactive :(
     
  9. argh6543

    argh6543

    Joined:
    Apr 14, 2017
    Posts:
    48
    The fun thing is, this affects only certain projects. Same system, two different projects, one hangs, the other happily stays in the background overnight.
     
  10. Notabear

    Notabear

    Joined:
    Jun 3, 2020
    Posts:
    1
    Experiencing the same issue. Does anyone have any new info on this?
     
  11. HashbangGames

    HashbangGames

    Joined:
    May 7, 2011
    Posts:
    40
    I'm having the same issue. I have not tried 2020, but I'm currently on 2019.3.10f1 and have been experiencing this for months. I took a sample of Unity during the hang.. I hope this info helps someone at unity to understand what is happening. File attached.
     

    Attached Files:

  12. creet3d

    creet3d

    Joined:
    Aug 6, 2019
    Posts:
    1
    I also have this problem - Unity hanging after some time inactivity on MBP 2019, it's crazy :(