iOS11 - com.apple.spotlight.CoreSpotlight.throttle

Hi,


Does anyone have any clue as to what causes this?


Crashed: com.apple.spotlight.CoreSpotlight.throttle
0  MobileSpotlightIndex           0x18cd32228 MDPlistBufferConsume + 452
1  MobileSpotlightIndex           0x18cd33838 _addGenericData + 268
2  CoreSpotlight                  0x18cd75098 -[CSCoder encodeObject:] + 120
3  CoreSpotlight                  0x18cd76004 -[NSDictionary(CSCoderAdditions) encodeKeysAndValuesWithCSCoder:filterBlock:] + 1012
4  CoreSpotlight                  0x18cd71f9c -[CSSearchableItemAttributeSet(CSCoderAdditions) encodeWithCSCoder:includeText:] + 548
5  CoreSpotlight                  0x18cd7507c -[CSCoder encodeObject:] + 92
6  CoreSpotlight                  0x18cd7e3f0 __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296
7  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
8  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
10 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
11 libdispatch.dylib              0x185e7b080 _dispatch_queue_serial_drain$VARIANT$armv81 + 200
12 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
13 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
14 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
15 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
16 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4

Does anyone have any clue as to what causes this?

Please post the full crash log.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
# Application: MyApp
# Version: 4.5.0 (9129)
# Bundle Identifier: uk.co.dorada.MyApp7
# Issue #: 87
# Issue ID: 59aa0093be077a4dccfab274
# Session ID: fa8aa42102f24066b540db95b978daec_586745b7b35311e7b4d456847afe9799_0_v2
# Date: 2017-10-17T15:53:00Z
# OS Version: 11.0.3 (15A432)
# Device: iPhone 8 Plus
# RAM Free: 5.6%
# Disk Free: 30.6%


#1. Crashed: com.apple.spotlight.CoreSpotlight.throttle
0  MobileSpotlightIndex           0x18cd32228 MDPlistBufferConsume + 452
1  MobileSpotlightIndex           0x18cd33838 _addGenericData + 268
2  CoreSpotlight                  0x18cd75098 -[CSCoder encodeObject:] + 120
3  CoreSpotlight                  0x18cd76004 -[NSDictionary(CSCoderAdditions) encodeKeysAndValuesWithCSCoder:filterBlock:] + 1012
4  CoreSpotlight                  0x18cd71f9c -[CSSearchableItemAttributeSet(CSCoderAdditions) encodeWithCSCoder:includeText:] + 548
5  CoreSpotlight                  0x18cd7507c -[CSCoder encodeObject:] + 92
6  CoreSpotlight                  0x18cd7e3f0 __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296
7  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
8  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
10 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
11 libdispatch.dylib              0x185e7b080 _dispatch_queue_serial_drain$VARIANT$armv81 + 200
12 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
13 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
14 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
15 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
16 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


--


#0. SQLQueue 0x10bd19820 for MyAppCoreData.sqllite
0  libsystem_kernel.dylib         0x185fb1fb4 pread + 8
1  libsqlite3.dylib               0x18695a9b0 (null) + 5436
2  libsqlite3.dylib               0x1868bc364 (null) + 12728
3  libsqlite3.dylib               0x1868dc3e0 (null) + 3516
4  libsqlite3.dylib               0x1869629dc (null) + 38248
5  libsqlite3.dylib               0x18696ab14 (null) + 71328
6  libsqlite3.dylib               0x18690dda8 (null) + 15608
7  libsqlite3.dylib               0x18696a508 (null) + 69780
8  libsqlite3.dylib               0x1868fae94 (null) + 33196
9  libsqlite3.dylib               0x1868f3b7c sqlite3_step + 3732
10 CoreData                       0x188c350a0 _execute + 156
11 CoreData                       0x188c42ac4 -[NSSQLiteConnection fetchResultSet:usingFetchPlan:] + 1768
12 CoreData                       0x188d9953c newFetchedRowsForFetchPlan_MT + 1196
13 CoreData                       0x188e4530c _executeFetchRequest + 68
14 CoreData                       0x188e3fc44 -[NSSQLFetchRequestContext executeRequestCore:] + 36
15 CoreData                       0x188ca878c -[NSSQLStoreRequestContext executeRequestUsingConnection:] + 248
16 CoreData                       0x188d2ab1c __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke + 76
17 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
18 libdispatch.dylib              0x185e79ea8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
19 CoreData                       0x188d2aa74 -[NSSQLDefaultConnectionManager handleStoreRequest:] + 204
20 CoreData                       0x188e18c18 -[NSSQLCoreDispatchManager routeStoreRequest:] + 264
21 CoreData                       0x188d5c560 -[NSSQLCore dispatchRequest:withRetries:] + 236
22 CoreData                       0x188d58910 -[NSSQLCore processFetchRequest:inContext:] + 108
23 CoreData                       0x188c3aff8 -[NSSQLCore executeRequest:withContext:error:] + 496
24 CoreData                       0x188d37ac8 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke + 2008
25 CoreData                       0x188d302f4 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 268
26 CoreData                       0x188c3aac4 -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 416
27 CoreData                       0x188c395a0 -[NSManagedObjectContext executeFetchRequest:error:] + 580
28 CoreData                       0x188d02c14 -[NSManagedObjectContext(_NestedContextSupport) _parentObjectsForFetchRequest:inContext:error:] + 464
29 CoreData                       0x188d033f0 __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 580
30 CoreData                       0x188d05644 internalBlockToNSManagedObjectContextPerform + 92
31 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
32 libdispatch.dylib              0x185e7f480 _dispatch_sync_thread_bound_invoke + 68
33 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
34 libdispatch.dylib              0x185e7ddfc _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 968
35 CoreFoundation                 0x18645ff20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
36 CoreFoundation                 0x18645dafc __CFRunLoopRun + 2012
37 CoreFoundation                 0x18637e2d8 CFRunLoopRunSpecific + 436
38 GraphicsServices               0x18820ff84 GSEventRunModal + 100
39 UIKit                          0x18f92b880 UIApplicationMain + 208
40 MyApp7                      0x1021c8050 main (main.m:34)
41 libdyld.dylib                  0x185ea256c start + 4


#1. Crashed: com.apple.spotlight.CoreSpotlight.throttle
0  MobileSpotlightIndex           0x18cd32228 MDPlistBufferConsume + 452
1  MobileSpotlightIndex           0x18cd33838 _addGenericData + 268
2  CoreSpotlight                  0x18cd75098 -[CSCoder encodeObject:] + 120
3  CoreSpotlight                  0x18cd76004 -[NSDictionary(CSCoderAdditions) encodeKeysAndValuesWithCSCoder:filterBlock:] + 1012
4  CoreSpotlight                  0x18cd71f9c -[CSSearchableItemAttributeSet(CSCoderAdditions) encodeWithCSCoder:includeText:] + 548
5  CoreSpotlight                  0x18cd7507c -[CSCoder encodeObject:] + 92
6  CoreSpotlight                  0x18cd7e3f0 __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296
7  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
8  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
10 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
11 libdispatch.dylib              0x185e7b080 _dispatch_queue_serial_drain$VARIANT$armv81 + 200
12 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
13 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
14 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
15 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
16 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#2. NSManagedObjectContext 0x1d41cc8a0
0  libsystem_kernel.dylib         0x185fd1c1c __ulock_wait + 8
1  libdispatch.dylib              0x185e6e210 _dispatch_ulock_wait + 48
2  libdispatch.dylib              0x185e6e368 _dispatch_thread_event_wait_slow$VARIANT$armv81 + 36
3  libdispatch.dylib              0x185e7f228 _dispatch_sync_wait + 448
4  CoreData                       0x188cf1d10 _perform + 232
5  CoreData                       0x188d030e4 -[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:] + 172
6  CoreData                       0x188c395a0 -[NSManagedObjectContext executeFetchRequest:error:] + 580
7  MyApp7                      0x102284908 -[MyAppCore unlistenedOrKeptEntriesForFeed:withMOC:onlyDownloaded:] + 4377889032
8  MyApp7                      0x1022784c0 __50-[MyAppCore setUnreadCountsForCategoriesOrNil:]_block_invoke.742 + 4377838784
9  MyApp7                      0x1022b8398 __47-[RRBackgroundCoreData addBackgroundOperation:]_block_invoke + 4378100632
10 CoreData                       0x188cf6ea4 developerSubmittedBlockToNSManagedObjectContextPerform + 156
11 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
12 libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
13 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
14 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
15 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
16 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
17 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#3. com.apple.NSURLSession-work
0  libsystem_kernel.dylib         0x185fb0c00 semaphore_wait_trap + 8
1  libdispatch.dylib              0x185e6e024 _dispatch_sema4_wait$VARIANT$armv81 + 24
2  libdispatch.dylib              0x185e6e9c0 _dispatch_semaphore_wait_slow + 124
3  CFNetwork                      0x186aed4d0 -[__NSURLBackgroundSession setupBackgroundSession] + 768
4  CFNetwork                      0x186aeca28 __73-[__NSURLBackgroundSession initWithConfiguration:delegate:delegateQueue:]_block_invoke + 92
5  libsystem_notify.dylib         0x1860d6e10 ___notify_dispatch_local_notification_block_invoke + 44
6  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
7  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
8  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
9  libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
10 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
11 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
12 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
13 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#4. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#5. com.apple.cloudkit.behavioroptions
0  libsystem_kernel.dylib         0x185fb0c00 semaphore_wait_trap + 8
1  libdispatch.dylib              0x185e6e024 _dispatch_sema4_wait$VARIANT$armv81 + 24
2  libdispatch.dylib              0x185e6e9c0 _dispatch_semaphore_wait_slow + 124
3  CloudKit                       0x190ab7d6c -[CKBehaviorOptions _behaviorOptionForKey:] + 288
4  CloudKit                       0x190ab8974 __57-[CKBehaviorOptions _getDoubleOptionForKey:defaultValue:]_block_invoke + 156
5  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
6  libdispatch.dylib              0x185e79ea8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7  CloudKit                       0x190ab8820 -[CKBehaviorOptions _getDoubleOptionForKey:defaultValue:] + 208
8  CloudKit                       0x190ac0a94 -[CKOperation _installTimeoutSource] + 292
9  CloudKit                       0x190ac1864 -[CKOperation _setIsExecuting:] + 84
10 CloudKit                       0x190ac18f0 -[CKOperation setIsExecuting:] + 68
11 CloudKit                       0x190abdb1c __21-[CKOperation _start]_block_invoke + 752
12 libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
13 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
14 libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
15 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
16 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
17 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
18 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
19 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#6. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x185fb0bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185fb0a3c mach_msg + 72
2  CoreFoundation                 0x18645fce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x18645d8b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x18637e2d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x186da66e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x186dc5afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7  UIKit                          0x19047702c -[UIEventFetcher threadMain] + 136
8  Foundation                     0x186ea7860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
10 libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#7. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e2fb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#8. com.twitter.crashlytics.ios.MachExceptionServer
0  MyApp7                      0x1021e1680 CLSProcessRecordAllThreads + 4377220736
1  MyApp7                      0x1021e1680 CLSProcessRecordAllThreads + 4377220736
2  MyApp7                      0x1021e153c CLSProcessRecordAllThreads + 4377220412
3  MyApp7                      0x1021d16a0 CLSHandler + 4377155232
4  MyApp7                      0x1021cc644 CLSMachExceptionServer + 4377134660
5  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
6  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
7  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#9. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x185fb0bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185fb0a3c mach_msg + 72
2  CoreFoundation                 0x18645fce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x18645d8b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x18637e2d8 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x186ae7b40 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6  Foundation                     0x186ea7860 __NSThread__start__ + 996
7  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
8  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#10. AVAudioSession Notify Thread
0  libsystem_kernel.dylib         0x185fb0bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185fb0a3c mach_msg + 72
2  CoreFoundation                 0x18645fce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x18645d8b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x18637e2d8 CFRunLoopRunSpecific + 436
5  AVFAudio                       0x18bc47774 GenericRunLoopThread::Entry(void*) + 164
6  AVFAudio                       0x18bc72018 CAPThread::Entry(CAPThread*) + 84
7  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
8  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#11. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#12. Thread
0  libsystem_kernel.dylib         0x185fb0c18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x185e6e120 _dispatch_sema4_timedwait$VARIANT$armv81 + 84
2  libdispatch.dylib              0x185e6e98c _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x185e7f884 _dispatch_worker_thread + 248
4  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
5  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
6  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#13. Thread
0  libsystem_kernel.dylib         0x185fb0c18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x185e6e120 _dispatch_sema4_timedwait$VARIANT$armv81 + 84
2  libdispatch.dylib              0x185e6e98c _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x185e7f884 _dispatch_worker_thread + 248
4  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
5  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
6  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#14. com.apple.cloudkit.operation-2E91F22686DA1E0A.callback
0  libsystem_kernel.dylib         0x185fd2800 kevent_id + 8
1  libdispatch.dylib              0x185e86f5c _dispatch_kq_poll + 204
2  libdispatch.dylib              0x185e87924 _dispatch_event_loop_wait_for_ownership$VARIANT$armv81 + 432
3  libdispatch.dylib              0x185e7f20c _dispatch_sync_wait + 420
4  CloudKit                       0x190ab8820 -[CKBehaviorOptions _getDoubleOptionForKey:defaultValue:] + 208
5  CloudKit                       0x190ac0a94 -[CKOperation _installTimeoutSource] + 292
6  CloudKit                       0x190ac1864 -[CKOperation _setIsExecuting:] + 84
7  CloudKit                       0x190ac18f0 -[CKOperation setIsExecuting:] + 68
8  CloudKit                       0x190abdb1c __21-[CKOperation _start]_block_invoke + 752
9  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
10 libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
11 libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
12 libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
13 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
14 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
15 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
16 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#15. com.apple.coreaudio.AQClient
0  libsystem_kernel.dylib         0x185fb0bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185fb0a3c mach_msg + 72
2  CoreFoundation                 0x18645fce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x18645d8b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x18637e2d8 CFRunLoopRunSpecific + 436
5  AudioToolbox                   0x18a03a99c GenericRunLoopThread::Entry(void*) + 164
6  AudioToolbox                   0x18a272630 CAPThread::Entry(CAPThread*) + 84
7  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
8  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#16. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#17. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#18. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#19. com.apple.NSURLSession-work
0  libsystem_kernel.dylib         0x185fb0c00 semaphore_wait_trap + 8
1  libdispatch.dylib              0x185e6e024 _dispatch_sema4_wait$VARIANT$armv81 + 24
2  libdispatch.dylib              0x185e6e9c0 _dispatch_semaphore_wait_slow + 124
3  CFNetwork                      0x186aed4d0 -[__NSURLBackgroundSession setupBackgroundSession] + 768
4  CFNetwork                      0x186aeca28 __73-[__NSURLBackgroundSession initWithConfiguration:delegate:delegateQueue:]_block_invoke + 92
5  libsystem_notify.dylib         0x1860d6e10 ___notify_dispatch_local_notification_block_invoke + 44
6  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
7  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
8  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
9  libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
10 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
11 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
12 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
13 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#20. com.apple.NSURLSession-work
0  libsystem_kernel.dylib         0x185fb0c00 semaphore_wait_trap + 8
1  libdispatch.dylib              0x185e6e024 _dispatch_sema4_wait$VARIANT$armv81 + 24
2  libdispatch.dylib              0x185e6e9c0 _dispatch_semaphore_wait_slow + 124
3  CFNetwork                      0x186aed4d0 -[__NSURLBackgroundSession setupBackgroundSession] + 768
4  CFNetwork                      0x186aeca28 __73-[__NSURLBackgroundSession initWithConfiguration:delegate:delegateQueue:]_block_invoke + 92
5  libsystem_notify.dylib         0x1860d6e10 ___notify_dispatch_local_notification_block_invoke + 44
6  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
7  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
8  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
9  libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
10 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
11 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
12 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
13 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#21. com.apple.NSURLSession-work
0  libsystem_kernel.dylib         0x185fb0c00 semaphore_wait_trap + 8
1  libdispatch.dylib              0x185e6e024 _dispatch_sema4_wait$VARIANT$armv81 + 24
2  libdispatch.dylib              0x185e6e9c0 _dispatch_semaphore_wait_slow + 124
3  CFNetwork                      0x186aed4d0 -[__NSURLBackgroundSession setupBackgroundSession] + 768
4  CFNetwork                      0x186aeca28 __73-[__NSURLBackgroundSession initWithConfiguration:delegate:delegateQueue:]_block_invoke + 92
5  libsystem_notify.dylib         0x1860d6e10 ___notify_dispatch_local_notification_block_invoke + 44
6  libdispatch.dylib              0x185e3d088 _dispatch_call_block_and_release + 24
7  libdispatch.dylib              0x185e3d048 _dispatch_client_callout + 16
8  libdispatch.dylib              0x185e7b1c0 _dispatch_queue_serial_drain$VARIANT$armv81 + 520
9  libdispatch.dylib              0x185e7bb30 _dispatch_queue_invoke$VARIANT$armv81 + 340
10 libdispatch.dylib              0x185e7c528 _dispatch_root_queue_drain_deferred_wlh$VARIANT$armv81 + 380
11 libdispatch.dylib              0x185e845c4 _dispatch_workloop_worker_thread$VARIANT$armv81 + 640
12 libsystem_pthread.dylib        0x1860e2fe0 _pthread_wqthread + 932
13 libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#22. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e2fb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#23. Thread
0  libsystem_pthread.dylib        0x1860e2c2c start_wqthread + 122


#24. Thread
0  libsystem_kernel.dylib         0x185fd1dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1860e3144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1860e2c30 start_wqthread + 4


#25. Thread
0  libsystem_pthread.dylib        0x1860e2c2c start_wqthread + 122


#26. Thread
0  libsystem_kernel.dylib         0x185fb0c18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x185e6e120 _dispatch_sema4_timedwait$VARIANT$armv81 + 84
2  libdispatch.dylib              0x185e6e98c _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x185e7f884 _dispatch_worker_thread + 248
4  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
5  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
6  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#27. AURemoteIO::IOThread
0  libsystem_kernel.dylib         0x185fb0bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185fb0a3c mach_msg + 72
2  AudioToolbox                   0x189eed4a8 AURemoteIO::IOThread::Run() + 264
3  AudioToolbox                   0x189ef1a40 AURemoteIO::IOThread::Entry(void*) + 160
4  AudioToolbox                   0x18a272630 CAPThread::Entry(CAPThread*) + 84
5  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
6  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
7  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4


#28. Thread
0  libsystem_kernel.dylib         0x185fb0d14 mach_wait_until + 8
1  MyApp7                      0x1022e8108 -[DRAUAudioUnitPlayer fillBuffer] + 4378296584
2  Foundation                     0x186ea7860 __NSThread__start__ + 996
3  libsystem_pthread.dylib        0x1860e432c _pthread_body + 308
4  libsystem_pthread.dylib        0x1860e41f8 _pthread_body + 310
5  libsystem_pthread.dylib        0x1860e2c38 thread_start + 4

Thanks for that. Alas, this is not a standard Apple crash report and that puts limits on how much I can learn from it. Please try to find (or generate) an Apple crash report for the problem.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

i got same problem


Incident Identifier: CD53A812-0EEB-4CBC-8A2B-E663F0E57159
CrashReporter Key:   20e968628864764e1d84e738595890ba6e1a049b
Hardware Model:      iPhone9,4
Process:             Myapp [6764]
Path:                /private/var/containers/Bundle/Application/7F56965A-3FE0-4169-B072-7378D0987CD9/Myapp.app/Myapp
Identifier:          tw.com.myapp
Version:             2017122103 (2.3.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           tw.com.myapp [1556]


Date/Time:           2017-12-25 13:31:08.9484 +0800
Launch Time:         2017-12-25 13:24:43.8827 +0800
OS Version:          iPhone OS 11.0 (15A372)
Baseband Version:    2.00.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000bad
VM Region Info: 0xbad is not in any region.  Bytes before following region: 4332581971
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->
      __TEXT                 00000001023e0000-00000001023e4000 [   16K] r-x/r-x SM=COW  ...e.app/Myapp]

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread:  14

Thread 0 name:
Thread 0:
0   libsystem_kernel.dylib            0x0000000180f52800 kevent_id + 8
1   libdispatch.dylib                 0x0000000180dd88f8 _dispatch_kq_poll + 204 (event_kevent.c:642)
2   libdispatch.dylib                 0x0000000180dd92c0 _dispatch_event_loop_wait_for_ownership$VARIANT$mp + 432 (event_kevent.c:2007)
3   libdispatch.dylib                 0x0000000180dcb018 _dispatch_sync_wait + 416 (queue.c:4197)
4   Myapp                            0x0000000102831650 GADActiveViewDictionaryForBounds + 7816
5   Myapp                            0x0000000102831410 GADActiveViewDictionaryForBounds + 7240
6   Myapp                            0x00000001028311c8 GADActiveViewDictionaryForBounds + 6656
7   libdispatch.dylib                 0x0000000180dbd088 _dispatch_call_block_and_release + 24 (init.c:994)
8   libdispatch.dylib                 0x0000000180dbd048 _dispatch_client_callout + 16 (object.m:502)
9   libdispatch.dylib                 0x0000000180dc9b74 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1016 (inline_internal.h:2500)
10  CoreFoundation                    0x00000001813dff20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1815)
11  CoreFoundation                    0x00000001813ddafc __CFRunLoopRun + 2012 (CFRunLoop.c:3111)
12  CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
13  GraphicsServices                  0x000000018318ff84 GSEventRunModal + 100 (GSEvent.c:2245)
14  UIKit                             0x000000018a8aa880 UIApplicationMain + 208 (UIApplication.m:3948)
15  Myapp                            0x00000001023e810c main + 56 (AppDelegate.swift:22)
16  libdyld.dylib                     0x0000000180e2256c start + 4

Thread 1:
0   libsystem_kernel.dylib            0x0000000180f51150 __psynch_cvwait + 8
1   libsystem_pthread.dylib           0x0000000181066d40 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2   libc++.1.dylib                    0x00000001808cfea4 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:278)
3   JavaScriptCore                    0x000000018867cb30 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 96 (condition_variable:202)
4   JavaScriptCore                    0x000000018867ca58 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 172 (condition_variable:211)
5   JavaScriptCore                    0x000000018867cdbc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44 (type_traits:4291)
6   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
7   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
8   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 2 name:
Thread 2:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   WebCore                           0x000000018914dac4 RunWebThread(void*) + 456 (WebCoreThread.mm:694)
6   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
7   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
8   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   Foundation                        0x0000000181d266e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6   Foundation                        0x0000000181d45afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7   UIKit                             0x000000018b3f602c -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:422)
8   Foundation                        0x0000000181e27860 __NSThread__start__ + 996 (NSThread.m:1181)
9   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
10  libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
11  libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   Myapp                            0x000000010264c6dc CLSMachExceptionServer + 232
3   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
4   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
5   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   CFNetwork                         0x0000000181a67b40 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:367)
6   Foundation                        0x0000000181e27860 __NSThread__start__ + 996 (NSThread.m:1181)
7   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
8   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
9   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib            0x0000000180f51150 __psynch_cvwait + 8
1   libsystem_pthread.dylib           0x0000000181066d40 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2   Myapp                            0x00000001025bf678 ComScore::WaitableEvent::wait(int) const + 216
3   Myapp                            0x00000001025dab0c ComScore::TasksThread::waitUntilNextTaskReady() const + 116
4   Myapp                            0x00000001025da994 ComScore::TasksThread::run() + 120
5   Myapp                            0x00000001025bfb34 ComScore::Thread::threadEntryPoint() + 104
6   Myapp                            0x00000001025c1080 threadEntryProc + 32
7   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
8   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
9   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   Foundation                        0x0000000181d266e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6   Foundation                        0x0000000181d7862c -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)
7   Myapp                            0x000000010258f5ec +[GAI threadMain:] + 64
8   Foundation                        0x0000000181e27860 __NSThread__start__ + 996 (NSThread.m:1181)
9   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
10  libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
11  libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 8 name:
Thread 8:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   CoreFoundation                    0x000000018134d12c CFRunLoopRun + 116 (CFRunLoop.c:3269)
6   CoreMotion                        0x00000001866e2088 CLMotionCore::runMotionThread(void*) + 952 (CLMotionCore.mm:316)
7   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
8   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
9   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib            0x0000000180f30bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib            0x0000000180f30a3c mach_msg + 72 (mach_msg.c:103)
2   CoreFoundation                    0x00000001813dfce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3   CoreFoundation                    0x00000001813dd8b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4   CoreFoundation                    0x00000001812fe2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5   AVFAudio                          0x0000000186bc7774 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:92)
6   AVFAudio                          0x0000000186bf2018 CAPThread::Entry(CAPThread*) + 84
7   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
8   libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
9   libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib            0x0000000180f51150 __psynch_cvwait + 8
1   libsystem_pthread.dylib           0x0000000181066d40 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2   JavaScriptCore                    0x0000000187d448d8 ***::ThreadCondition::timedWait(***::Mutex&, double) + 80 (ThreadingPthreads.cpp:521)
3   JavaScriptCore                    0x0000000188662834 ***::ParkingLot::parkConditionallyImpl(void const*, ***::ScopedLambda<bool ()> const&, ***::ScopedLambda<void ()> const&, ***::TimeWithDynamicClockType const&) + 2208 (ParkingLot.cpp:597)
4   WebKitLegacy                      0x000000018a5405f8 bool ***::ConditionBase::waitUntil<***::Lock>(***::Lock&, ***::TimeWithDynamicClockType const&) + 172 (ParkingLot.h:80)
5   WebKitLegacy                      0x000000018a543268 std::__1::unique_ptr<***::Function<void ()>, std::__1::default_delete<***::Function<void ()> > > ***::MessageQueue<***::Function<void ()> >::waitForMessageFilteredWithTimeout<***::MessageQueue<***::Function<void ()> >::waitForMessage()::'lambda'(***::Function<void ()> const&)>(***::MessageQueueWaitResult&, ***::MessageQueue<***::Function<void ()> >::waitForMessage()::'lambda'(***::Function<void ()> const&)&&, ***::WallTime) + 148 (MessageQueue.h:153)
6   WebKitLegacy                      0x000000018a542994 WebCore::StorageThread::threadEntryPoint() + 68 (MessageQueue.h:132)
7   JavaScriptCore                    0x0000000187d40ed0 ***::threadEntryPoint(void*) + 120 (Function.h:56)
8   JavaScriptCore                    0x0000000187d40e10 ***::wtfThreadEntryPoint(void*) + 84 (ThreadingPthreads.cpp:209)
9   libsystem_pthread.dylib           0x000000018106432c _pthread_body + 308 (pthread.c:740)
10  libsystem_pthread.dylib           0x00000001810641f8 _pthread_start + 312 (pthread.c:799)
11  libsystem_pthread.dylib           0x0000000181062c38 thread_start + 4

Thread 11 name:
Thread 11:
0   libz.1.dylib                      0x00000001812e7a24 deflate_fast + 228 (deflate.c:1867)
1   libz.1.dylib                      0x00000001812e7a00 deflate_fast + 192 (deflate.c:1861)
2   libz.1.dylib                      0x00000001812e6d70 deflate + 3320 (deflate.c:1003)
3   ImageIO                           0x00000001834631f4 png_compress_IDAT + 364 (pngwutil.c:1011)
4   ImageIO                           0x0000000183465584 png_write_find_filter + 420 (pngwutil.c:3020)
5   ImageIO                           0x00000001834042e0 _cg_png_write_row + 764 (pngwrite.c:897)
6   ImageIO                           0x00000001833633b8 PNGWritePlugin::writePNG(IIOImagePixelDataProvider*, IIODictionary*) + 768 (imagePNG.cpp:4220)
7   ImageIO                           0x0000000183364dcc PNGWritePlugin::writeAll() + 856 (imagePNG.cpp:5372)
8   ImageIO                           0x0000000183364f78 PNGWritePlugin::WriteProc(void*, void*, void*, void*) + 104 (imagePNG.cpp:5438)
9   ImageIO                           0x000000018346f0b8 IIOImageDestination::finalize() + 1576 (CGImageDestination.cpp:2280)
10  UIKit                             0x000000018aa36fec UIImagePNGRepresentation + 508 (UIImage.m:4493)
11  Myapp                            0x000000010244122c specialized FBESpolightManager.setupSearchableContent(domainIdentifier:) + 1548 (FBESpolightManager.swift:46)
12  Myapp                            0x00000001024adb80 specialized closure #1 in SearchDetailViewController.sendSpotlightWithQuery(title:identifierString:) + 388 (SearchDetailViewController.swift:0)
13  Myapp                            0x00000001024acfac partial apply for closure #1 in SearchDetailViewController.sendSpotlightWithQuery(title:identifierString:) + 56 (SearchDetailViewController.swift:0)
14  Myapp                            0x00000001023fc9dc thunk for @callee_owned () -> () + 36 (SearchViewController.swift:0)
15  libdispatch.dylib                 0x0000000180dbd088 _dispatch_call_block_and_release + 24 (init.c:994)
16  libdispatch.dylib                 0x0000000180dbd048 _dispatch_client_callout + 16 (object.m:502)
17  libdispatch.dylib                 0x0000000180dc6e48 _dispatch_queue_serial_drain$VARIANT$mp + 528 (inline_internal.h:2500)
18  libdispatch.dylib                 0x0000000180dc77d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
19  libdispatch.dylib                 0x0000000180dc8200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400 (queue.c:5920)
20  libdispatch.dylib                 0x0000000180dd04a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644 (source.c:2515)
21  libsystem_pthread.dylib           0x0000000181062fe0 _pthread_wqthread + 932 (pthread.c:2207)
22  libsystem_pthread.dylib           0x0000000181062c30 start_wqthread + 4

Thread 12:
0   libsystem_pthread.dylib           0x0000000181062c2c start_wqthread + 0

Thread 13:
0   libsystem_pthread.dylib           0x0000000181062c2c start_wqthread + 0

Thread 14 name:
Thread 14 Crashed:
0   MobileSpotlightIndex              0x0000000187cb2228 MDPlistBufferConsume + 452 (MDPlistContainer.c:370)
1   MobileSpotlightIndex              0x0000000187cb221c MDPlistBufferConsume + 440 (MDPlistContainer.c:370)
2   MobileSpotlightIndex              0x0000000187cb3838 _addGenericData + 268 (MDPlistContainer.c:1486)
3   CoreSpotlight                     0x0000000187cf5098 -[CSCoder encodeObject:] + 120 (CSCoder.m:408)
4   CoreSpotlight                     0x0000000187cf6004 -[NSDictionary(CSCoderAdditions) encodeKeysAndValuesWithCSCoder:filterBlock:] + 1012 (CSCoder.m:615)
5   CoreSpotlight                     0x0000000187cf1f9c -[CSSearchableItemAttributeSet(CSCoderAdditions) encodeWithCSCoder:includeText:] + 548 (CSSearchableItemAttributeSet.m:3614)
6   CoreSpotlight                     0x0000000187cf507c -[CSCoder encodeObject:] + 92 (CSCoder.m:406)
7   CoreSpotlight                     0x0000000187cfe3f0 __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296 (CSSearchableIndex.m:796)
8   libdispatch.dylib                 0x0000000180dbd088 _dispatch_call_block_and_release + 24 (init.c:994)
9   libdispatch.dylib                 0x0000000180dbd048 _dispatch_client_callout + 16 (object.m:502)
10  libdispatch.dylib                 0x0000000180dc6e48 _dispatch_queue_serial_drain$VARIANT$mp + 528 (inline_internal.h:2500)
11  libdispatch.dylib                 0x0000000180dc77d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
12  libdispatch.dylib                 0x0000000180dc6d00 _dispatch_queue_serial_drain$VARIANT$mp + 200 (inline_internal.h:2539)
13  libdispatch.dylib                 0x0000000180dc77d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
14  libdispatch.dylib                 0x0000000180dc8200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400 (queue.c:5920)
15  libdispatch.dylib                 0x0000000180dd04a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644 (source.c:2515)
16  libsystem_pthread.dylib           0x0000000181062fe0 _pthread_wqthread + 932 (pthread.c:2207)
17  libsystem_pthread.dylib           0x0000000181062c30 start_wqthread + 4

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

Thread 14 crashed with ARM Thread State (64-bit):
    x0: 0x0000000103f4c380   x1: 0x00000001c16ef680   x2: 0x0000000000000008   x3: 0x0000000180f98320
    x4: 0x0000000100000030   x5: 0x000000000000ffff   x6: 0x0000000004210103   x7: 0x0000000000000403
    x8: 0x0000000000000bad   x9: 0x00000000deadbeef  x10: 0x0000000000000007  x11: 0xbaddc0dedeadbead
   x12: 0x00000001c46e4a80  x13: 0x00000001b1ccb250  x14: 0x00000010cb0edcc6  x15: 0x0000000000000000
   x16: 0x000000018105e8e0  x17: 0x0000000180deaebc  x18: 0x0000000000000000  x19: 0x00000001c16ef680
   x20: 0x00000001c03266a0  x21: 0x0000000000006d58  x22: 0x0000000000000000  x23: 0x0000000010000000
   x24: 0x0000000008000000  x25: 0x00000001b1ccffac  x26: 0x0000000007ffde2d  x27: 0x00000001c2437900
   x28: 0x000000018b5b37ac   fp: 0x000000016e5de0a0   lr: 0x0000000187cb221c
    sp: 0x000000016e5de030   pc: 0x0000000187cb2228 cpsr: 0x60000000

i got same problem

Cool (well, not cool that you have the problem, but cool that you were able to get a proper crash report for it).

Alas, I wasn’t able to make any progress with that log. I’m not entirely sure why but I think it might have something to do with the edits you made to anonymise it. Any chance you can email me the original log? My email address is in my signature.

If you do email me, please reference this thread so that I have some context.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

alex246 sent me some crash reports via email and that allowed me to better understand what’s going on here. It seems very likely that the immediate cause of this problem is that your app has run out of memory (specifically, usable address space). I’ll explain how I worked that out below, referencing the crash report that alex246 posted above [1].

First up, consider the backtrace of the crashing thread:

0 … MDPlistBufferConsume + 452 (MDPlistContainer.c:370)  
1 … MDPlistBufferConsume + 440 (MDPlistContainer.c:370)  
2 … _addGenericData + 268 (MDPlistContainer.c:1486)  
3 … -[CSCoder encodeObject:] + 120 (CSCoder.m:408)  
4 … -[NSDictionary(CSCoderAdditions) encodeKeysAndValuesWithCSCoder:filterBlock:] + 1012 (CSCoder.m:615)  
5 … -[CSSearchableItemAttributeSet(CSCoderAdditions) encodeWithCSCoder:includeText:] + 548 (CSSearchableItemAttributeSet.m:3614)  
6 … -[CSCoder encodeObject:] + 92 (CSCoder.m:406)  
7 … __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296 (CSSearchableIndex.m:796)  
…

Clearly something has gone very wrong in

MDPlistBufferConsume
. I disassembled that routine to see what’s happening:
(lldb) disas -n MDPlistBufferConsume
MobileSpotlightIndex`MDPlistBufferConsume:
… <+0>:   sub    sp, sp, #0x80             ; =0x80 
… <+4>:   stp    x26, x25, [sp, #0x30]
… <+8>:   stp    x24, x23, [sp, #0x40]
… <+12>:  stp    x22, x21, [sp, #0x50]
… <+16>:  stp    x20, x19, [sp, #0x60]
… <+20>:  stp    x29, x30, [sp, #0x70]
… <+24>:  add    x29, sp, #0x70            ; =0x70 
… <+28>:  mov    x21, x1
…
… <+200>: str    xzr, [sp, #0x28]
… <+204>: adrp   x25, 146544
… <+208>: ldr    x25, [x25, #0xb78]
… <+212>: ldr    w0, [x25]
… <+216>: mov    w3, #0x1000000
… <+220>: movk   w3, #0x1
… <+224>: add    x1, sp, #0x28             ; =0x28 
… <+228>: mov    x2, x23
… <+232>: bl     0x181ed0c70               ; vm_allocate
… <+236>: cbnz   w0, 0x188d0adb8           ; <+372>
…
… <+340>: add    x0, x8, x19
… <+344>: ldp    x29, x30, [sp, #0x70]
… <+348>: ldp    x20, x19, [sp, #0x60]
… <+352>: ldp    x22, x21, [sp, #0x50]
… <+356>: ldp    x24, x23, [sp, #0x40]
… <+360>: ldp    x26, x25, [sp, #0x30]
… <+364>: add    sp, sp, #0x80             ; =0x80 
… <+368>: ret    
… <+372>: bl     0x188d099e4               ; __si_assert_copy_extra.8141
… <+376>: mov    x19, x0
… <+380>: adrp   x8, 27
… <+384>: add    x8, x8, #0x747            ; =0x747 
… <+388>: cmp    x19, #0x0                 ; =0x0 
… <+392>: csel   x8, x19, x8, ne
… <+396>: adrp   x9, 27
… <+400>: add    x9, x9, #0xe7b            ; =0xe7b 
… <+404>: stp    x9, x8, [sp, #0x10]
… <+408>: mov    w8, #0x172
… <+412>: adrp   x9, 27
… <+416>: add    x9, x9, #0x748            ; =0x748 
… <+420>: add    x9, x9, #0x6a             ; =0x6a 
… <+424>: stp    x9, x8, [sp]
… <+428>: bl     0x188d09a84               ; __message_assert.8145
… <+432>: mov    x0, x19
… <+436>: bl     0x188d0e4a4               ; …
… <+440>: mov    w8, #0xbad
… <+444>: mov    w9, #-0x21530000
… <+448>: movk   w9, #0xbeef
… <+452>: str    w9, [x8]
… <+456>: bl     0x181e5ef30               ; abort

Note This disassembly is from 11.2.2, not from iOS 11.0 as shown by the crash report. However, one of the other crash reports that alex246 emailed me confirmed that the disassembly is basically the same on 11.2.1, and thus I’m going to presume that it hasn’t changed throughout the 11.x cycle.

The crash is reported at +452. This is clearly part of some ‘panic’ code, because the next instruction calls

abort
. And if you look at the instructions nearby (+440 through +452) you’ll see that they specifically trigger a memory access exception by loading the address 0xbad into
x8
[2] and then writing 0xdeadbeef to it. That raises the questions of, “How did we get here?” and “What went wrong?”

If you look back through the disassembly you’ll see that the end of the main code is +368 and that this ‘panic’ code starts at +372. You can then look even further back to see that the only code that branches to +372 is +236. Here’s another copy of that code for easy reference:

… <+200>: str    xzr, [sp, #0x28]
… <+204>: adrp   x25, 146544
… <+208>: ldr    x25, [x25, #0xb78]
… <+212>: ldr    w0, [x25]
… <+216>: mov    w3, #0x1000000
… <+220>: movk   w3, #0x1
… <+224>: add    x1, sp, #0x28             ; =0x28 
… <+228>: mov    x2, x23
… <+232>: bl     0x181ed0c70               ; vm_allocate
… <+236>: cbnz   w0, 0x188d0adb8           ; <+372>

This calls

vm_allocate
and then branches to +372 if
vm_allocate
fails. The exact failure code goes into w0, which is lost by the ‘panic’ code. Still, there’s only one common reason for
vm_allocate
to fail, namely, that there’s not enough address space remaining for the requested allocation. And that raises the question of “How big was the allocation?” If the allocation was stupidly big, we need to work out why that’s the case. On the other hand, if the allocation is reasonably sized, we’ve just run out of address space.

It turns out that you can work this out from the crash report. The prototype for

vm_allocate
looks like this:
kern_return_t vm_allocate(vm_map_t target_task, vm_address_t * address, vm_size_t size, int flags);

so the allocation size is passed in

x2
. Fortunately,
x2
is copied from
x23
at +228 and
x23
is preserved by the panic code. Looking up
x23
in the crash report’s register dump we see that it’s 0x10000000, or 256 MiB. That’s pretty darned big, even for a 64-bit process.

Looking through the other crash reports that alex246 sent to me, the only other value I see in

x23
is 0x8000000, or 128 MiB, which is also pretty big.

[The above is all concrete analysis but here I’m heading off into the realm of speculation.]

My best guess as to what’s happening here is that you’re presenting Core Spotlight with a massive data set. Core Spotlight is trying to serialise this (hence frame 6 in the crashed thread) and that’s running out of address space.

Which brings us to frame 7:

7 … __161-[CSSearchableIndex indexSearchableItems:deleteSearchableItemsWithIdentifiers:clientState:clientStateName:protectionClass:forBundleID:options:completionHandler:]_block_invoke + 1296 (CSSearchableIndex.m:796)

My best guess is that this is a block used internally by

-indexSearchableItems:completionHandler:
, and it’s the
items
parameter that’s triggering this massive serialisation.

Given the above my recommendation is that you look at the size of the data you’re trying to index. It seems likely that you’re trying to index massive amounts of data in one go — either a huge number of small items or a small number of huge items — and that’s what’s triggering this crash.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

[1] Which is good enough for this task, once I used a ‘clean’ crash report to track down the issue.

[2] Note that in 64-bit Arm,

x8
is the full 64-bit register and
w8
is an alias for the bottom 32-bits.
iOS11 - com.apple.spotlight.CoreSpotlight.throttle
 
 
Q