Apple macOS High Sierra (and later) with Metal2 crashes at launching

version 1.7.8 error log: Process: RetroArch [7628] Path: /working/RetroArch.app/Contents/MacOS/RetroArch Identifier: libretro.RetroArch Version: 1.7.8 (1.7.8) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: RetroArch [7628] User ID: 501

Date/Time: 2019-08-28 14:50:50.565 +0800 OS Version: Mac OS X 10.14.6 (18G87) Report Version: 12 Bridge OS Version: 3.0 (14Y904) Anonymous UUID: 18FCB90D-F6D9-BC79-286D-19EB4BF30A14

Sleep/Wake UUID: 20552167-7BB7-42FD-9C69-5D5EA084EF63

Time Awake Since Boot: 61000 seconds Time Since Wake: 2400 seconds

System Integrity Protection: enabled

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

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

Application Specific Information: detected buffer overflow

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff6c61a2c6 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff6c6d5bf1 pthread_kill + 284 2 libsystem_c.dylib 0x00007fff6c5846a6 abort + 127 3 libsystem_c.dylib 0x00007fff6c584819 abort_report_np + 177 4 libsystem_c.dylib 0x00007fff6c5a8cb1 __chk_fail + 48 5 libsystem_c.dylib 0x00007fff6c5a8c81 __chk_fail_overflow + 16 6 libsystem_c.dylib 0x00007fff6c5a8f7f __snprintf_chk + 158 7 libretro.RetroArch 0x000000010e124cb4 setting_append_list + 66890 8 libretro.RetroArch 0x000000010e087b0c menu_setting_new + 121 9 libretro.RetroArch 0x000000010e1143ec menu_init + 39 10 libretro.RetroArch 0x000000010e07d900 menu_driver_init + 160 11 libretro.RetroArch 0x000000010dfe0c2f drivers_init + 3382 12 libretro.RetroArch 0x000000010dfeedb1 retroarch_main_init + 3742 13 libretro.RetroArch 0x000000010e06d4f6 content_load + 1157 14 libretro.RetroArch 0x000000010e06e2ce task_load_content_callback + 486 15 libretro.RetroArch 0x000000010dfe2a37 rarch_main + 338 16 libretro.RetroArch 0x000000010df76993 -[RetroArch_OSX applicationDidFinishLaunching:] + 487 17 com.apple.CoreFoundation 0x00007fff405ecb96 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 18 com.apple.CoreFoundation 0x00007fff405ecb10 ___CFXRegistrationPost_block_invoke + 63 19 com.apple.CoreFoundation 0x00007fff405eca7a _CFXRegistrationPost + 404 20 com.apple.CoreFoundation 0x00007fff405f4f28 ___CFXNotificationPost_block_invoke + 87 21 com.apple.CoreFoundation 0x00007fff4055d8b4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1642 22 com.apple.CoreFoundation 0x00007fff4055cc67 _CFXNotificationPost + 732 23 com.apple.Foundation 0x00007fff427e2f5b -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 24 com.apple.AppKit 0x00007fff3db86fc4 -[NSApplication _postDidFinishNotification] + 312 25 com.apple.AppKit 0x00007fff3db86917 -[NSApplication _sendFinishLaunchingNotification] + 208 26 com.apple.AppKit 0x00007fff3db84a6b -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552 27 com.apple.AppKit 0x00007fff3db846bb -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688 28 com.apple.Foundation 0x00007fff4282cb3c -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286 29 com.apple.Foundation 0x00007fff4282c9b9 _NSAppleEventManagerGenericHandler + 102 30 com.apple.AE 0x00007fff417ae397 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 1815 31 com.apple.AE 0x00007fff417adc29 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41 32 com.apple.AE 0x00007fff417adb01 aeProcessAppleEvent + 414 33 com.apple.HIToolbox 0x00007fff3f7f18b7 AEProcessAppleEvent + 54 34 com.apple.AppKit 0x00007fff3db80abd _DPSNextEvent + 1935 35 com.apple.AppKit 0x00007fff3db7f48b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361 36 com.apple.AppKit 0x00007fff3db795a8 -[NSApplication run] + 699 37 com.apple.AppKit 0x00007fff3db68ae8 NSApplicationMain + 777 38 libdyld.dylib 0x00007fff6c4df3d5 start + 1

Thread 1: 0 libsystem_pthread.dylib 0x00007fff6c6d23f0 start_wqthread + 0

Thread 2: 0 libsystem_pthread.dylib 0x00007fff6c6d23f0 start_wqthread + 0

Thread 3: 0 libsystem_pthread.dylib 0x00007fff6c6d23f0 start_wqthread + 0

Thread 4: 0 libsystem_pthread.dylib 0x00007fff6c6d23f0 start_wqthread + 0

Thread 5: 0 libsystem_kernel.dylib 0x00007fff6c61786a __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff6c6d656e _pthread_cond_wait + 722 2 libretro.RetroArch 0x000000010e10bffa threaded_worker + 155 3 libretro.RetroArch 0x000000010e05f4e7 thread_wrap + 20 4 libsystem_pthread.dylib 0x00007fff6c6d32eb _pthread_body + 126 5 libsystem_pthread.dylib 0x00007fff6c6d6249 _pthread_start + 66 6 libsystem_pthread.dylib 0x00007fff6c6d240d thread_start + 13

Thread 6: 0 libsystem_kernel.dylib 0x00007fff6c61427e semaphore_timedwait_trap + 10 1 libdispatch.dylib 0x00007fff6c492c99 _dispatch_sema4_timedwait + 76 2 libdispatch.dylib 0x00007fff6c493377 _dispatch_semaphore_wait_slow + 58 3 libdispatch.dylib 0x00007fff6c4a01fd _dispatch_worker_thread + 317 4 libsystem_pthread.dylib 0x00007fff6c6d32eb _pthread_body + 126 5 libsystem_pthread.dylib 0x00007fff6c6d6249 _pthread_start + 66 6 libsystem_pthread.dylib 0x00007fff6c6d240d thread_start + 13

Thread 7:: com.apple.audio.IOThread.client 0 libsystem_kernel.dylib 0x00007fff6c61422a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6c61476c mach_msg + 60 2 com.apple.audio.CoreAudio 0x00007fff3fff79f7 HALC_IOContext_Start + 145 3 com.apple.audio.CoreAudio 0x00007fff3fff60e3 HALC_ProxyIOContext::IOWorkLoop() + 317 4 com.apple.audio.CoreAudio 0x00007fff3fff5df4 HALC_ProxyIOContext::IOThreadEntry(void*) + 122 5 com.apple.audio.CoreAudio 0x00007fff3fff5956 HALB_IOThread::Entry(void*) + 72 6 libsystem_pthread.dylib 0x00007fff6c6d32eb _pthread_body + 126 7 libsystem_pthread.dylib 0x00007fff6c6d6249 _pthread_start + 66 8 libsystem_pthread.dylib 0x00007fff6c6d240d thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00000001173f75c0 rcx: 0x00007ffee1f378d8 rdx: 0x0000000000000000 rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007ffee1f37910 rsp: 0x00007ffee1f378d8 r8: 0x0000000000000000 r9: 0x00007ffee1f37950 r10: 0x0000000000000000 r11: 0x0000000000000206 r12: 0x0000000000000307 r13: 0x000000010e20a9d8 r14: 0x0000000000000006 r15: 0x000000000000002d rip: 0x00007fff6c61a2c6 rfl: 0x0000000000000206 cr2: 0x00007fffa2d70188

Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133

Binary Images: …

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 51519 thread_create: 0 thread_set_state: 0

VM Region Summary: ReadOnly portion of Libraries: Total=421.8M resident=0K(0%) swapped_out_or_unallocated=421.8M(100%) Writable regions: Total=641.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=641.8M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 128K 1 Activity Tracing 256K 1 CG image 24K 2 CoreAnimation 100K 7 CoreGraphics 8K 1 CoreUI image data 300K 4 CoreUI image file 208K 4 Foundation 4K 1 IOKit 15.5M 1 Kernel Alloc Once 8K 1 MALLOC 237.1M 43 MALLOC guard page 32K 6 MALLOC_LARGE (reserved) 1152K 2 reserved VM address space (unallocated) MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) Memory Tag 242 12K 1 STACK GUARD 56.0M 8 Stack 11.6M 8 VM_ALLOCATE 72K 7 __DATA 34.1M 263 __FONT_DATA 4K 1 __LINKEDIT 229.3M 12 __TEXT 192.5M 263 __UNICODE 564K 1 mapped file 41.2M 14 shared memory 2748K 11 =========== ======= ======= TOTAL 1.2G 664 TOTAL, minus reserved VM space 821.6M 664

Model: MacBookPro14,3, BootROM 198.71.1.0.0, 4 processors, Intel Core i7, 2.9 GHz, 16 GB, SMC 2.45f0 Graphics: kHW_IntelHDGraphics630Item, Intel HD Graphics 630, spdisplays_builtin Graphics: kHW_AMDRadeonPro560Item, Radeon Pro 560, spdisplays_pcie_device, 4 GB Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x80AD, 0x483943434E4E4E434C47414C41522D4E5644 Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x80AD, 0x483943434E4E4E434C47414C41522D4E5644 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x173), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8) Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.0 Bus USB Device: Apple T1 Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1 Thunderbolt Bus: MacBook Pro, Apple Inc., 41.1

Hey so I had this issue just yesterday - I tried with the nightly version though found here (I used 27th) and it was fine, can you see if that works: https://buildbot.libretro.com/nightly/apple/osx/x86_64/ <— go all the way down.

Second thing I had was ‘garbled’ onscreen notifications - I switched the menu driver from XMB to Ozone which did the trick though.

I also encountered this problem on my newly installed macOS 10.14.6