Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Mac OS Big Sur Beta 10 (DTK) Unity 2020.2.0b6 - freezing screen

Discussion in '2020.2 Beta' started by thestringer, Oct 14, 2020.

  1. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Had this a little on b6/7/8 & 9 but beta 10 will not let me switch scenes without locking up the screen.

    At first I thought this was an Apple issue but looking at the Console logs it does seem to be some shenanigans going on.

    Any one else getting similar issues ?

    Console snippet :

    Created GICache directory at /Users/tomstringer/Library/Caches/com.unity3d.UnityEditor/GiCache. Took: 0.033s, timestamps: [25.372 - 25.405]
    gi::BakeBackendSwitch: switching bake backend from 3 to 0.
    Setting up 2 worker threads for Enlighten.
    Thread -> id: 316dd0000 -> priority: 1
    Thread -> id: 316e58000 -> priority: 1
    TrimDiskCacheJob: Current cache size 2990mb
    Refresh completed in 0.095428 seconds.
    RefreshInfo: RefreshV2(AllowForceSynchronousImport) scanfilter:
    RefreshProfiler: Total: 95.403ms
    Start ondemand import (priority ImportantBackground): Assets/ACC_Multiplayer/Scenes (Guid(0464fc435bfec4e4dbfb80cdf3d7380e) Importer(815301076,1909f56bfc062723c751e8b465ee728b))
    Start ondemand import (priority ImportantBackground): Assets/ACC_Multiplayer/Scenes/MainMenuScene.unity (Guid(b8c98a3ff806355449e8a355b2fe7df7) Importer(815301076,1909f56bfc062723c751e8b465ee728b))
    Opening scene 'Assets/ACC_Multiplayer/Scenes/MainMenuScene.unity'
    Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
    Loaded scene 'Assets/ACC_Multiplayer/Scenes/MainMenuScene.unity'
    Deserialize: 16.796 ms
    Integration: 602.281 ms
    Integration of assets: 0.007 ms
    Thread Wait Time: 16.297 ms
    Total Operation Time: 635.381 ms
    System memory in use before: 0.54 GB.
    System memory in use after: 0.53 GB.

    Unloading 69713 unused Assets to reduce memory usage. Loaded Objects now: 7406.
    Total: 123.859667 ms (FindLiveObjects: 6.413459 ms CreateObjectMapping: 2.340917 ms MarkObjects: 40.321792 ms DeleteObjects: 74.781584 ms)

    gi::BakeBackendSwitch: Clear() active clients.
    [EnlightenBakeManager] m_Clear = false;
    Unable to determine Max Full Frame Tonemap Luminance from display.

    Unable to determine Max Tonemap Luminance from display

    Unable to determine Min Tonemap Luminance from display

    Refresh completed in 0.096437 seconds.
    RefreshInfo: RefreshV2(AllowForceSynchronousImport) scanfilter:
    RefreshProfiler: Total: 96.412ms
    Refresh completed in 0.120775 seconds.
    RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
    RefreshProfiler: Total: 120.762ms
    Refresh completed in 0.129752 seconds.
    RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
    RefreshProfiler: Total: 129.740ms
    Refresh completed in 0.134039 seconds.
    RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
    RefreshProfiler: Total: 134.027ms
    Refresh completed in 0.144236 seconds.
    RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
    RefreshProfiler: Total: 144.218ms
    Refresh completed in 0.149191 seconds.
    RefreshInfo: RefreshV2(NoUpdateAssetOptions) scanfilter:
    RefreshProfiler: Total: 149.174ms
    2020-10-14 22:07:32.292 Unity[7138:105977] CAMetalLayer ignoring invalid setDrawableSize width=0.000000 height=0.000000
    2020-10-14 22:07:32.305 Unity[7138:105977] CAMetalLayer ignoring invalid setDrawableSize width=0.000000 height=0.000000
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    I assume this is happening in the editor? Could you try checking if it's specifically your project that's triggering it or if it reproduces on an empty one? If it doesn't happen in the empty project, we'll probably need some kind of repro in a bug report to look at it.
     
  3. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Submitted as 1285304, brand new empty project same result.
     
    LeonhardP likes this.
  4. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    factory restored the DTK in DFU mode to MacOS 11 Beta 10 and a fresh install of Unity 2020.2.0b7 on an empty project is the same.

    Another user on the DTK Forums has this same issue also.

    3 errors all with the same message this time round:
    [Package Manager Window] Error searching for packages.
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:327)
     
    Klausology likes this.
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Yeah I can reproduce this too. Thanks for the report, we will look at it.
     
    thestringer likes this.
  6. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Thanks, any idea what caused it ?
     
    Klausology likes this.
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    No ideas yet.
     
  8. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Sad to say Big Sur 11.0.1 and 2020.2.0b8 has the Unity freezing too, had to switch to a Windows machine to continue my project with then moving the project back every so often to the Mac to build and run for Silicon.
     
  9. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    131
    Yes, same. Tried it on 2021 alpha as well and the same result. Hope there will be a solution to this freezing issue soon :(
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Sorry I don't have any updates about this yet... but we are trying to chase it down.
     
  11. christopheAS

    christopheAS

    Joined:
    Jun 25, 2019
    Posts:
    18
    We have a similar problem with our game (Crying Suns) on the DTK (since Big Sur Beta 10).
    If we stop moving or clicking the mouse after the game is started, it will eventually freeze. But if we never stop moving the mouse or clicking, everything works fine.
    I don't know if it can help you narrow down the issue.
    I still have to test with the latest beta (11.0.1)
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Does your game have VSync enabled?
     
  13. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    131
    Hello! I just downloaded 2020.2.0b10 and found out that as suggested by @christopheAS, continuously moving the mouse does indeed prevent the screen freeze. Stopping the mouse movement leads to eventual screen freeze. I have also tried entering playmode both with and without VSync and there were no differences. Screen freeze continues to occur with or without Vsync. Hope this helps.
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    I was wondering specifically about the player because we weren't able to reproduce it in the player.
     
  15. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    131
    Ahh alright understood.
     
  16. christopheAS

    christopheAS

    Joined:
    Jun 25, 2019
    Posts:
    18
    No, we don't. But we set Application.targetFrameRate to an explicit value. But I think we have encountered some problems even before setting the value, during the built-in splash screens.
    We use 2018.4.28f1 at the time.
     
  17. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    I am also using vSync but have tried off/on to no effect.

    I've switched to Windows to build and will shift back to build on Apple Silicon in next week to test my final build.

    Just hope Apple's little event does not ship new Mac's that day!
     
  18. christopheAS

    christopheAS

    Joined:
    Jun 25, 2019
    Posts:
    18
    I've tested yesterday with the latest Big Sur Beta (11.0.1) and the problem still occurs. But I've discovered that only the rendering seems to freeze as when I move the mouse, sounds occuring on buttons when hovering them still play as well as the music of the game.

    I hope you will find a solution and deploy a patch to the 2018 LTS branch

    The problems occur with builds of the game. We did not test the editor directly on the platform. I can provide them if you want to check on your side.
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    We found a potential fix. Trying to get it in now.
     
    Klausology and ak_mdonais like this.
  20. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
  21. christopheAS

    christopheAS

    Joined:
    Jun 25, 2019
    Posts:
    18
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Yes it does.
     
  23. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    70
    Thanks for all the hard work on all the DTK and Silicon issue Tautvydas-Zilys, the Apple Silicon has been a journey alright.
     
    Klausology likes this.
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Tell me about it...
     
  25. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    The fix landed to 2020.2.0b12. Still in progress for 2021.1/2020.1/2019.4/2018.4.
     
  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It also just landed to 2021.1.0a7.
     
  27. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    131
    Thank you thank you!
     
  28. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    125
    Looking forward to the fix, as our development schedule is literally blocked now.
     
  29. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    The fix also landed to 2020.1.15f1 and 2018.4.30f1. 2019.4 is still in progress.
     
  30. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    And lastly, the fix landed to 2019.4.16f1.
     
  31. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    131
    Hey @thestringer! Now that 2021.1.0a7 is out, I was wondering if your DTK might have a better chance of not hanging on it?
     
  32. christopheAS

    christopheAS

    Joined:
    Jun 25, 2019
    Posts:
    18
    Thank you very much. Tested a build of Crying Suns with 2018.4.30f1 and the game does not freeze anymore.
     
  33. HandMadeGame

    HandMadeGame

    Joined:
    Oct 27, 2010
    Posts:
    11
    This issue reappears on Unity 2020.2.0f1 on Mac DTK Big Sur 11.1
    Mac keeps freezing when I turn on Unity 2020.2.0f1. It did not happen in the Unity 2020.2.0.b14
    Could you fix this, Unity? I need to build asap... :(
     
  34. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    We're evaluating a fix for DTK. It looks like on macOS 11.1, this issue is only reproducible on DTKs and not M1 Macs (whereas on macOS 11.0, it was reproducible on both). And our fix only addressed the issue that was found on macOS 11.0.

    P. S. if you need to build ASAP I suggest you either find another machine to do it, or turn off your monitor when the thing freezes since that causes it to unfreeze.
     
  35. HandMadeGame

    HandMadeGame

    Joined:
    Oct 27, 2010
    Posts:
    11
    The recent update seems to fix the issue on DTK. Thanks!