Dolphin, the GameCube and Wii emulator - Forums
Dolphin crashing - NSInvalidArgumentException - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Support (https://forums.dolphin-emu.org/Forum-support)
+--- Thread: Dolphin crashing - NSInvalidArgumentException (/Thread-dolphin-crashing-nsinvalidargumentexception)



Dolphin crashing - NSInvalidArgumentException - Hairball - 05-24-2020

With the latest version of Dolphin its crashing if graphics are set to Vulkan on Mac OS 10.15.4



Crash report -

Crashed Thread:        17  Emuthread - Starting

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

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CAMetalLayer window]: unrecognized selector sent to instance 0x6000011071e0'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff38c92d07 __exceptionPreprocess + 250
1   libobjc.A.dylib                     0x00007fff719b65bf objc_exception_throw + 48
2   CoreFoundation                      0x00007fff38d11c97 -[NSObject(NSObject) __retain_OA] + 0
3   CoreFoundation                      0x00007fff38bf757b ___forwarding___ + 1427
4   CoreFoundation                      0x00007fff38bf6f58 _CF_forwarding_prep_0 + 120
5   Dolphin                             0x0000000107b1ae78 _ZN6ciface6Quartz16KeyboardAndMouseC2EPv + 168

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x00007fff72c9edfa mach_msg_trap + 10
1   libsystem_kernel.dylib         0x00007fff72c9f170 mach_msg + 60
2   com.apple.CoreFoundation       0x00007fff38c170b5 __CFRunLoopServiceMachPort + 247
3   com.apple.CoreFoundation       0x00007fff38c15b82 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation       0x00007fff38c14ffe CFRunLoopRunSpecific + 462
5   com.apple.HIToolbox           0x00007fff37848abd RunCurrentEventLoopInMode + 292
6   com.apple.HIToolbox           0x00007fff378487d5 ReceiveNextEventCommon + 584
7   com.apple.HIToolbox           0x00007fff37848579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8   com.apple.AppKit               0x00007fff35e93c99 _DPSNextEvent + 883
9   com.apple.AppKit               0x00007fff35e924e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
10  com.apple.AppKit               0x00007fff35e841ee -[NSApplication run] + 658
11  libqcocoa.dylib               0x000000010c3a55e8 0x10c36e000 + 226792
12  org.qt-project.QtCore         0x000000010a2d7b0f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
13  org.qt-project.QtCore         0x000000010a2dbfe2 QCoreApplication::exec() + 130

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

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

Thread 3:: org.libusb.device-hotplug
0   libsystem_kernel.dylib         0x00007fff72c9edfa mach_msg_trap + 10
1   libsystem_kernel.dylib         0x00007fff72c9f170 mach_msg + 60
2   com.apple.CoreFoundation       0x00007fff38c170b5 __CFRunLoopServiceMachPort + 247
3   com.apple.CoreFoundation       0x00007fff38c15b82 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation       0x00007fff38c14ffe CFRunLoopRunSpecific + 462
5   com.apple.CoreFoundation       0x00007fff38c9d639 CFRunLoopRun + 40
6   org.dolphin-emu.dolphin       0x0000000107d1517f darwin_event_thread_main + 351
7   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 4:: libusb thread
0   libsystem_kernel.dylib         0x00007fff72ca53d6 poll + 10
1   org.dolphin-emu.dolphin       0x0000000107d110a5 handle_events + 437

Thread 5:
0   libsystem_pthread.dylib       0x00007fff72d5db68 start_wqthread + 0

Thread 6:
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31623 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3   org.dolphin-emu.dolphin       0x0000000107d2671e void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, IoThreadHolder::Start()::'lambda'()> >(void*) + 190

Thread 7:: Analytics
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18

Thread 8:
0   libsystem_kernel.dylib         0x00007fff72ca1756 __semwait_signal + 10
1   libsystem_c.dylib             0x00007fff72c24eea nanosleep + 196
2   libSDL2-2.0.0.dylib           0x0000000109a765b2 SDL_Delay_REAL + 83
3   libSDL2-2.0.0.dylib           0x00000001099ddd83 SDL_WaitEventTimeout_REAL + 71

Thread 9:: Wiimote Scanning Thread
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31623 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93

Thread 10:: Wiimote Pool Thread
0   libsystem_kernel.dylib         0x00007fff72ca1756 __semwait_signal + 10
1   libsystem_c.dylib             0x00007fff72c24eea nanosleep + 196
2   libc++.1.dylib                 0x00007fff6fe686da std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 73
3   org.dolphin-emu.dolphin       0x000000010788c13a WiimoteReal::WiimoteScanner::PoolThreadFunc() + 106
4   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 11:
0   libsystem_kernel.dylib         0x00007fff72ca1756 __semwait_signal + 10
1   libsystem_c.dylib             0x00007fff72c24eea nanosleep + 196
2   libsystem_c.dylib             0x00007fff72c24de4 usleep + 53
3   org.dolphin-emu.dolphin       0x000000010765f12a HotkeyScheduler::Run() + 5002
4   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 12:
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
3   org.dolphin-emu.dolphin       0x00000001077272bb Common::WorkQueueThread<GameTracker::Command>::ThreadLoop() + 107
4   ???                           0x8000000000000000 0 + 9223372036854775808

Thread 13:
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31623 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3   org.dolphin-emu.dolphin       0x00000001076569d5 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 117
4   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 14:: com.apple.CFSocket.private
0   libsystem_kernel.dylib         0x00007fff72ca70fe __select + 10
1   com.apple.CoreFoundation       0x00007fff38c3fe13 __CFSocketManager + 641
2   libsystem_pthread.dylib       0x00007fff72d62109 _pthread_start + 148
3   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 15:
0   libsystem_pthread.dylib       0x00007fff72d5db68 start_wqthread + 0

Thread 16:: com.apple.NSEventThread
0   libsystem_kernel.dylib         0x00007fff72c9edfa mach_msg_trap + 10
1   libsystem_kernel.dylib         0x00007fff72c9f170 mach_msg + 60
2   com.apple.CoreFoundation       0x00007fff38c170b5 __CFRunLoopServiceMachPort + 247
3   com.apple.CoreFoundation       0x00007fff38c15b82 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation       0x00007fff38c14ffe CFRunLoopRunSpecific + 462
5   com.apple.AppKit               0x00007fff360355b4 _NSEventThread + 132
6   libsystem_pthread.dylib       0x00007fff72d62109 _pthread_start + 148
7   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 17 Crashed:: Emuthread - Starting
0   libsystem_kernel.dylib         0x00007fff72ca533a __pthread_kill + 10
1   libsystem_pthread.dylib       0x00007fff72d61e60 pthread_kill + 430
2   libsystem_c.dylib             0x00007fff72c2c808 abort + 120
3   libc++abi.dylib               0x00007fff6fe8c458 abort_message + 231
4   libc++abi.dylib               0x00007fff6fe7d8bf demangling_terminate_handler() + 262
5   libobjc.A.dylib               0x00007fff719b85a9 _objc_terminate() + 96
6   libc++abi.dylib               0x00007fff6fe8b887 std::__terminate(void (*)()) + 8
7   libc++abi.dylib               0x00007fff6fe8e1a2 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8   libc++abi.dylib               0x00007fff6fe8e169 __cxa_throw + 113
9   libobjc.A.dylib               0x00007fff719b66ed objc_exception_throw + 350
10  com.apple.CoreFoundation       0x00007fff38d11c97 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
11  com.apple.CoreFoundation       0x00007fff38bf757b ___forwarding___ + 1427
12  com.apple.CoreFoundation       0x00007fff38bf6f58 _CF_forwarding_prep_0 + 120
13  org.dolphin-emu.dolphin       0x0000000107b1ae78 ciface::Quartz::KeyboardAndMouse::KeyboardAndMouse(void*) + 168

Thread 18:: Memcard 0 flushing thread
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18

Thread 19:: DVD thread
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
3   org.dolphin-emu.dolphin       0x000000010783dbab DVDThread::DVDThread() + 139

Thread 20:: libusb thread
0   libsystem_kernel.dylib         0x00007fff72ca53d6 poll + 10
1   org.dolphin-emu.dolphin       0x0000000107d110a5 handle_events + 437

Thread 21:: libusb thread
0   libsystem_kernel.dylib         0x00007fff72ca53d6 poll + 10
1   org.dolphin-emu.dolphin       0x0000000107d110a5 handle_events + 437

Thread 22:
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18

Thread 23:
0   libsystem_kernel.dylib         0x00007fff72ca1882 __psynch_cvwait + 10
1   libsystem_pthread.dylib       0x00007fff72d62425 _pthread_cond_wait + 698
2   libc++.1.dylib                 0x00007fff6fe31592 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 18
3   org.dolphin-emu.dolphin       0x0000000107a06d6d VideoCommon::AsyncShaderCompiler::WorkerThreadRun() + 93
4   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 24:: IOHIDManager Hotplug Thread
0   libsystem_kernel.dylib         0x00007fff72c9edfa mach_msg_trap + 10
1   libsystem_kernel.dylib         0x00007fff72c9f170 mach_msg + 60
2   com.apple.CoreFoundation       0x00007fff38c170b5 __CFRunLoopServiceMachPort + 247
3   com.apple.CoreFoundation       0x00007fff38c15b82 __CFRunLoopRun + 1319
4   com.apple.CoreFoundation       0x00007fff38c14ffe CFRunLoopRunSpecific + 462
5   org.dolphin-emu.dolphin       0x0000000107b17325 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ciface::OSX::Init(void*)::$_1> >(void*) + 165
6   libsystem_pthread.dylib       0x00007fff72d5db8b thread_start + 15

Thread 17 crashed with X86 Thread State (64-bit):
 rax: 0x0000000000000000  rbx: 0x000070000ed80000  rcx: 0x000070000ed7e528  rdx: 0x0000000000000000
 rdi: 0x0000000000011a27  rsi: 0x0000000000000006  rbp: 0x000070000ed7e550  rsp: 0x000070000ed7e528
  r8: 0x000070000ed7e3f0   r9: 0x000070000ed7e5c0  r10: 0x000070000ed80000  r11: 0x0000000000000246
 r12: 0x0000000000011a27  r13: 0x0000003000000008  r14: 0x0000000000000006  r15: 0x0000000000000016
 rip: 0x00007fff72ca533a  rfl: 0x0000000000000246  cr2: 0x000000010933c8f0
 
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133


RE: Dolphin crashing - NSInvalidArgumentException - KHg8m3r - 05-24-2020

Does this crash right when you open Dolphin, or when you launch a game? Is it a specific game, or all games?


RE: Dolphin crashing - NSInvalidArgumentException - Hairball - 05-24-2020

When I launch a game and any game.

If I set the graphics backend to OpenGL it works fine but not with Vulkan.