Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Metal crash on M1 Max device with Unity 2022.2.6f1

Discussion in 'macOS' started by sonicdesordre, Feb 15, 2023.

  1. sonicdesordre

    sonicdesordre

    Joined:
    May 31, 2021
    Posts:
    11
    Hello,

    Suddenly our app won't launch anymore with the crash log below.

    This is happening only on one machine we have tested so far, it is a MBP M1 Max, OSX Monterey 12.6.

    We are using Unity 2022.2.6f1.

    We have tested other M1 notebooks and Intel machines and the app launches there, but it does not on this certain M1 Max notebook. We have tried the old and new version of the app ( the old version was working before on this machine but it does not anymore with this Unity 2022.2.6f1 build.)

    I see that it is about Metal, how can we progress in this case, any similar cases ? ( I have seen some reports with similar Metal issue ).

    thank you


    Crashed Thread: 0 tid_103 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY

    Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread
    0 libsystem_kernel.dylib 0x1b2cb2d98 __pthread_kill + 8
    1 libsystem_pthread.dylib 0x1b2ce7ee0 pthread_kill + 288
    2 libsystem_c.dylib 0x1b2c22340 abort + 168
    3 libsystem_c.dylib 0x1b2c21754 __assert_rtn + 272
    4 Metal 0x1bb6e2dd8 MTLReportFailure.cold.1 + 56
    5 Metal 0x1bb6cc790 MTLReportFailure + 480
    6 Metal 0x1bb6c54f0 _MTLMessageContextEnd + 1068
    7 Metal 0x1bb61140c -[MTLTextureDescriptorInternal validateWithDevice:] + 3064
    8 AGXMetalG13X 0x1f9bfd73c 0x1f9708000 + 5199676
    9 UnityPlayer.dylib 0x10766b080 0x1067a4000 + 15495296
    10 UnityPlayer.dylib 0x10765b800 0x1067a4000 + 15431680
    11 UnityPlayer.dylib 0x10765bdc4 0x1067a4000 + 15433156
    12 UnityPlayer.dylib 0x10764d930 0x1067a4000 + 15374640
    13 UnityPlayer.dylib 0x10764d6d0 0x1067a4000 + 15374032
    14 UnityPlayer.dylib 0x107650b9c 0x1067a4000 + 15387548
    15 UnityPlayer.dylib 0x107650648 0x1067a4000 + 15386184
    16 UnityPlayer.dylib 0x1076504e4 0x1067a4000 + 15385828
    17 UnityPlayer.dylib 0x106c3daa8 0x1067a4000 + 4823720
    18 UnityPlayer.dylib 0x10764a404 0x1067a4000 + 15361028
    19 UnityPlayer.dylib 0x10764c75c 0x1067a4000 + 15370076
    20 UnityPlayer.dylib 0x10764c664 0x1067a4000 + 15369828
    21 CoreFoundation 0x1b2da9468 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
    22 CoreFoundation 0x1b2e4dbb8 ___CFXRegistrationPost_block_invoke + 52
    23 CoreFoundation 0x1b2e4db24 _CFXRegistrationPost + 456
    24 CoreFoundation 0x1b2d780f8 _CFXNotificationPost + 732
    25 Foundation 0x1b3c3dc28 -[NSNotificationCenter postNotificationName:eek:bject:userInfo:] + 96
    26 AppKit 0x1b592328c -[NSApplication _postDidFinishNotification] + 340
    27 AppKit 0x1b5922fa4 -[NSApplication _sendFinishLaunchingNotification] + 236
    28 AppKit 0x1b59209c8 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 588
    29 AppKit 0x1b59205a8 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780
    30 Foundation 0x1b3c6a7d8 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 348
    31 Foundation 0x1b3c6a610 _NSAppleEventManagerGenericHandler + 96
    32 AE 0x1b955aab8 0x1b954f000 + 47800
    33 AE 0x1b955a410 0x1b954f000 + 46096
    34 AE 0x1b95534a8 aeProcessAppleEvent + 488
    35 HIToolbox 0x1bba0795c AEProcessAppleEvent + 68
    36 AppKit 0x1b591a8f4 _DPSNextEvent + 1844
    37 AppKit 0x1b5918e14 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
    38 AppKit 0x1b590afe0 -[NSApplication run] + 596
    39 AppKit 0x1b58dc6fc NSApplicationMain + 1132
    40 UnityPlayer.dylib 0x10764ac68 PlayerMain(int, char const**) + 944
    41 dyld 0x1031fd08c start + 520
     
  2. sonicdesordre

    sonicdesordre

    Joined:
    May 31, 2021
    Posts:
    11
    What is the best Unity version for development on Apple Silicon machines ?
     
  3. tsp53

    tsp53

    Joined:
    Feb 24, 2022
    Posts:
    1
    Did you find a fix for the original problem?
     
  4. sonicdesordre

    sonicdesordre

    Joined:
    May 31, 2021
    Posts:
    11
    We have installed a clean system on the machine which was crashing, and then it worked. But it was then impossible to find what was causing the crash.