Search Unity

Bug Windowed app in background crashes on close

Discussion in 'macOS' started by andyz, Jan 8, 2021.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,269
    If a windowed Unity (2020.1 HDRP) app is in the background and you close it, then it can crash the app

    Any known bugs around this?

    Code (CSharp):
    1. Thread 0 Crashed:: tid_307  Dispatch queue: com.apple.main-thread
    2. 0   libsystem_kernel.dylib            0x00007fff714fe882 __psynch_cvwait + 10
    3. 1   libsystem_pthread.dylib           0x00007fff715bf457 _pthread_cond_wait + 748
    4. 2   libmonobdwgc-2.0.dylib            0x0000000111dad9ff mono_os_cond_timedwait + 80
    5. 3   libmonobdwgc-2.0.dylib            0x0000000111d65206 mono_thread_cleanup + 92
    6. 4   libmonobdwgc-2.0.dylib            0x0000000111ccad26 mono_runtime_cleanup + 19
    7. 5   libmonobdwgc-2.0.dylib            0x0000000111b8794f mini_cleanup + 677
    8. 6   UnityPlayer.dylib                 0x0000000108f9c79b 0x1087fc000 + 7997339
    9. 7   UnityPlayer.dylib                 0x0000000108e25f81 0x1087fc000 + 6463361
    10. 8   UnityPlayer.dylib                 0x00000001095e31f2 0x1087fc000 + 14578162
    11. 9   UnityPlayer.dylib                 0x00000001095dc827 0x1087fc000 + 14551079
    12. 10  com.apple.Foundation              0x00007fff39a152ea __NSFireTimer + 67
    13. 11  com.apple.CoreFoundation          0x00007fff373377f9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    14. 12  com.apple.CoreFoundation          0x00007fff3733735f __CFRunLoopDoTimer + 859
    15. 13  com.apple.CoreFoundation          0x00007fff37336e47 __CFRunLoopDoTimers + 322
    16. 14  com.apple.CoreFoundation          0x00007fff3731bbea __CFRunLoopRun + 1871
    17. 15  com.apple.CoreFoundation          0x00007fff3731ae3e CFRunLoopRunSpecific + 462
    18. 16  com.apple.HIToolbox               0x00007fff35f47abd RunCurrentEventLoopInMode + 292
    19. 17  com.apple.HIToolbox               0x00007fff35f477d5 ReceiveNextEventCommon + 584
    20. 18  com.apple.HIToolbox               0x00007fff35f47579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
    21. 19  com.apple.AppKit                  0x00007fff3458d039 _DPSNextEvent + 883
    22. 20  com.apple.AppKit                  0x00007fff3458b880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
    23. 21  com.apple.AppKit                  0x00007fff3457d58e -[NSApplication run] + 658
    24. 22  com.apple.AppKit                  0x00007fff3454f396 NSApplicationMain + 777
    25. 23  UnityPlayer.dylib                 0x00000001095e4880 PlayerMain(int, char const**) + 912
    26. 24  libdyld.dylib                     0x00007fff713bacc9 start + 1