Dock keeps crashing

Do you often see “specAndNotifyTransitionToSpace was nil” in there?

That might be a clue.

Ah, one more question: does it still crash if you select None for Zoom to overview grid animation in General preferences?

Thanks.

I reproduced the error 5 times. None of their logs included the “specAndNotifyTransitionToSpace was nil” line this time.

Desktop Zoom & None are crashing the Dock too. The lines in Console seem to be the same. But in one case, I get some new lines. (Posting as screenshot below)

Ok thanks. The mystery deepens. I would be particularly interested in the Dock crash you get when the transition setting is set to None.

Just the 1st page of it should be enough.

Thanks

This is the Console with transition set to “None”.

And this is the log file: (beginning part)

Process: Dock [7040]
Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
Identifier: com.apple.dock
Version: 1.8 (1314)
Build Info: Dock-1314000000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [170]
Responsible: Dock [7040]
User ID: 501

Date/Time: 2013-10-10 15:36:39.196 +0200
OS Version: Mac OS X 10.9 (13A598)
Report Version: 11
Anonymous UUID: 191B7A56-C19B-08A2-E7D0-7EE6560E86C5

Sleep/Wake UUID: 174117EB-7501-4163-B8A9-62F99ACEF5C2

Crashed Thread: 3

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

Application Specific Information:
abort() called
terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff89beba1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff89bead18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff9307d315 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff9307c939 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff9307c275 CFRunLoopRunSpecific + 309
5 com.apple.dock 0x000000010d25dd73 0x10d258000 + 23923
6 libdyld.dylib 0x00007fff886245fd start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff89bf0662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8827543d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff88275152 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x00007fff89bef716 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff93583c3b _pthread_cond_wait + 727
2 com.apple.dock 0x000000010d288a9b 0x10d258000 + 199323
3 libsystem_pthread.dylib 0x00007fff93581899 _pthread_body + 138
4 libsystem_pthread.dylib 0x00007fff9358172a _pthread_start + 137
5 libsystem_pthread.dylib 0x00007fff93585fc9 thread_start + 13

Thread 3 Crashed:
0 libsystem_kernel.dylib 0x00007fff89bef866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff9358235c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff88304bba abort + 125
3 libc++abi.dylib 0x00007fff93c94141 abort_message + 257
4 libc++abi.dylib 0x00007fff93cb9aa4 default_terminate_handler() + 240
5 libobjc.A.dylib 0x00007fff9295f322 _objc_terminate() + 124
6 libc++abi.dylib 0x00007fff93cb73e1 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff93cb708b __cxa_rethrow + 109
8 libobjc.A.dylib 0x00007fff9295f049 objc_exception_rethrow + 40
9 com.apple.CoreFoundation 0x00007fff9307c308 CFRunLoopRunSpecific + 456
10 com.apple.Foundation 0x00007fff8a7aa889 -[NSConnection run] + 127
11 com.apple.Foundation 0x00007fff8a73170b NSThread__main + 1318
12 libsystem_pthread.dylib 0x00007fff93581899 _pthread_body + 138
13 libsystem_pthread.dylib 0x00007fff9358172a _pthread_start + 137
14 libsystem_pthread.dylib 0x00007fff93585fc9 thread_start + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff89befe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93582f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff93585fb9 start_wqthread + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff89befe6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff93582f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff93585fb9 start_wqthread + 13

Thread 6:: Dispatch queue: com.apple.root.high-priority
0 libsystem_kernel.dylib 0x00007fff89beba56 semaphore_wait_trap + 10
1 libdispatch.dylib 0x00007fff88277a15 _dispatch_semaphore_wait_slow + 206
2 libxpc.dylib 0x00007fff89bbf733 xpc_connection_send_message_with_reply_sync + 195
3 com.apple.CoreFoundation 0x00007fff9301c588 _CFXNotificationPost + 1144
4 com.apple.Foundation 0x00007fff8a7697b4 -[NSDistributedNotificationCenter postNotificationName:object:userInfo:options:] + 73
5 com.binaryage.FastSwitch2 0x0000000111865497 -[OverviewGrid unshow] + 432
6 com.binaryage.FastSwitch2 0x000000011186305d BaSwizzleReplacement_WVSpaceSwitcher_369 + 110
7 com.apple.dock 0x000000010d478fa1 0x10d258000 + 2232225
8 libdispatch.dylib 0x00007fff882732ad _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff882758a1 _dispatch_source_invoke + 413
10 libdispatch.dylib 0x00007fff88274fa3 _dispatch_root_queue_drain + 75
11 libdispatch.dylib 0x00007fff88276193 _dispatch_worker_thread2 + 40
12 libsystem_pthread.dylib 0x00007fff93582ef8 _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff93585fb9 start_wqthread + 13

Thread 3 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000111a4e000 rcx: 0x0000000111a4d5d8 rdx: 0x0000000000000000
rdi: 0x0000000000011103 rsi: 0x0000000000000006 rbp: 0x0000000111a4d600 rsp: 0x0000000111a4d5d8
r8: 0x00007fff93cbaa87 r9: 0x00007fff8832c900 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x0000000111a4d760 r13: 0x00007fff79b9eeb0 r14: 0x0000000000000006 r15: 0x0000000111a4d640
rip: 0x00007fff89bef866 rfl: 0x0000000000000206 cr2: 0x000000010d4c8000

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

Thanks again. I’m going to make a new version for you, I’ll post again later this afternoon.

Thank you, I’m excited. :slight_smile:

Sorry, this is later than I hoped.

Try this; http://downloads.binaryage.com/TotalSpaces2-0.9.11.zip

Brief explanation: The Dock is crashing on your machine in a certain circumstance (dismissing the grid) when the Dock is trying to communicate with another part of the system during that process.

The part of Dock that is crashing is the part that communicates with TotalSpaces.app. But what’s curious is that I believe the crash is triggered by a different part of the Dock code that is trying to (as I said) do some other inter-process communication.

I don’t have a good theory as to why that would be. What this update does is to wrap the TotalSpaces communication part with some code to catch the exceptions and print them out. If things go as I expect, then the Dock won’t crash.

Doesn’t actually solve the problem though. And furthermore, I don’t know if the grid will be dismissed properly. If it isn’t, try the grid hotkey again, or try putting the machine to sleep briefly with the power button.

Please let me know what happens.

Hey Stephen. That is so strange, TotalSpaces did not crashed my dock since yesterday evening. I am using still the 10th version.I’m switching spaces via GridLook like crazy but can’t reproduce the error.

Ok, that’s really odd… it was so consistent before. Can you think of any other software you might have been running (or anything else that changed)?

Let me know if it happens again.

The logs seemed to indicate a failure in the system libraries that didn’t make a lot of sense - but certainly the crash always came back to the TotalSpaces code, so there must have been some reason for that.

I am working for 5h now and using TotalSpaces frequently. Still no error.
No apps quit. No apps installed. (just deactivated some Safari plugins but don’t think, this has something to do with the errors)

Ok thanks. Let see then - it’s quite unsatisfactory for the issue to remain unsolved, but if it doesn’t come back and nobody else suffers the same then I’ll be happy anyway.

I cannot believe, the error came back again!

OK, I think I know the reason. It is an App called Magic Window. When I quit the app, it’s Helper is still running. Now I quit the Helper too and TotalSpaces seems to work without errors again.

EDIT: no… I take it back… Dock is crashing again.

Can you try 0.9.11 now that it’s crashing again?

Two days without a crash. Today I got the first crash and I installed immediately the 11th version. Unfortunately I have to say that dock crashes again… Below the logs of both crashes with the installation in between.


I restarted the machine two times, no the dock doesn’t crash… I cannot understand this strange, annoying problem.

EDIT: Crashing again and again…

EDIT2: maybe this helps

Process: Dock [257]
Path: /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock
Identifier: com.apple.dock
Version: 1.8 (1314)
Build Info: Dock-1314000000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [214]
Responsible: Dock [257]
User ID: 501

PlugIn Path: /Library/ScriptingAdditions/TotalSpaces.osax/Contents/Resources/TotalSpaces.bundle/Contents/MacOS/FastSwitch2
PlugIn Identifier: com.binaryage.FastSwitch2
PlugIn Version: 0.9.11 (0.9.11)

Date/Time: 2013-10-13 18:03:49.342 +0200
OS Version: Mac OS X 10.9 (13A598)
Report Version: 11
Anonymous UUID: 191B7A56-C19B-08A2-E7D0-7EE6560E86C5

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000001c1d31e8c

VM Regions Near 0x1c1d31e8c:
CG shared images 00000001c0003000-00000001c000b000 [ 32K] r–/r-- SM=SHM
–>
CG shared images 00000001c233e000-00000001c2346000 [ 32K] rw-/rw- SM=SHM

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreGraphics 0x00007fff89947b86 CGSWindowROStateGetRightsSeed + 4
1 com.apple.CoreGraphics 0x00007fff89ce80ef CGSReleaseConnectionWindows + 146
2 com.apple.CoreGraphics 0x00007fff89b13946 CGSReleaseConnection + 99
3 com.apple.dock 0x0000000100e143b1 0x100daa000 + 435121
4 com.binaryage.FastSwitch2 0x000000010547f0f2 -[GridView unshow] + 243
5 com.binaryage.FastSwitch2 0x000000010547f4bd -[GridView unshowAndActivateFrontWindow] + 78
6 com.binaryage.FastSwitch2 0x000000010546b6b0 -[OverviewGrid unshowAndActivateFrontWindow] + 291
7 com.binaryage.FastSwitch2 0x000000010546abcf -[OverviewGrid show:expose:] + 2710
8 com.binaryage.FastSwitch2 0x0000000105462f0f -[FastSwitch(DO) showDesktops:] + 58
9 com.apple.CoreFoundation 0x00007fff94352dec invoking_ + 140
10 com.apple.CoreFoundation 0x00007fff94352c54 -[NSInvocation invoke] + 308
11 com.apple.CoreFoundation 0x00007fff943f57a6 -[NSInvocation invokeWithTarget:] + 54
12 com.apple.CoreFoundation 0x00007fff943c5384 forwarding + 452
13 com.apple.CoreFoundation 0x00007fff943c5138 CF_forwarding_prep_0 + 120
14 com.apple.CoreFoundation 0x00007fff94352dec invoking
+ 140
15 com.apple.CoreFoundation 0x00007fff94352c54 -[NSInvocation invoke] + 308
16 com.apple.Foundation 0x00007fff8bab6c67 -[NSConnection dispatchInvocation:] + 135
17 com.apple.Foundation 0x00007fff8bab692d -[NSConnection handleRequest:sequence:] + 1434
18 com.apple.Foundation 0x00007fff8ba5dcf0 -[NSConnection handlePortCoder:] + 652
19 com.apple.Foundation 0x00007fff8ba5d628 -[NSConnection dispatchWithComponents:] + 50
20 com.apple.Foundation 0x00007fff8ba41ed8 __NSFireMachPort + 257
21 com.apple.CoreFoundation 0x00007fff94398d04 __CFMachPortPerform + 388
22 com.apple.CoreFoundation 0x00007fff94398b69 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41
23 com.apple.CoreFoundation 0x00007fff94398ade __CFRunLoopDoSource1 + 478
24 com.apple.CoreFoundation 0x00007fff94389bd6 __CFRunLoopRun + 1830
25 com.apple.CoreFoundation 0x00007fff94389275 CFRunLoopRunSpecific + 309
26 com.apple.dock 0x0000000100dafd73 0x100daa000 + 23923
27 libdyld.dylib 0x00007fff899315fd start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8aefd662 kevent64 + 10
1 libdispatch.dylib 0x00007fff8958243d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff89582152 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x00007fff8aefce6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9488ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff94892fb9 start_wqthread + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff8aefce6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9488ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff94892fb9 start_wqthread + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff8aefc716 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff94890c3b _pthread_cond_wait + 727
2 com.apple.dock 0x0000000100ddaa9b 0x100daa000 + 199323
3 libsystem_pthread.dylib 0x00007fff9488e899 _pthread_body + 138
4 libsystem_pthread.dylib 0x00007fff9488e72a _pthread_start + 137
5 libsystem_pthread.dylib 0x00007fff94892fc9 thread_start + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff8aef8a1a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8aef7d18 mach_msg + 64
2 com.apple.CoreFoundation 0x00007fff9438a315 __CFRunLoopServiceMachPort + 181
3 com.apple.CoreFoundation 0x00007fff94389939 __CFRunLoopRun + 1161
4 com.apple.CoreFoundation 0x00007fff94389275 CFRunLoopRunSpecific + 309
5 com.apple.Foundation 0x00007fff8ba40a7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 253
6 com.apple.Foundation 0x00007fff8ba8902b -[NSRunLoop(NSRunLoop) runUntilDate:] + 78
7 com.binaryage.FastSwitch2 0x0000000105462376 -[FastSwitch(DO) runConnection] + 221
8 com.apple.Foundation 0x00007fff8ba3e70b NSThread__main + 1318
9 libsystem_pthread.dylib 0x00007fff9488e899 _pthread_body + 138
10 libsystem_pthread.dylib 0x00007fff9488e72a _pthread_start + 137
11 libsystem_pthread.dylib 0x00007fff94892fc9 thread_start + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fff8aefce6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9488ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff94892fb9 start_wqthread + 13

Thread 7:
0 libsystem_kernel.dylib 0x00007fff8aefce6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff9488ff08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff94892fb9 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000001 rdx: 0x00007f8a18d01b68
rdi: 0x00000001c1d31e20 rsi: 0x0023a0000023a000 rbp: 0x00007fff5ee52a80 rsp: 0x00007fff5ee52a80
r8: 0x0000000000000040 r9: 0x00007fff5ee53200 r10: 0x000000000000002c r11: 0x0000000000000206
r12: 0x0000000000000000 r13: 0x000000000000d617 r14: 0x00007f8a1a10af20 r15: 0x00007f8a1a1076f0
rip: 0x00007fff89947b86 rfl: 0x0000000000010206 cr2: 0x00000001c1d31e8c

Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14

Hi there.

I really wish I could reproduce this most alarming issue.

This is a slightly different crash than before, and that is very interesting. I need some time to analyse it. I will get back to you tomorrow.

Morning… You may try this version:

http://downloads.binaryage.com/TotalSpaces2-0.9.12.zip

It has a fix for one issue related to where this crash happened. Maybe it helps…

Can I ask you what kind of mac you have, and whether you are using external display(s)? Thanks.

I had to replace my HD and do a clean reinstall of OS X. After installing the 12th version, the Dock keeps on crashing again.

I am using a 17" MacBook Pro (Early 2009) with no external display at the moment.