Closed atidyshirt closed 3 years ago
Here the crash log:
Process: Dock [822] Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock Identifier: com.apple.dock Version: 1.8 (2044.50.1) Build Info: Dock-2044050001000000~30 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Dock [822] User ID: 501
Date/Time: 2020-12-02 14:59:59.621 +1300 OS Version: Mac OS X 10.15.7 (19H15) Report Version: 12 Bridge OS Version: 3.0 (14Y908) Anonymous UUID: 1337B962-967A-2562-8649-8149533CA174
Time Awake Since Boot: 200 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: dyld3 mode *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString unsignedIntValue]: unrecognized selector sent to instance 0x60000178a780' terminating with uncaught exception of type NSException abort() called
Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff3380cb57 exceptionPreprocess + 250 1 libobjc.A.dylib 0x00007fff6c4bd5bf objc_exception_throw + 48 2 CoreFoundation 0x00007fff3388bbe7 -[NSObject(NSObject) retain_OA] + 0 3 CoreFoundation 0x00007fff337713bb forwarding + 1427 4 CoreFoundation 0x00007fff33770d98 _CF_forwarding_prep_0 + 120 5 Dock 0x000000010224c9e5 Dock + 47589 6 Dock 0x000000010224c554 Dock + 46420 7 Dock 0x000000010224c056 Dock + 45142 8 Dock 0x0000000102249b3d Dock + 35645 9 Dock 0x000000010224859b Dock + 30107 10 Dock 0x00000001023a44fe Dock + 1455358 11 Dock 0x00000001023a505e Dock + 1458270 12 libswiftObjectiveC.dylib 0x00007fff6d319d8e $s10ObjectiveC15autoreleasepool8invokingxxyKXE_tKlF + 46 13 Dock 0x0000000102246917 Dock + 22807 14 libdyld.dylib 0x00007fff6d665cc9 start + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff6d7ad33a pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff6d869e60 pthread_kill + 430 2 libsystem_c.dylib 0x00007fff6d734808 abort + 120 3 libc++abi.dylib 0x00007fff6a993458 abort_message + 231 4 libc++abi.dylib 0x00007fff6a9848bf demangling_terminate_handler() + 262 5 libobjc.A.dylib 0x00007fff6c4bf5a9 _objc_terminate() + 96 6 libc++abi.dylib 0x00007fff6a992887 std::terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007fff6a9951a2 cxxabiv1::failed_throw(cxxabiv1::cxa_exception*) + 27 8 libc++abi.dylib 0x00007fff6a995169 cxa_throw + 113 9 libobjc.A.dylib 0x00007fff6c4bd6ed objc_exceptionthrow + 350 10 com.apple.CoreFoundation 0x00007fff3388bbe7 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 11 com.apple.CoreFoundation 0x00007fff337713bb forwarding_ + 1427 12 com.apple.CoreFoundation 0x00007fff33770d98 _CF_forwarding_prep_0 + 120 13 com.apple.dock 0x000000010224c9e5 0x102241000 + 47589 14 com.apple.dock 0x000000010224c554 0x102241000 + 46420 15 com.apple.dock 0x000000010224c056 0x102241000 + 45142 16 com.apple.dock 0x0000000102249b3d 0x102241000 + 35645 17 com.apple.dock 0x000000010224859b 0x102241000 + 30107 18 com.apple.dock 0x00000001023a44fe 0x102241000 + 1455358 19 com.apple.dock 0x00000001023a505e 0x102241000 + 1458270 20 libswiftObjectiveC.dylib 0x00007fff6d319d8e autoreleasepool(invoking:) + 46 21 com.apple.dock 0x0000000102246917 0x102241000 + 22807 22 libdyld.dylib 0x00007fff6d665cc9 start + 1
Thread 1: 0 libsystem_pthread.dylib 0x00007fff6d865b68 start_wqthread + 0
Thread 2: 0 libsystem_pthread.dylib 0x00007fff6d865b68 start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x00007fff6d865b68 start_wqthread + 0
Thread 4: 0 libsystem_pthread.dylib 0x00007fff6d865b68 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000110b73dc0 rcx: 0x00007ffeed9bc9c8 rdx: 0x0000000000000000 rdi: 0x0000000000000603 rsi: 0x0000000000000006 rbp: 0x00007ffeed9bc9f0 rsp: 0x00007ffeed9bc9c8 r8: 0x00007ffeed9bc890 r9: 0x00007ffeed9bca60 r10: 0x0000000110b73dc0 r11: 0x0000000000000246 r12: 0x0000000000000603 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016 rip: 0x00007fff6d7ad33a rfl: 0x0000000000000246 cr2: 0x0000600002c8c000
Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133
Binary Images:
0x102241000 - 0x102611fff com.apple.dock (1.8 - 2044.50.1) <9BC007E6-5D4C-3A56-84C5-998A2006215A> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
0x110aa9000 - 0x110b3af47 dyld (750.6) <1D318D60-C9B0-3511-BE9C-82AFD2EF930D> /usr/lib/dyld
0x7fff2efac000 - 0x7fff2f1a7ff8 com.apple.avfoundation (2.0 - 1855.3) <0837D912-3783-35D6-A94A-E474E18600CF> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff2f1a8000 - 0x7fff2f274ffe com.apple.audio.AVFAudio (1.0 - 415.75)
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: 109 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=587.6M resident=0K(0%) swapped_out_or_unallocated=587.6M(100%) Writable regions: Total=559.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=559.1M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 256K 1 CoreServices 60K 1 Kernel Alloc Once 8K 1 MALLOC 164.5M 24 MALLOC guard page 16K 4 MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) SQLite page cache 64K 1 STACK GUARD 56.0M 5 Stack 10.0M 5 VM_ALLOCATE 44K 2 DATA 24.9M 317 DATA_CONST 426K 22 FONT_DATA 4K 1 LINKEDIT 389.1M 3 OBJC_RO 32.3M 1 OBJC_RW 1908K 2 TEXT 198.5M 320 UNICODE 564K 1 mapped file 31.8M 5 shared memory 636K 14 =========== ======= ======= TOTAL 1.3G 731 TOTAL, minus reserved VM space 911.1M 731
As far as I can tell this crash is not caused by yabai. If you check the list of binary images you will see that the yabai scripting addition is not loaded at the time of the crash. Also by looking at the stack trace of thread 0 (the crashed thread) it is not running code off the thread that yabai would inject: 0x102241000 - 0x102611fff com.apple.dock (1.8 - 2044.50.1) <9BC007E6-5D4C-3A56-84C5-998A2006215A> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
By looking at the error message I would assume that there is an issue with the objc-runtime or with the Dock binary itself.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString unsignedIntValue]: unrecognized selector sent to instance 0x60000178a780'
terminating with uncaught exception of type NSException
abort() called
I'm not sure what the cause of the error would be, however I believe the following should trigger a relaunch of the Dock. Assuming the error above doesn't just magically disappear, I don't think this is going to help you:
launchctl unload -F /System/Library/LaunchAgents/com.apple.Dock.plist
launchctl load -F /System/Library/LaunchAgents/com.apple.Dock.plist
launchctl start com.apple.Dock.agent
Note that yabai does not modify the binary on disk in any way. If you think yabai is causing a problem, simply run sudo yabai --uninstall-sa
followed by pkill Dock
and it will be back to normal, as if the scripting addition was never installed.
If the Dock fails to restart you can reload the launch service as mentioned in my comment above.
As far as I can tell this crash is not caused by yabai. If you check the list of binary images you will see that the yabai scripting addition is not loaded at the time of the crash. Also by looking at the stack trace of thread 0 (the crashed thread) it is not running code off the thread that yabai would inject:
0x102241000 - 0x102611fff com.apple.dock (1.8 - 2044.50.1) <9BC007E6-5D4C-3A56-84C5-998A2006215A> /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
By looking at the error message I would assume that there is an issue with the objc-runtime or with the Dock binary itself.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString unsignedIntValue]: unrecognized selector sent to instance 0x60000178a780' terminating with uncaught exception of type NSException abort() called
I'm not sure what the cause of the error would be, however I believe the following should trigger a relaunch of the Dock. Assuming the error above doesn't just magically appear, I don't think this is going to help you:
launchctl unload -F /System/Library/LaunchAgents/com.apple.Dock.plist launchctl load -F /System/Library/LaunchAgents/com.apple.Dock.plist launchctl start com.apple.Dock.agent
I have tried to restart the dock using this method, unfortunately to no success; I have opted for another clean install I will try to re-install my configs one last time and see if the issue persists.
It could be a corruption issue however this did occur to me again on a fresh install so I am not sure what to think
Thank you for your time and looking into this, and providing that information, I wonder if something in my dotfiles is causing a conflict but am not really sure how to test this.
I feel a bit silly as I have found the issue, I think that I must have done a small catalina update that made me change the SIP disabling from
csrutil disable
To the partial disable used on big sur. This appears to stop the crash.
I'm not 100% sure on what is going on but I have used yabai for a long while and yesterday the dock application crashed meaning I have no access to spaces, dock, background wallpaper and some other aspects of my computer. I could not find any solution for this, and ended up reinstalling MacOS Catalina, I then installed my dotfiles and started the scripting addition. After starting the script addition and disabling SIP I found myself back in the same situation.
I cannot restart the dock using
The only feedback I get back is 'no matching processes found
Running Catalina 10.15 on Mac 2016