1 Reply
      Latest reply on Sep 24, 2016 2:42 PM by MendelK
      MendelK Level 2 Level 2 (90 points)

        Hi,

         

        Anyone experiencing the same? When downloading a large zone from the private database with a large number of changes, adds and deletes (say 20k records, 15k deletes and 5k changes) cloudd crashes reproducibly along the way. This only happens when fetchAllChanges=YES. When set to NO or when using the older CKFetchRecordChangesOperation, everything works as expected.

         

        Here are some stacks where cloudd is crashing:

         

        Thread 5 Crashed:: Dispatch queue: com.apple.cloudkit.fetchAllZoneChanges.callback.0x7fa2cde15450

        0   com.apple.cloudkit.CloudKitDaemon 0x00007fffd2420004 CKDPQueryRetrieveRequestReadFrom + 506

        1   libdispatch.dylib             0x00007fffdcb41128 _dispatch_client_callout + 8

        2   libdispatch.dylib             0x00007fffdcb578e8 _dispatch_queue_serial_drain + 209

        3   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        4   libdispatch.dylib             0x00007fffdcb579d2 _dispatch_queue_serial_drain + 443

        5   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        6   libdispatch.dylib             0x00007fffdcb579d2 _dispatch_queue_serial_drain + 443

        7   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        8   libdispatch.dylib             0x00007fffdcb42ee0 _dispatch_root_queue_drain + 476

        9   libdispatch.dylib             0x00007fffdcb42cb7 _dispatch_worker_thread3 + 99

        10  libsystem_pthread.dylib       0x00007fffdcd8d746 _pthread_wqthread + 1299

        11  libsystem_pthread.dylib       0x00007fffdcd8d221 start_wqthread + 13

         

        Thread 5 Crashed:: Dispatch queue: com.apple.cloudkit.fetchAllZoneChanges.callback.0x7fbcb1575f20

        0   libobjc.A.dylib               0x00007fffdc2938a4 objc_loadWeakRetained + 166

        1   com.apple.cloudkit.CloudKitDaemon 0x00007fffd24292b4 __82-[CKDFetchRecordZoneChangesOperation _handleRecordChange:perRequestSchedulerInfo:]_block_invoke_2 + 47

        2   libdispatch.dylib             0x00007fffdcb56680 _dispatch_block_async_invoke_and_release + 75

        3   libdispatch.dylib             0x00007fffdcb41128 _dispatch_client_callout + 8

        4   libdispatch.dylib             0x00007fffdcb578e8 _dispatch_queue_serial_drain + 209

        5   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        6   libdispatch.dylib             0x00007fffdcb579d2 _dispatch_queue_serial_drain + 443

        7   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        8   libdispatch.dylib             0x00007fffdcb579d2 _dispatch_queue_serial_drain + 443

        9   libdispatch.dylib             0x00007fffdcb49d41 _dispatch_queue_invoke + 1046

        10  libdispatch.dylib             0x00007fffdcb42ee0 _dispatch_root_queue_drain + 476

        11  libdispatch.dylib             0x00007fffdcb42cb7 _dispatch_worker_thread3 + 99

        12  libsystem_pthread.dylib       0x00007fffdcd8d746 _pthread_wqthread + 1299

        13  libsystem_pthread.dylib       0x00007fffdcd8d221 start_wqthread + 13

         

        Thread 5 Crashed:: Dispatch queue: com.apple.cloudkit.fetchAllZoneChanges.callback.0x7faca4525630

        0   com.apple.cloudkit.CloudKitDaemon 0x00007fff88fc0004 -[CKDPCSCacheRecordFetchOperation _decryptPCS] + 6466

        1   libdispatch.dylib             0x00007fff936e7128 _dispatch_client_callout + 8

        2   libdispatch.dylib             0x00007fff936fd8e8 _dispatch_queue_serial_drain + 209

        3   libdispatch.dylib             0x00007fff936efd41 _dispatch_queue_invoke + 1046

        4   libdispatch.dylib             0x00007fff936fd9d2 _dispatch_queue_serial_drain + 443

        5   libdispatch.dylib             0x00007fff936efd41 _dispatch_queue_invoke + 1046

        6   libdispatch.dylib             0x00007fff936fd9d2 _dispatch_queue_serial_drain + 443

        7   libdispatch.dylib             0x00007fff936efd41 _dispatch_queue_invoke + 1046

        8   libdispatch.dylib             0x00007fff936e8ee0 _dispatch_root_queue_drain + 476

        9   libdispatch.dylib             0x00007fff936e8cb7 _dispatch_worker_thread3 + 99

        10  libsystem_pthread.dylib       0x00007fff93933746 _pthread_wqthread + 1299

        11  libsystem_pthread.dylib       0x00007fff93933221 start_wqthread + 13

         

         

        Already filed a bug report, #28461661