IOS --> Replicator::pendingDocumentIDs crashing

We are facing crashing issues while trying to get pendingDocumentIDs from replicator. This issue is not occurring everytime. Herewith, I am attaching the crashing report from Instabug.

Version: CouchbaseLite-Swift-Enterprise (2.8.4)

0 CouchbaseLiteSwift 0x1066321c8 $std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<std::__1::__value_type<unsigned long long, unsigned long long>, void*>, long> std::__1::__tree<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__map_value_compare<unsigned long long, std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::less, true>, std::__1::allocator<std::__1::__value_type<unsigned long long, unsigned long long> > >::__upper_bound(unsigned long long const&, std::__1::__tree_node<std::__1::__value_type<unsigned long long, unsigned long long>, void>, std::__1::__tree_end_node<std::__1::__tree_node_base<void>>) const (_tree:2677)
1 CouchbaseLiteSwift 0x10663263c litecore::SequenceSet::contains(unsigned long long) const (SequenceSet.hh:64)
2 CouchbaseLiteSwift 0x106633c90 litecore::repl::Checkpointer::pendingDocumentIDs(c4Database*, fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*) (Checkpointer.cc:430)
3 CouchbaseLiteSwift 0x1066692bc litecore::repl::Replicator::pendingDocumentIDs(fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*) (Replicator.cc:653)
4 CouchbaseLiteSwift 0x106659c54 C4Replicator::PendingDocuments::pendingDocumentIDs(C4Error*) (c4Replicator.hh:489)
5 CouchbaseLiteSwift 0x106659a7c C4Replicator::pendingDocumentIDs(C4Error*) const (c4Replicator.hh:200)
6 CouchbaseLiteSwift 0x106659a14 c4repl_getPendingDocIDs (c4Replicator.cc:294)
7 CouchbaseLiteSwift 0x1065fc32c -[CBLReplicator pendingDocumentIDs:] (CBLReplicator.mm:418)
8 CouchbaseLiteSwift 0x106514254 Replicator.pendingDocumentIds() (Replicator.swift:209)
9 My App 0x1046ebba8 CouchBaseEvent.pushPendingDocumentIDs() (CouchBaseEvent.swift:560)
10 My App 0x1048151f4 MaintenanceViewController.updatePendingPush() (MaintenanceViewController.swift:209)
11 My App 0x104815848 @objc MaintenanceViewController.updatePendingPush() (:0)
12 CoreFoundation 0x1aa454e8c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
+ 19
13 CoreFoundation 0x1aa454e4c __CFXRegistrationPost_block_invoke + 47
14 CoreFoundation 0x1aa454438 _CFXRegistrationPost + 399
15 CoreFoundation 0x1aa453e30 CFXNotificationPost + 695
16 Foundation 0x1ab6c6934 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
17 My App 0x104703160 partial apply for closure #1 in CouchBaseEvent.startPush() (:0)
18 CouchbaseLiteSwift 0x106513ce4 closure #1 in Replicator.addChangeListener(withQueue:
:slight_smile: (Replicator.swift:153)
19 CouchbaseLiteSwift 0x106513d30 thunk for @escaping @callee_guaranteed (@guaranteed CBLReplicatorChange) → () (:0)
20 libdispatch.dylib 0x1aa12a2b0 _dispatch_call_block_and_release + 23
21 libdispatch.dylib 0x1aa12b298 _dispatch_client_callout + 15
22 libdispatch.dylib 0x1aa10d430 dispatch_main_queue_callback_4CF$VARIANT$armv81 + 871
23 CoreFoundation 0x1aa4722e0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
+ 11
24 CoreFoundation 0x1aa46c740 _CFRunLoopRun + 2527
25 CoreFoundation 0x1aa46b818 CFRunLoopRunSpecific + 571
26 GraphicsServices 0x1c0b71570 GSEventRunModal + 159
27 UIKitCore 0x1acd970e8 -[UIApplication _run] + 1051
28 UIKitCore 0x1acd9c664 UIApplicationMain + 163
29 My App 0x104522eb0 main (AppDelegate.swift:20)
30 libdyld.dylib 0x1aa14a140 $start + 3

Is there information about the crash reason or exception info?

@pasin Sorry, This is the thread info while app crashes.

This doesn’t look complete, is that all you can get from Instabug? can we get more details like exception reason or info?

All it shows is a backtrace, and it didn’t even say the thread is crashed.

Hi @jayahari.vavachan, Here is the crash report from XCode.

Incident Identifier: F8ED28F1-F849-4464-B160-4463461A9DAD
Hardware Model: iPad8,10
Process: My App [1720]
Path: /private/var/containers/Bundle/Application/9BA1B664-5896-4B28-AA63-C9E7597EEB43/My App.app/My App
Identifier: com.nobelsystems.My App
Version: 9 (3.99)
AppStoreTools: 12E506
AppVariant: 1:iPad8,10:13
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.nobelsystems.My App [555]

Date/Time: 2021-06-30 14:09:05.7164 +0800
Launch Time: 2021-06-30 08:06:54.7103 +0800
OS Version: iPhone OS 14.4 (18D52)
Release Type: User
Baseband Version: 2.03.04
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00009d5a97e30818 → 0x0000005a97e30818 (possible pointer authentication failure)
VM Region Info: 0x5a97e30818 is in 0x1000000000-0x7000000000; bytes after start: 320375818264 bytes before end: 91941042151
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
commpage (reserved) fc0000000-1000000000 [ 1.0G] —/— SM=NUL …(unallocated)
—> GPU Carveout (reserved) 1000000000-7000000000 [384.0G] —/— SM=NUL …(unallocated)
UNUSED SPACE AT END

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

Thread 0 name:
Thread 0 Crashed:
0 CouchbaseLiteSwift 0x000000010275a128 std::__1::__tree_node_base<void*>* std::__1::__tree_max<std::__1::__tree_node_base<void*>>(std::__1::__tree_node_base<void>) + 0 (__tree:159)
1 CouchbaseLiteSwift 0x000000010275a128 std::__1::__tree_node_base<void
>* std::__1::__tree_prev_iter<std::__1::__tree_node_base<void*>, std::__1::__tree_end_node<std::__1::__tree_node_base<void>>>(std::__1::__tree_end_node<std::__1:… + 12 (__tree:198)
2 CouchbaseLiteSwift 0x000000010275a654 std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<std::__1::__value_type<unsigned long long, unsigned long long>, void*>, long>:… + 4 (__tree:939)
3 CouchbaseLiteSwift 0x000000010275a654 std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<std::__1::__value_type<unsigned long long, unsig… + 4 (map:875)
4 CouchbaseLiteSwift 0x000000010275a654 void std::__1::__advance<std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<std::__1::__value_type<… + 8 (iterator:655)
5 CouchbaseLiteSwift 0x000000010275a654 void std::__1::advance<std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<std::__1::__value_type<un… + 8 (iterator:673)
6 CouchbaseLiteSwift 0x000000010275a654 std::__1::enable_if<__is_cpp17_input_iterator<std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<unsigned long long, unsigned long long>, std::__1::__tree_node<st… + 8 (iterator:732)
7 CouchbaseLiteSwift 0x000000010275a654 litecore::SequenceSet::contains(unsigned long long) const + 64 (SequenceSet.hh:67)
8 CouchbaseLiteSwift 0x000000010275bc90 litecore::repl::Checkpoint::isSequenceCompleted(unsigned long long) const + 4 (Checkpoint.hh:61)
9 CouchbaseLiteSwift 0x000000010275bc90 litecore::repl::Checkpointer::pendingDocumentIDs(c4Database
, fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*) + 256 (Checkpointer.cc:430)
10 CouchbaseLiteSwift 0x00000001027912bc litecore::repl::Replicator::pendingDocumentIDs(fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*)::$_3::operator()(c4Database*) const + 16 (Replicator.cc:654)
11 CouchbaseLiteSwift 0x00000001027912bc bool litecore::access_lock<c4Database*, std::__1::recursive_mutex>::use<bool, litecore::repl::Replicator::pendingDocumentIDs(fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*)::$_3>(lite… + 28 (access_lock.hh:45)
12 CouchbaseLiteSwift 0x00000001027912bc litecore::repl::Replicator::pendingDocumentIDs(fleece::function_ref<void (C4DocumentInfo const&)>, C4Error*) + 68 (Replicator.cc:653)
13 CouchbaseLiteSwift 0x0000000102781c54 C4Replicator::PendingDocuments::pendingDocumentIDs(C4Error*) + 84 (c4Replicator.hh:489)
14 CouchbaseLiteSwift 0x0000000102781a7c C4Replicator::pendingDocumentIDs(C4Error*) const + 64 (c4Replicator.hh:200)
15 CouchbaseLiteSwift 0x0000000102781a14 c4repl_getPendingDocIDs + 20 (c4Replicator.cc:294)
16 CouchbaseLiteSwift 0x000000010272432c -[CBLReplicator pendingDocumentIDs:] + 284 (CBLReplicator.mm:418)
17 CouchbaseLiteSwift 0x000000010263c254 Replicator.pendingDocumentIds() + 48 (Replicator.swift:209)
18 My App 0x0000000100863ba8 CouchBaseEvent.pushPendingDocumentIDs() + 2292648 (CouchBaseEvent.swift:560)
19 My App 0x000000010098d1f4 MaintenanceViewController.updatePendingPush() + 3510772 (MaintenanceViewController.swift:213)
20 My App 0x000000010098d848 @objc MaintenanceViewController.updatePendingPush() + 3512392 (:0)
21 CoreFoundation 0x00000001a202f9a0 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 28 (CFNotificationCenter.c:706)
22 CoreFoundation 0x00000001a202f948 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
23 CoreFoundation 0x00000001a202eeb0 _CFXRegistrationPost + 440 (CFNotificationCenter.c:198)
24 CoreFoundation 0x00000001a202e870 CFXNotificationPost + 716 (CFNotificationCenter.c:1071)
25 Foundation 0x00000001a32f54bc -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 (NSNotification.m:575)
26 My App 0x000000010087b160 partial apply for closure #1 in CouchBaseEvent.startPush() + 2388320 (:0)
27 CouchbaseLiteSwift 0x000000010263bce4 closure #1 in Replicator.addChangeListener(withQueue:
:slight_smile: + 124 (Replicator.swift:153)
28 CouchbaseLiteSwift 0x000000010263bd30 thunk for @escaping @callee_guaranteed (@guaranteed CBLReplicatorChange) → () + 36 (:0)
29 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
30 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
31 libdispatch.dylib 0x00000001a1cd47ac _dispatch_main_queue_callback_4CF + 836 (inline_internal.h:2548)
32 CoreFoundation 0x00000001a204e11c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1790)
33 CoreFoundation 0x00000001a2048120 __CFRunLoopRun + 2508 (CFRunLoop.c:3118)
34 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
35 GraphicsServices 0x00000001b9c13784 GSEventRunModal + 164 (GSEvent.c:2259)
36 UIKitCore 0x00000001a4a87ee8 -[UIApplication _run] + 1072 (UIApplication.m:3253)
37 UIKitCore 0x00000001a4a8d75c UIApplicationMain + 168 (UIApplication.m:4707)
38 My App 0x000000010069aeb0 main + 421552 (AppDelegate.swift:20)
39 libdyld.dylib 0x00000001a1d076b0 start + 4

Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 Foundation 0x00000001a32f6df0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374)
6 Foundation 0x00000001a32f6cbc -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:421)
7 UIKitCore 0x00000001a4b3bc48 -[UIEventFetcher threadMain] + 516 (UIEventFetcher.m:838)
8 Foundation 0x00000001a3468a34 NSThread__start + 864 (NSThread.m:724)
9 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
10 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a20482fc CFRunLoopRun + 64 (CFRunLoop.c:3267)
6 Mapbox 0x00000001037ef644 mbgl::util::Threadmbgl::AssetFileSource::Impl::Thread<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&>(std::__1::function<void ()>, std::__1::basic_st… + 280
7 Mapbox 0x00000001037ef444 std::__1::thread::thread<mbgl::util::Threadmbgl::AssetFileSource::Impl::Thread<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&>(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::‘lambda’(), void>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, mbgl::util::Threadmbgl::AssetFileSource::Impl::Thread<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&>(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)::‘lambda’+ 78916 ()&&…) + 848
8 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
9 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a20482fc CFRunLoopRun + 64 (CFRunLoop.c:3267)
6 Mapbox 0x000000010381f7dc mbgl::util::Threadmbgl::OnlineFileSourceThread::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const… + 184
7 Mapbox 0x000000010381f654 std::__1::thread::thread<mbgl::util::Threadmbgl::OnlineFileSourceThread::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<>&&)::‘lambda’(), void>(std::__1::tuple<>&&, mbgl::util::Threadmbgl::OnlineFileSourceThread::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<>&&)::‘lambda’+ 276052 ()&&…) + 720
8 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
9 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a20482fc CFRunLoopRun + 64 (CFRunLoop.c:3267)
6 Mapbox 0x000000010396e5e4 mbgl::util::Threadmbgl::MultiDatabaseFileSourceThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator… + 196
7 Mapbox 0x000000010396e4dc std::__1::thread::thread<mbgl::util::Threadmbgl::MultiDatabaseFileSourceThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, unsigned long long> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, unsigned long long>&&)::‘lambda’(), void>(std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, unsigned long long>&&, mbgl::util::Threadmbgl::MultiDatabaseFileSourceThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, unsigned long long> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, unsigned long long>&&)::‘lambda’+ 1647836 ()&&…) + 996
8 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
9 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 Mapbox 0x0000000103b54510 std::__1::__deque_base<std::__1::function<void ()>, std::__1::allocator<std::__1::function<void ()> > >::clear+ 3638544 () + 760
4 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
5 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a20482fc CFRunLoopRun + 64 (CFRunLoop.c:3267)
6 Mapbox 0x00000001037fbf5c mbgl::util::Threadmbgl::LocalFileSource::Impl::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&… + 208
7 Mapbox 0x00000001037fbdbc std::__1::thread::thread<mbgl::util::Threadmbgl::LocalFileSource::Impl::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<>&&)::‘lambda’(), void>(std::__1::tuple<>&&, mbgl::util::Threadmbgl::LocalFileSource::Impl::Thread<std::__1::tuple<> >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<>&&)::‘lambda’+ 130492 ()&&…) + 720
8 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
9 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a20482fc CFRunLoopRun + 64 (CFRunLoop.c:3267)
6 Mapbox 0x0000000103800e2c mbgl::util::Threadmbgl::MainResourceLoaderThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, st… + 228
7 Mapbox 0x0000000103800cd4 std::__1::thread::thread<mbgl::util::Threadmbgl::MainResourceLoaderThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource > >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource >&&)::‘lambda’(), void>(std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource >&&, mbgl::util::Threadmbgl::MainResourceLoaderThread::Thread<std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource > >(std::__1::function<void ()>, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::tuple<std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource, std::__1::shared_ptrmbgl::FileSource >&&)::‘lambda’+ 150740 ()&&…) + 696
8 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
9 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102789034 litecore::actor::timer::Manager::run() + 196 (Timer.cc:58)
16 CouchbaseLiteSwift 0x0000000102788f70 litecore::actor::timer::Manager::Manager()::blush:0::operator()() const + 12 (Timer.cc:34)
17 CouchbaseLiteSwift 0x0000000102788f64 decltype(std::__1::forwardlitecore::actor::Timer::Manager::Manager()::$_0(fp)()) std::__1::__invokelitecore::actor::Timer::Manager::Manager()::$_0(litecore::actor::timer::Manager::Manager()::blush:
… + 12 (type_traits:3545)
18 CouchbaseLiteSwift 0x0000000102788eec void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, litecore::actor::timer::Manager::Manager()::$_0>(std::__1::tup… + 8 (thread:273)
19 CouchbaseLiteSwift 0x0000000102788eec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, litecore::actor::timer::Manager::Manager()::$_0… + 52 (thread:284)
20 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
21 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CoreFoundation 0x00000001a206af2c _legacyStreamRunLoop_workThread + 280 (CFStream.c:1773)
6 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
7 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CFNetwork 0x00000001a291d1c0 +[__CFN_CoreSchedulingSetRunnable _run:] + 572 (CoreSchedulingSet.mm:1374)
6 Foundation 0x00000001a3468a34 NSThread__start + 864 (NSThread.m:724)
7 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 11:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 Instabug 0x0000000102e852f8 exception_server_thread + 188 (PLCrashMachExceptionServer.m:664)
3 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
4 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 Mapbox 0x0000000103b54510 std::__1::__deque_base<std::__1::function<void ()>, std::__1::allocator<std::__1::function<void ()> > >::clear+ 3638544 () + 760
4 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
5 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 Mapbox 0x0000000103b54510 std::__1::__deque_base<std::__1::function<void ()>, std::__1::allocator<std::__1::function<void ()> > >::clear+ 3638544 () + 760
4 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
5 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 Mapbox 0x0000000103b54510 std::__1::__deque_base<std::__1::function<void ()>, std::__1::allocator<std::__1::function<void ()> > >::clear+ 3638544 () + 760
4 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
5 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 15 name:
Thread 15:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 Mapbox 0x0000000103b54510 std::__1::__deque_base<std::__1::function<void ()>, std::__1::allocator<std::__1::function<void ()> > >::clear+ 3638544 () + 760
4 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
5 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CFNetwork 0x00000001a291d1c0 +[__CFN_CoreSchedulingSetRunnable _run:] + 572 (CoreSchedulingSet.mm:1374)
6 Foundation 0x00000001a3468a34 NSThread__start + 864 (NSThread.m:724)
7 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 17 name:
Thread 17:
0 libsystem_kernel.dylib 0x00000001cf90e70c select$DARWIN_EXTSN + 8
1 CoreFoundation 0x00000001a205a8a8 __CFSocketManager + 636 (CFSocket.c:1343)
2 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
3 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 18 name:
Thread 18:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 AudioSession 0x00000001a9b900c4 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:91)
6 AudioSession 0x00000001a9b9225c CAPThread::Entry(CAPThread*) + 92 (CAPThread.cpp:321)
7 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 19 name:
Thread 19:
0 libsystem_kernel.dylib 0x00000001cf8ea2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cf8e9660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x00000001a204dc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001a2047c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x00000001a204721c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 AudioToolbox 0x00000001ab1eb9fc GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:91)
6 libAudioToolboxUtility.dylib 0x00000001b787e144 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001ece43cb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001ece4c778 thread_start + 8

Thread 21 name:
Thread 21:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 22 name:
Thread 22:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 23 name:
Thread 23:
0 CouchbaseLiteSwift 0x0000000102869700 fleece::alloc_slice::operator=(fleece::alloc_slice&&) + 0 (slice.cc:401)
1 CouchbaseLiteSwift 0x00000001027a6f68 C4DocEnumerator::getDocInfo(C4DocumentInfo*) + 80 (c4DocEnumerator.cc:75)
2 CouchbaseLiteSwift 0x00000001027a6f0c c4enum_getDocumentInfo + 12 (c4DocEnumerator.cc:133)
3 CouchbaseLiteSwift 0x0000000102744b70 litecore::repl::Pusher::getMoreChanges() + 280
4 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
5 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
6 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
7 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
8 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
9 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
10 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
11 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
12 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 24:
0 libsystem_pthread.dylib 0x00000001ece4c764 start_wqthread + 0

Thread 25 name:
Thread 25:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 26 name:
Thread 26:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 28 name:
Thread 28:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 29 name:
Thread 29:
0 CouchbaseLiteSwift 0x00000001028131d8 sqlite3BtreeInsert + 100 (sqlite3-see-cccrypt.c:73251)
1 CouchbaseLiteSwift 0x00000001027dcddc sqlite3VdbeExec + 18152 (sqlite3-see-cccrypt.c:90330)
2 CouchbaseLiteSwift 0x00000001027d75a4 sqlite3Step + 128 (sqlite3-see-cccrypt.c:83752)
3 CouchbaseLiteSwift 0x00000001027d75a4 sqlite3_step + 272 (sqlite3-see-cccrypt.c:83817)
4 CouchbaseLiteSwift 0x0000000102795ea0 SQLite::Statement::exec() + 40 (Statement.cpp:295)
5 CouchbaseLiteSwift 0x000000010278b048 litecore::SQLiteKeyStore::setDocumentFlag(fleece::slice, unsigned long long, litecore::DocumentFlags, litecore::Transaction&) + 116 (SQLiteKeyStore.cc:415)
6 CouchbaseLiteSwift 0x0000000102783640 c4db_markSynced + 92 (c4Document.cc:329)
7 CouchbaseLiteSwift 0x0000000102761e20 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 76 (DBAccess.cc:427)
8 CouchbaseLiteSwift 0x0000000102761e20 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 88 (access_lock.hh:38)
9 CouchbaseLiteSwift 0x0000000102761e20 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 100 (DBAccess.hh:145)
10 CouchbaseLiteSwift 0x0000000102761e20 litecore::repl::DBAccess::markRevsSyncedNow() + 168 (DBAccess.cc:420)
11 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
12 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
13 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
14 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
15 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
16 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
17 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
18 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
19 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
20 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 32 name:
Thread 32:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 35 name:
Thread 35:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 36 name:
Thread 36:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

Thread 37 name:
Thread 37:
0 libsystem_kernel.dylib 0x00000001cf90e1ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001ece47468 _pthread_cond_wait + 1192 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b718e328 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28 (__threading_support:390)
3 CouchbaseLiteSwift 0x000000010274beb4 litecore::DataFile::Shared::setTransaction(litecore::Transaction*) + 76 (DataFile+Shared.hh:114)
4 CouchbaseLiteSwift 0x000000010274be38 litecore::DataFile::beginTransactionScope(litecore::Transaction*) + 40 (DataFile.cc:328)
5 CouchbaseLiteSwift 0x000000010274c0c4 litecore::Transaction::Transaction(litecore::DataFile*, bool) + 36 (DataFile.cc:378)
6 CouchbaseLiteSwift 0x0000000102794e48 c4Internal::Database::beginTransaction() + 52 (Database.cc:501)
7 CouchbaseLiteSwift 0x00000001027922fc fleece::function_ref<void ()>::operator()() const + 8 (function_ref.hh:72)
8 CouchbaseLiteSwift 0x00000001027922fc c4Internal::tryCatch(C4Error*, fleece::function_ref<void ()>) + 24 (c4ExceptionUtils.cc:35)
9 CouchbaseLiteSwift 0x000000010274d0a8 c4db_beginTransaction + 44 (c4Database.cc:0)
10 CouchbaseLiteSwift 0x000000010275c128 c4::Transaction::begin(C4Error*) + 24 (c4Transaction.hh:36)
11 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow()::$_11::operator()(c4Database*) const + 20 (DBAccess.cc:423)
12 CouchbaseLiteSwift 0x0000000102761de8 void litecore::access_lock<c4Database*, std::__1::recursive_mutex>::uselitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 32 (access_lock.hh:38)
13 CouchbaseLiteSwift 0x0000000102761de8 void litecore::repl::DBAccess::useForInsertlitecore::repl::DBAccess::markRevsSyncedNow()::$_11(litecore::repl::DBAccess::markRevsSyncedNow()::$_11) + 44 (DBAccess.hh:145)
14 CouchbaseLiteSwift 0x0000000102761de8 litecore::repl::DBAccess::markRevsSyncedNow() + 112 (DBAccess.cc:420)
15 CouchbaseLiteSwift 0x0000000102744acc litecore::repl::Pusher::getMoreChanges() + 116
16 CouchbaseLiteSwift 0x0000000102748a54 litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28 (GCDMailbox.cc:87)
17 CouchbaseLiteSwift 0x0000000102748b14 invocation function for block in litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 16 (GCDMailbox.cc:98)
18 libdispatch.dylib 0x00000001a1cc524c _dispatch_call_block_and_release + 32 (init.c:1454)
19 libdispatch.dylib 0x00000001a1cc6db0 _dispatch_client_callout + 20 (object.m:559)
20 libdispatch.dylib 0x00000001a1cce10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)
21 libdispatch.dylib 0x00000001a1ccec5c _dispatch_lane_invoke + 408 (queue.c:3862)
22 libdispatch.dylib 0x00000001a1cd8d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)
23 libsystem_pthread.dylib 0x00000001ece45814 _pthread_wqthread + 276 (pthread.c:2210)
24 libsystem_pthread.dylib 0x00000001ece4c76c start_wqthread + 8

EOF

I couldn’t find which instance is deallocated from the logs.

Since you are able to get the crash locally, is it possible to share a sample project? OR If not, could you share the steps and some code snippets so that I can try reproduce it here.

If you are an enterprise customer, feel free to contact support for a faster response.

Hi @jayahari.vavachan, Here are the steps that when our app is using this API,

  1. Opening the app initially, Database will setup.
  2. At initial view controller, We are showing the count of pending push documents. Using the below code,
    func getPendingPushDocumentIDs() -> [String] {
        var pendingDocumentIDs = Set<String>()
        do {
            pendingDocumentIDs = try _push.pendingDocumentIds()
        } catch {
            print("Error occured while getting pending push count --> \(error.localizedDescription)")
        }
        return Array(pendingDocumentIDs)
    }
  1. Whenever they open this view controller we are using the above code to show pending count.

FYI → We are using continuous = true. So, usually there will be no pending document ID’s. But, If there is any network error or some internal errors. Then they will see the count.