Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with realm_core_v_13_17_1 #7080

Closed
ripplek opened this issue Oct 25, 2023 · 8 comments
Closed

Crash with realm_core_v_13_17_1 #7080

ripplek opened this issue Oct 25, 2023 · 8 comments
Labels
Needs-Attention Reporter has responded. Review comment. O-Community

Comments

@ripplek
Copy link

ripplek commented Oct 25, 2023

SDK and version

SDK : RealmSwift
Version: 10.42.0

Observations

  • How frequent do the crash occur? once
  • Does it happen in production or during dev/test? production
  • Can the crash be reproduced by you? no
  • Can you provide instructions for how we can reproduce it? no

Crash log / stacktrace

(edited to hide by default)

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: D96C016B-07E1-42E6-A6DE-3028BE44F453
CrashReporter Key:   a873c1fe56e98ce827622394e617bb522a4072be
Hardware Model:      iPhone13,2
Process:             BGIM [15483]
Path:                /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/BGIM
Identifier:          voidtech.madtalk.bgim.user
Version:             3.3.0 (30)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           voidtech.madtalk.bgim.user [796]

Date/Time:           2023-10-25 12:39:08.2777 +0800
Launch Time:         2023-10-25 12:35:08.3532 +0800
OS Version:          iPhone OS 16.5.1 (20F770750d)
Release Type:        User
Baseband Version:    3.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  16

Application Specific Information:
abort() called


Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0:
0   CoreGraphics                  	       0x1d0d43df0 argb32_sample_argb32 + 832
1   CoreGraphics                  	       0x1d0d38810 argb32_image + 1164
2   CoreGraphics                  	       0x1d0d2b0d8 ripl_Mark + 36
3   CoreGraphics                  	       0x1d0d3e3ac RIPLayerBltImage + 972
4   CoreGraphics                  	       0x1d0d33bd0 ripc_DrawImage + 908
5   CoreGraphics                  	       0x1d0d0a4ec CGContextDrawImageWithOptions + 1120
6   QuartzCore                    	       0x1d07db9a4 -[CALayer _renderForegroundInContext:] + 1620
7   QuartzCore                    	       0x1d07d028c -[CALayer renderInContext:] + 1200
8   QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
9   QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
10  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
11  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
12  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
13  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
14  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
15  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
16  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
17  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
18  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
19  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
20  QuartzCore                    	       0x1d07d2604 -[CALayer _renderSublayersInContext:] + 340
21  QuartzCore                    	       0x1d07d0298 -[CALayer renderInContext:] + 1212
22  BGIM                          	       0x101b38714 specialized JXPhotoBrowserAnimatedTransitioning.snapshot(with:) + 191
23  BGIM                          	       0x101b37e60 specialized JXPhotoBrowserAnimatedTransitioning.snapshot(with:) + 3 (JXPhotoBrowserFadeAnimator.swift:0) [inlined]
24  BGIM                          	       0x101b37e60 JXPhotoBrowserFadeAnimator.animateTransition(using:) + 155 (JXPhotoBrowserFadeAnimator.swift:30)
25  BGIM                          	       0x101b38454 @objc JXPhotoBrowserFadeAnimator.animateTransition(using:) + 43 (<compiler-generated>:0)
26  UIKitCore                     	       0x1d1afa228 ___UIViewControllerTransitioningRunCustomTransition_block_invoke_3 + 48
27  UIKitCore                     	       0x1d14ff13c +[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:] + 96
28  UIKitCore                     	       0x1d15af9f4 ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 196
29  UIKitCore                     	       0x1d14f0600 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 180
30  UIKitCore                     	       0x1d14f04bc _UIViewControllerTransitioningRunCustomTransition + 484
31  UIKitCore                     	       0x1d15da5fc -[UINavigationController _startCustomTransition:] + 2704
32  UIKitCore                     	       0x1d14a1514 -[UINavigationController _startDeferredTransitionIfNeeded:] + 496
33  UIKitCore                     	       0x1d14a0bd4 -[UINavigationController __viewWillLayoutSubviews] + 96
34  UIKitCore                     	       0x1d14a0b38 -[UILayoutContainerView layoutSubviews] + 172
35  UIKitCore                     	       0x1d1302be0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1992
36  QuartzCore                    	       0x1d07bd074 CA::Layer::layout_if_needed(CA::Transaction*) + 500
37  QuartzCore                    	       0x1d07d05f0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
38  QuartzCore                    	       0x1d07e1a1c CA::Context::commit_transaction(CA::Transaction*, double, double*) + 444
39  QuartzCore                    	       0x1d0810ff4 CA::Transaction::commit() + 648
40  QuartzCore                    	       0x1d07faf3c CA::Transaction::flush_as_runloop_observer(bool) + 88
41  UIKitCore                     	       0x1d17fbc04 _UIApplicationFlushCATransaction + 52
42  UIKitCore                     	       0x1d194c4b0 _UIUpdateSequenceRun + 84
43  UIKitCore                     	       0x1d1fb0c8c schedulerStepScheduledMainSection + 144
44  UIKitCore                     	       0x1d1fb01e8 runloopSourceCallback + 92
45  CoreFoundation                	       0x1cf362128 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
46  CoreFoundation                	       0x1cf36e7b4 __CFRunLoopDoSource0 + 176
47  CoreFoundation                	       0x1cf2f35e8 __CFRunLoopDoSources0 + 244
48  CoreFoundation                	       0x1cf3090d4 __CFRunLoopRun + 828
49  CoreFoundation                	       0x1cf30e3ec CFRunLoopRunSpecific + 612
50  GraphicsServices              	       0x20a7ab35c GSEventRunModal + 164
51  UIKitCore                     	       0x1d169b6e8 -[UIApplication _run] + 888
52  UIKitCore                     	       0x1d169b34c UIApplicationMain + 340
53  BGIM                          	       0x100f797bc main + 63 (AppDelegate.swift:14)
54  dyld                          	       0x1ee7e6dec start + 2220

Thread 1:
0   libsystem_pthread.dylib       	       0x22f018b74 start_wqthread + 0

Thread 2 name:  com.apple.uikit.eventfetch-thread
Thread 2:
0   libsystem_kernel.dylib        	       0x20e1d3c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x20e1e6b54 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x20e1e6e2c mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x20e1d41c8 mach_msg + 24
4   CoreFoundation                	       0x1cf308024 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1cf309250 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1cf30e3ec CFRunLoopRunSpecific + 612
7   Foundation                    	       0x1c958efd4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   Foundation                    	       0x1c958eebc -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9   UIKitCore                     	       0x1d17ce3fc -[UIEventFetcher threadMain] + 416
10  Foundation                    	       0x1c95a8544 __NSThread__start__ + 716
11  libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
12  libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 3 name:  Realm notification listener
Thread 3:
0   libsystem_kernel.dylib        	       0x20e1d55bc kevent + 8
1   BGIM                          	       0x101d5f270 realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x101d5f3f4 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x101d5f3f4 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x101d5f3f4 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x101d5f3f4 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 4 name:  Realm notification listener
Thread 4:
0   libsystem_kernel.dylib        	       0x20e1d55bc kevent + 8
1   BGIM                          	       0x101d5f270 realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x101d5f3f4 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x101d5f3f4 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x101d5f3f4 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x101d5f3f4 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 5 name:  Realm notification listener
Thread 5:
0   libsystem_kernel.dylib        	       0x20e1d55bc kevent + 8
1   BGIM                          	       0x101d5f270 realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x101d5f3f4 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x101d5f3f4 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x101d5f3f4 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x101d5f3f4 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 6:
0   libsystem_kernel.dylib        	       0x20e1d4558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x22f020078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dd8dbef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x105052a68 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x105053448 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x1050535b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 7:
0   libsystem_kernel.dylib        	       0x20e1d4558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x22f020078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dd8dbef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x105052a68 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x105053448 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x1050535b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 8:
0   libsystem_pthread.dylib       	       0x22f018b74 start_wqthread + 0

Thread 9:
0   libsystem_kernel.dylib        	       0x20e1d4558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x22f020078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dd8dbef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x105052a68 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x105053448 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x1050535b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 10 name:  com.apple.NSURLConnectionLoader
Thread 10:
0   libsystem_kernel.dylib        	       0x20e1d3c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x20e1e6b54 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x20e1e6e2c mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x20e1d41c8 mach_msg + 24
4   CoreFoundation                	       0x1cf308024 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1cf309250 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1cf30e3ec CFRunLoopRunSpecific + 612
7   CFNetwork                     	       0x1d04f9580 0x1d02a0000 + 2463104
8   Foundation                    	       0x1c95a8544 __NSThread__start__ + 716
9   libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
10  libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

Thread 11 name:  Realm notification listener
Thread 11:
0   libsystem_kernel.dylib        	       0x20e1d4c88 __psynch_mutexwait + 8
1   libsystem_pthread.dylib       	       0x22f01a114 _pthread_mutex_firstfit_lock_wait + 84
2   libsystem_pthread.dylib       	       0x22f021318 _pthread_mutex_firstfit_lock_slow + 248
3   BGIM                          	       0x101f2788c realm::util::Mutex::lock() + 7 (thread.hpp:530) [inlined]
4   BGIM                          	       0x101f2788c realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:579) [inlined]
5   BGIM                          	       0x101f2788c realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:578) [inlined]
6   BGIM                          	       0x101f2788c realm::util::encryption_mark_pages_for_IV_check(realm::util::EncryptedFileMapping*) + 39 (file_mapper.cpp:331)
7   BGIM                          	       0x101ca9ccc realm::SlabAlloc::schedule_refresh_of_outdated_encrypted_pages() + 35 (alloc_slab.cpp:1337)
8   BGIM                          	       0x101ca91e0 realm::SlabAlloc::update_reader_view(unsigned long) + 119 (alloc_slab.cpp:1211)
9   BGIM                          	       0x101d5e7b8 bool realm::Transaction::internal_advance_read<realm::_impl::NullInstructionObserver>(realm::_impl::NullInstructionObserver*, realm::VersionID, realm::_impl::History&, bool) + 131 (transaction.hpp:487)
10  BGIM                          	       0x101d5e610 void realm::Transaction::advance_read<realm::_impl::NullInstructionObserver>(realm::_impl::NullInstructionObserver*, realm::VersionID) + 107 (transaction.hpp:350)
11  BGIM                          	       0x101d798b8 realm::Transaction::advance_read(realm::VersionID) + 7 (transaction.hpp:75) [inlined]
12  BGIM                          	       0x101d798b8 realm::_impl::ResultsNotifier::do_prepare_handover(realm::Transaction&) + 79 (results_notifier.cpp:193)
13  BGIM                          	       0x101d67ff4 realm::_impl::CollectionNotifier::prepare_handover() + 47 (collection_notifier.cpp:292)
14  BGIM                          	       0x101d74830 realm::_impl::RealmCoordinator::run_async_notifiers() + 1583 (realm_coordinator.cpp:1024)
15  BGIM                          	       0x101d741a0 realm::_impl::RealmCoordinator::on_change() + 67 (realm_coordinator.cpp:872)
16  BGIM                          	       0x101d5f29c realm::_impl::ExternalCommitHelper::listen() + 203 (external_commit_helper.cpp:234)
17  BGIM                          	       0x101d5f3f4 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
18  BGIM                          	       0x101d5f3f4 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
19  BGIM                          	       0x101d5f3f4 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
20  BGIM                          	       0x101d5f3f4 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
21  libsystem_pthread.dylib       	       0x22f0196b8 _pthread_start + 148
22  libsystem_pthread.dylib       	       0x22f018b88 thread_start + 8

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

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

Thread 14:
0   libsystem_pthread.dylib       	       0x22f018b74 start_wqthread + 0

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

Thread 16 name:   Dispatch queue: cc.sks.ximsdk.storage.query.queue
Thread 16 Crashed:
0   libsystem_kernel.dylib        	       0x20e1da558 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x22f01f118 pthread_kill + 268
2   libsystem_c.dylib             	       0x1d67bf178 abort + 180
3   BGIM                          	       0x101f36db8 please_report_this_issue_in_github_realm_realm_core_v_13_17_1 + 11 (terminate.cpp:65)
4   BGIM                          	       0x101f36ff8 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>&) + 243 (terminate.cpp:143)
5   BGIM                          	       0x101f36ed8 realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&) + 267 (terminate.cpp:162)
6   BGIM                          	       0x101cb0494 void realm::util::terminate_with_info<unsigned long const&, unsigned long&, unsigned long>(char const*, int, char const*, char const*, unsigned long const&, unsigned long&, unsigned long&&) + 83 (terminate.hpp:52)
7   BGIM                          	       0x101f21aa8 realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long) + 515 (encrypted_file_mapping.cpp:657)
8   BGIM                          	       0x101f224ac realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long (*)(char const*), bool) + 175 (encrypted_file_mapping.cpp:987)
9   BGIM                          	       0x101ca5980 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 103 (file_mapper.hpp:144)
10  BGIM                          	       0x101ca57f0 realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
11  BGIM                          	       0x101ca57f0 realm::Allocator::translate_less_critical(realm::Allocator::RefTranslation*, unsigned long) const + 355 (alloc.cpp:156)
12  BGIM                          	       0x101cacbc8 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 47 (alloc.hpp:577) [inlined]
13  BGIM                          	       0x101cacbc8 realm::Allocator::translate(unsigned long) const + 67 (alloc.hpp:588) [inlined]
14  BGIM                          	       0x101cacbc8 realm::Array::init_from_ref(unsigned long) + 219 (array.hpp:112)
15  BGIM                          	       0x101cccea8 realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const + 139 (cluster.cpp:1042)
16  BGIM                          	       0x101e5f730 realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
17  BGIM                          	       0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
18  BGIM                          	       0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
19  BGIM                          	       0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
20  BGIM                          	       0x101e3c540 realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const + 35 (query.cpp:1372) [inlined]
21  BGIM                          	       0x101e3c540 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const + 35 (function_ref.hpp:106) [inlined]
22  BGIM                          	       0x101e3c540 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*) + 59 (function_ref.hpp:105)
23  BGIM                          	       0x101cd6744 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::operator()(realm::Cluster const*) const + 11 (function_ref.hpp:119) [inlined]
24  BGIM                          	       0x101cd6744 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 411 (cluster_tree.cpp:699)
25  BGIM                          	       0x101cd67e8 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 575 (cluster_tree.cpp:706)
26  BGIM                          	       0x101cd7698 realm::ClusterTree::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 95 (cluster_tree.cpp:1067)
27  BGIM                          	       0x101e39238 realm::Table::traverse_clusters(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 27 (table.hpp:327) [inlined]
28  BGIM                          	       0x101e39238 realm::Query::do_find_all(realm::QueryStateBase&) const + 771 (query.cpp:1380)
29  BGIM                          	       0x101f15e34 realm::TableView::do_sync() + 563 (table_view.cpp:493)
30  BGIM                          	       0x101e398c0 realm::Query::find_all(realm::DescriptorOrdering const&) const + 247 (query.cpp:1552)
31  BGIM                          	       0x101d92ba0 realm::Results::ensure_up_to_date(realm::Results::EvaluateMode) + 419 (results.cpp:301)
32  BGIM                          	       0x101d98638 unsigned long realm::Results::index_of<realm::Mixed>(realm::Mixed const&) + 67 (results.cpp:525)
33  BGIM                          	       0x101d984c8 unsigned long realm::Results::index_of<realm::Obj>(realm::Obj const&) + 131 (results.cpp:517)
34  BGIM                          	       0x101d988c0 realm::Results::index_of(realm::Query&&) + 87 (results.cpp:565)
35  BGIM                          	       0x101c820a4 -[RLMResults indexOfObjectWithPredicate:]::$_6::operator()() const + 91 (RLMResults.mm:204) [inlined]
36  BGIM                          	       0x101c820a4 auto translateCollectionError<-[RLMResults indexOfObjectWithPredicate:]::$_6>(-[RLMResults indexOfObjectWithPredicate:]::$_6&&, NSString*) + 91 (RLMResults_Private.hpp:60) [inlined]
37  BGIM                          	       0x101c820a4 auto translateErrors<-[RLMResults indexOfObjectWithPredicate:]::$_6>(-[RLMResults indexOfObjectWithPredicate:]::$_6&&) + 91 (RLMResults.mm:104) [inlined]
38  BGIM                          	       0x101c820a4 -[RLMResults indexOfObjectWithPredicate:] + 147 (RLMResults.mm:200)
39  BGIM                          	       0x101f82fc0 thunk for @escaping @callee_guaranteed (@unowned NSPredicate) -> (@unowned UInt) + 15 (<compiler-generated>:0) [inlined]
40  BGIM                          	       0x101f82fc0 RealmCollectionImpl.index(matching:) + 83 (RealmCollectionImpl.swift:63)
41  BGIM                          	       0x101f871a4 protocol witness for RealmCollection.index(matching:) in conformance List<A> + 47
42  BGIM                          	       0x101fc6838 RealmCollection.index(matching:_:) + 199 (RealmCollection.swift:993)
43  BGIM                          	       0x1025548f4 closure realm/realm-swift#1 in MessageDAO.getMessages(destination:direction:types:status:keyword:senderAccount:dateComponents:filterType:limit:completion:) + 1987 (MessageDAO.swift:370)
44  BGIM                          	       0x102553858 closure realm/realm-swift#2 in MessageDAO.getMessagesResults(destination:ascending:types:status:keyword:senderAccount:dateComponents:completion:) + 1939 (MessageDAO.swift:282)
45  BGIM                          	       0x10255cbbc partial apply for closure realm/realm-swift#2 in MessageDAO.getMessagesResults(destination:ascending:types:status:keyword:senderAccount:dateComponents:completion:) + 139 (<compiler-generated>:0)
46  BGIM                          	       0x102540ed8 specialized closure realm/realm-swift#1 in closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 623 (Storage.swift:284)
47  BGIM                          	       0x102540c48 specialized closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 95
48  BGIM                          	       0x102545aac partial apply for specialized closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 111
49  BGIM                          	       0x10217c0b8 thunk for @escaping @callee_guaranteed @Sendable () -> () + 27 (<compiler-generated>:0)
50  libdispatch.dylib             	       0x1d675d320 _dispatch_call_block_and_release + 32
51  libdispatch.dylib             	       0x1d675eeac _dispatch_client_callout + 20
52  libdispatch.dylib             	       0x1d6762330 _dispatch_continuation_pop + 504
53  libdispatch.dylib             	       0x1d6761998 _dispatch_async_redirect_invoke + 584
54  libdispatch.dylib             	       0x1d6770944 _dispatch_root_queue_drain + 396
55  libdispatch.dylib             	       0x1d6771158 _dispatch_worker_thread2 + 164
56  libsystem_pthread.dylib       	       0x22f018da0 _pthread_wqthread + 228
57  libsystem_pthread.dylib       	       0x22f018b7c start_wqthread + 8

Thread 17:
0   libsystem_pthread.dylib       	       0x22f018b74 start_wqthread + 0


Thread 16 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000000000000d   x5: 0x000000012d292000   x6: 0x0000000000001a00   x7: 0x0000000000000000
    x8: 0x861995ab68998027   x9: 0x861995aa07a17027  x10: 0x0000000000574800  x11: 0x0000000000bf3d01
   x12: 0x0000000000004009  x13: 0x000000012d290000  x14: 0x0000000000003fff  x15: 0x00000000c120a81c
   x16: 0x0000000000000148  x17: 0x000000016f38f000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000000000490f  x21: 0x000000016f38f0e0  x22: 0x000000016f38d580  x23: 0x000000016f38d580
   x24: 0x000000010347590c  x25: 0x0000000000000000  x26: 0x000000028326e270  x27: 0x0000000280279070
   x28: 0x0000000000004050   fp: 0x000000016f38d4c0   lr: 0x000000022f01f118
    sp: 0x000000016f38d4a0   pc: 0x000000020e1da558 cpsr: 0x40001000
   far: 0x0000000280160a00  esr: 0x56000080  Address size fault

Binary Images:
       0x100ecc000 -        0x1037b7fff BGIM arm64  <7ceb347a89a3376594a25de3354738b4> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/BGIM
       0x104258000 -        0x104267fff BGIMKit arm64  <f328f4e80fc93fbfa9a52c3a8eda31c9> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/BGIMKit.framework/BGIMKit
       0x104280000 -        0x1042abfff UnzipKit arm64  <5b6300a6e276332dad1faf0dca61f4a0> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/UnzipKit.framework/UnzipKit
       0x1042cc000 -        0x1042d7fff DateFoundation arm64  <6b765cbf17e0354098df0c154962a899> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/DateFoundation.framework/DateFoundation
       0x1042ec000 -        0x1043d3fff AWSCore arm64  <091155dba0db30a783673555d0a04659> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/AWSCore.framework/AWSCore
       0x104428000 -        0x1045dbfff AWSS3 arm64  <f9a845cc46f03149b7f56b1d8021b8da> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/AWSS3.framework/AWSS3
       0x104644000 -        0x10465bfff Logging_35C93DA702091ECE_PackageProduct arm64  <1d3f52e5b06f31c1a9c7edd4f08f0d60> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/Logging_35C93DA702091ECE_PackageProduct.framework/Logging_35C93DA702091ECE_PackageProduct
       0x104670000 -        0x104df7fff WebRTC arm64  <4c4c441355553144a1acee2ff44d8a4e> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/WebRTC.framework/WebRTC
       0x104f18000 -        0x104f23fff CustomLog arm64  <28509d549987300097b22818c97b7318> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/CustomLog.framework/CustomLog
       0x104f38000 -        0x104f7bfff UnrarKit arm64  <152c12e5e41a32b88fc076fceb872ece> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/UnrarKit.framework/UnrarKit
       0x104fc4000 -        0x1050b3fff NewRelic arm64  <a9f9b321f4ee3b7b80481e91c29bef95> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/NewRelic.framework/NewRelic
       0x10512c000 -        0x10518bfff ObjectiveCSupport arm64  <ddfec2542e4232029a1073d31539ecf3> /private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/ObjectiveCSupport.framework/ObjectiveCSupport
       0x105214000 -        0x10521ffff libobjc-trampolines.dylib arm64e  <695a8449aae838b6851cced0b1176f03> /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib
       0x1d0cf2000 -        0x1d12fdfff CoreGraphics arm64e  <f581dbd8d09f3d3ea2d6908234b58133> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
       0x1d07b3000 -        0x1d0b2cfff QuartzCore arm64e  <dd5e562e69cc3f21bfb8770b08f82fd9> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
       0x1d12fe000 -        0x1d2b22fff UIKitCore arm64e  <b3834960244b34e49ea0ca4bb44ef0f3> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x1cf28f000 -        0x1cf676fff CoreFoundation arm64e  <4230c12242e8383bbeecee7b61f8bb61> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x20a7aa000 -        0x20a7b2fff GraphicsServices arm64e  <e830ad84d6123b6b8de7ea61a786d132> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x1ee7d1000 -        0x1ee856a23 dyld arm64e  <6987370ac3853135a27f6731706bcbd8> /usr/lib/dyld
       0x22f018000 -        0x22f023ff3 libsystem_pthread.dylib arm64e  <56698309210a313797d414e4604b1117> /usr/lib/system/libsystem_pthread.dylib
       0x20e1d3000 -        0x20e20aff7 libsystem_kernel.dylib arm64e  <75da6452934e3f80b181d47074378e83> /usr/lib/system/libsystem_kernel.dylib
       0x1c954d000 -        0x1c9e2afff Foundation arm64e  <6e76dc9611af3b2eb71e215f9cc6e822> /System/Library/Frameworks/Foundation.framework/Foundation
       0x1dd8c9000 -        0x1dd955ff7 libc++.1.dylib arm64e  <ffa7a30db5203cda8a7f63c6cd922df9> /usr/lib/libc++.1.dylib
       0x1d02a0000 -        0x1d066bfff CFNetwork arm64e  <6aafe7c4f1c43020ad1670591c86d7b0> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
       0x1d67a2000 -        0x1d681fff3 libsystem_c.dylib arm64e  <3548f8ee7a073b678d699c7d42096513> /usr/lib/system/libsystem_c.dylib
       0x1d675b000 -        0x1d67a1fff libdispatch.dylib arm64e  <bb347f0ef21c360782e6c8d750fdbf8c> /usr/lib/system/libdispatch.dylib

EOF

Relevant thread stack:

3 BGIM 0x101f36db8 please_report_this_issue_in_github_realm_realm_core_v_13_17_1 + 11 (terminate.cpp:65)
4 BGIM 0x101f36ff8 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits, std::__1::allocator>&) + 243 (terminate.cpp:143)
5 BGIM 0x101f36ed8 realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_listrealm::util::Printable&&) + 267 (terminate.cpp:162)
6 BGIM 0x101cb0494 void realm::util::terminate_with_info<unsigned long const&, unsigned long&, unsigned long>(char const*, int, char const*, char const*, unsigned long const&, unsigned long&, unsigned long&&) + 83 (terminate.hpp:52)
7 BGIM 0x101f21aa8 realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long) + 515 (encrypted_file_mapping.cpp:657)
8 BGIM 0x101f224ac realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long ()(char const), bool) + 175 (encrypted_file_mapping.cpp:987)
9 BGIM 0x101ca5980 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long ()(char const), realm::util::EncryptedFileMapping*, bool) + 103 (file_mapper.hpp:144)
10 BGIM 0x101ca57f0 realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long ()(char const), bool) + 23 (file_mapper.hpp:116) [inlined]
11 BGIM 0x101ca57f0 realm::Allocator::translate_less_critical(realm::Allocator::RefTranslation*, unsigned long) const + 355 (alloc.cpp:156)
12 BGIM 0x101cacbc8 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 47 (alloc.hpp:577) [inlined]
13 BGIM 0x101cacbc8 realm::Allocator::translate(unsigned long) const + 67 (alloc.hpp:588) [inlined]
14 BGIM 0x101cacbc8 realm::Array::init_from_ref(unsigned long) + 219 (array.hpp:112)
15 BGIM 0x101cccea8 realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const + 139 (cluster.cpp:1042)
16 BGIM 0x101e5f730 realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
17 BGIM 0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
18 BGIM 0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
19 BGIM 0x101e3c328 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
20 BGIM 0x101e3c540 realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const + 35 (query.cpp:1372) [inlined]
21 BGIM 0x101e3c540 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const + 35 (function_ref.hpp:106) [inlined]
22 BGIM 0x101e3c540 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*) + 59 (function_ref.hpp:105)
23 BGIM 0x101cd6744 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::operator()(realm::Cluster const*) const + 11 (function_ref.hpp:119) [inlined]
24 BGIM 0x101cd6744 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 411 (cluster_tree.cpp:699)
25 BGIM 0x101cd67e8 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 575 (cluster_tree.cpp:706)
26 BGIM 0x101cd7698 realm::ClusterTree::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 95 (cluster_tree.cpp:1067)
27 BGIM 0x101e39238 realm::Table::traverse_clusters(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 27 (table.hpp:327) [inlined]
28 BGIM 0x101e39238 realm::Query::do_find_all(realm::QueryStateBase&) const + 771 (query.cpp:1380)
29 BGIM 0x101f15e34 realm::TableView::do_sync() + 563 (table_view.cpp:493)
30 BGIM 0x101e398c0 realm::Query::find_all(realm::DescriptorOrdering const&) const + 247 (query.cpp:1552)
31 BGIM 0x101d92ba0 realm::Results::ensure_up_to_date(realm::Results::EvaluateMode) + 419 (results.cpp:301)
32 BGIM 0x101d98638 unsigned long realm::Results::index_ofrealm::Mixed(realm::Mixed const&) + 67 (results.cpp:525)
33 BGIM 0x101d984c8 unsigned long realm::Results::index_ofrealm::Obj(realm::Obj const&) + 131 (results.cpp:517)
34 BGIM 0x101d988c0 realm::Results::index_of(realm::Query&&) + 87 (results.cpp:565)
35 BGIM 0x101c820a4 -[RLMResults indexOfObjectWithPredicate:]::$_6::operator()() const + 91 (RLMResults.mm:204) [inlined]
36 BGIM 0x101c820a4 auto translateCollectionError<-[RLMResults indexOfObjectWithPredicate:]::$6>(-[RLMResults indexOfObjectWithPredicate:]::$6&&, NSString*) + 91 (RLMResults_Private.hpp:60) [inlined]
37 BGIM 0x101c820a4 auto translateErrors<-[RLMResults indexOfObjectWithPredicate:]::$6>(-[RLMResults indexOfObjectWithPredicate:]::$6&&) + 91 (RLMResults.mm:104) [inlined]
38 BGIM 0x101c820a4 -[RLMResults indexOfObjectWithPredicate:] + 147 (RLMResults.mm:200)
39 BGIM 0x101f82fc0 thunk for https://github.com/escaping @callee_guaranteed (https://github.com/unowned NSPredicate) -> (https://github.com/unowned UInt) + 15 (:0) [inlined]
40 BGIM 0x101f82fc0 RealmCollectionImpl.index(matching:) + 83 (RealmCollectionImpl.swift:63)
41 BGIM 0x101f871a4 protocol witness for RealmCollection.index(matching:) in conformance List + 47
42 BGIM 0x101fc6838 RealmCollection.index(matching::) + 199 (RealmCollection.swift:993)

Steps & Code to Reproduce

    func getMessagesResults(destination: SessionDestination?,
                            ascending: Bool,
                            types: [MessageType]? = nil,
                            status: [MessageStatus]? = nil,
                            searchOptions: MessageSearchOptions = [],
                            senderAccount: String? = nil,
                            dateComponents: DateComponents? = nil,
                            completion: @escaping (Results<MessageObject>) -> Void) {
        let start = CFAbsoluteTimeGetCurrent()
#if os(macOS)
        let visiblePredicate = NSPredicate(
            format: "visibleTypeRawValue == %d OR visibleTypeRawValue == %d",
            MessageVisibleType.visibleMac.rawValue,
            MessageVisibleType.visibleAll.rawValue
        )
#elseif os(iOS)
        let visiblePredicate = NSPredicate(
            format: "visibleTypeRawValue == %d OR visibleTypeRawValue == %d",
            MessageVisibleType.visibleiOS.rawValue,
            MessageVisibleType.visibleAll.rawValue
        )
#endif
        var predicate = NSPredicate(format: "isUndecrypted == false") &&
            NSPredicate(format: "isDeleted == false") &&
            visiblePredicate
        
        if let types = types {
            predicate &= NSPredicate(
                format: "typeRawValue IN %@",
                types.map({ $0.rawValue })
            )
        } else if !searchOptions.isEmpty {
            predicate &= NSPredicate(
                format: "typeRawValue IN %@",
                MessageDAO.Constant.validSearchMessageTypeValues
            )
        } else {
            predicate &= NSPredicate(
                format: "typeRawValue IN %@ OR tip.typeRawValue == %d",
                MessageDAO.Constant.validMessageTypeValues,
                TipMessageType.tipForcedUrgency.rawValue
            )
        }
        if let status = status {
            predicate &= NSPredicate(
                format: "statusRawValue IN %@",
                status.map({ $0.rawValue })
            )
        }
        let sorterDirection: [Sorter] = ascending
        ? [.ascending("sendTime")]
        : [.descending("sendTime")]
        
        storage.query(
            MessageObject.self,
            filter: predicate,
            sorters: sorterDirection
        ) { realm, messages in
            var msgs = messages
            if let destination = destination {
                switch destination {
                case .peer(let string):
                    msgs = msgs.where {
                        $0.destinationTypeRawValue == destination._type.rawValue &&
                        ($0.senderAccount == string || $0.receiverAccount == string)
                    }
                case .group(let string):
                    msgs = msgs.where {
                        $0.destinationTypeRawValue == destination._type.rawValue &&
                        $0.receiverAccount == string
                    }
                case .unknown(let int):
                    fatalError("destination is unknown \(int)")
                }
            }

            let kPredicate: (String) -> NSPredicate = { keyword in
                var predicate =
                NSPredicate(format: "text.text CONTAINS[cd] %@", keyword) ||
                NSPredicate(format: "file.meta.name CONTAINS[cd] %@", keyword) ||
                NSPredicate(format: "location.name CONTAINS[cd] %@", keyword) ||
                NSPredicate(format: "multiforward.flattenTexts CONTAINS[cd] %@", keyword)
                let keyword_pinyin = keyword.splitedPinYin
                let firstPinyin = keyword_pinyin.components(separatedBy: " ").first ?? keyword_pinyin
                if !keyword_pinyin.isEmpty {
                    predicate = predicate || NSPredicate(
                        format: "file.meta.name_pinyin CONTAINS[cd] %@ AND file.meta.name_pinyin_separation CONTAINS[cd] %@",
                        keyword_pinyin,
                        firstPinyin.delimiter()
                    ) || NSPredicate(
                        format: "file.meta.name_letter CONTAINS[cd] %@",
                        keyword
                    )
                }
                return predicate
            }
            
            let xPredicate: ([String]) -> NSPredicate = { xids in
                return NSPredicate(format: "senderAccount IN %@", xids) || NSPredicate(
                    format: "ANY multiforward.flattenTextXids IN %@",
                    xids)
            }
            
            // use predicates directly rather than realm query, cause the nested collections operations not supported
//            $0.text.text.contains(keyword, options: .caseInsensitive) ||
//            $0.file.meta.name.contains(keyword, options: .caseInsensitive) ||
//            $0.location.name.contains(keyword, options: .caseInsensitive) ||
//            $0.multiforward.flattenTexts.contains(keyword, options: .caseInsensitive) ||
//            $0.senderAccount.in(xids) ||
//            $0.multiforward.flattenTextXids.containsAny(in: xids)
            
            if let keyword = searchOptions.keys,
               let xids = searchOptions.xids {
                msgs = msgs.filter(kPredicate(keyword) || xPredicate(xids))
            } else if let keyword = searchOptions.keys {
                msgs = msgs.filter(kPredicate(keyword))
            } else if let xids = searchOptions.xids {
                msgs = msgs.filter(xPredicate(xids))
            }

            // the searchOptions's xids means the keyword contained at the user related infomations, other the senderAccount is just the meaning as name says, notice the differences
            if let senderAccount = senderAccount,
               !senderAccount.isEmpty
            {
                msgs = msgs.filter(xPredicate([senderAccount]))
            }
            if let dateComponents = dateComponents,
               let startTime = Calendar.current.date(from: dateComponents)?.milliStamp
            {
                let endTime = startTime + 24 * 3600 * 1000
                msgs = msgs.where { $0.sendTime.contains(startTime...endTime) }
            }
            
            let end = CFAbsoluteTimeGetCurrent()
            print("耗时:\(end - start)")
            completion(msgs)
        }
    }
extension Storage {
    typealias WriteHandler = (Realm) -> Void
    
    typealias CompletionHandler = (Realm) -> Void
    
    func write(writeHandler: @escaping WriteHandler, completion: CompletionHandler? = nil) {
//        #if DEBUG
//        if Thread.current.isMainThread {
//            fatalError("")
//        }
//        #endif
        autoreleasepool {
            do {
                let realm = self.realm
                try realm.write {
                    writeHandler(realm)
                }
                if completion != nil {
                    completion?(realm)
                }
            } catch {
                log.error("write to database failed. error: \(error)")
                fatalError("write to database failed. error: \(error)")
            }
        }
    }
    
    func query<T: Object>(_ type: T.Type = T.self, filter: NSPredicate? = nil, sorters: [Sorter] = [], completion: @escaping (Realm, Results<T>) -> Void) {
        queryQueue.async {
            autoreleasepool {
                let realm = self.realm
                /*
                 ### Refreshing Realms
                 When you open a realm, it reflects the most recent successful write commit and remains on that version until it is refreshed. This means that the realm will not see changes that happened on another thread until the next refresh. A realm on the UI thread -- more precisely, on any event loop thread -- automatically refreshes itself at the beginning of that thread's loop. However, you must manually refresh realm instances that do not exist on loop threads or that have auto-refresh disabled.
                 */
//                realm.refresh()
                var results: Results<T>

                if let filter = filter {
                    results = realm.objects(type).filter(filter)
                } else {
                    results = realm.objects(type)
                }
                if !sorters.isEmpty {
                    results = results.sorted(by: sorters.map { RealmSwift.SortDescriptor(keyPath: $0.keyPath, ascending: $0.ascending) })
                }
                completion(realm, results)
            }
        }
    }
}
@ripplek
Copy link
Author

ripplek commented Oct 25, 2023


Full Report

(edited to hide this long extra debug info)

``` {"app_name":"BGIM","timestamp":"2023-10-25 12:39:09.00 +0800","app_version":"3.3.0","slice_uuid":"7ceb347a-89a3-3765-94a2-5de3354738b4","build_version":"30","platform":"2","bundleID":"voidtech.madtalk.bgim.user","share_with_app_devs":"0","is_first_party":"0","bug_type":"309","os_version":"iPhone OS 16.5.1 (20F770750d)","roots_installed":"0","name":"BGIM","incident_id":"D96C016B-07E1-42E6-A6DE-3028BE44F453"} { "uptime": 100000, "procRole": "Foreground", "version": 2, "userID": 501, "deployVersion": 210, "modelCode": "iPhone13,2", "coalitionID": 796, "osVersion": { "isEmbedded": true, "train": "iPhone OS 16.5.1", "releaseType": "User", "build": "20F770750d" }, "captureTime": "2023-10-25 12:39:08.2777 +0800", "incident": "D96C016B-07E1-42E6-A6DE-3028BE44F453", "pid": 15483, "cpuType": "ARM-64", "roots_installed": 0, "bug_type": "309", "procLaunch": "2023-10-25 12:35:08.3532 +0800", "procStartAbsTime": 2532887901199, "procExitAbsTime": 2534442759131, "procName": "BGIM", "procPath": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/BGIM", "bundleInfo": { "CFBundleShortVersionString": "3.3.0", "CFBundleVersion": "30", "CFBundleIdentifier": "voidtech.madtalk.bgim.user" }, "storeInfo": { "deviceIdentifierForVendor": "5F4F9177-FAA5-4675-98D1-6DB817F038EE", "thirdParty": true }, "parentProc": "launchd", "parentPid": 1, "coalitionName": "voidtech.madtalk.bgim.user", "crashReporterKey": "a873c1fe56e98ce827622394e617bb522a4072be", "wasUnlockedSinceBoot": 1, "isLocked": 0, "codeSigningID": "voidtech.madtalk.bgim.user", "codeSigningTeamID": "62VW83T5P8", "codeSigningFlags": 570434305, "codeSigningValidationCategory": 5, "codeSigningTrustLevel": 0, "basebandVersion": "3.70.01", "exception": { "codes": "0x0000000000000000, 0x0000000000000000", "rawCodes": [ 0, 0 ], "type": "EXC_CRASH", "signal": "SIGABRT" }, "asi": { "libsystem_c.dylib": [ "abort() called" ] }, "faultingThread": 16, "threads": [ { "id": 1127043, "queue": "com.apple.main-thread", "frames": [ { "imageOffset": 335344, "symbol": "argb32_sample_argb32", "symbolLocation": 832, "imageIndex": 13 }, { "imageOffset": 288784, "symbol": "argb32_image", "symbolLocation": 1164, "imageIndex": 13 }, { "imageOffset": 233688, "symbol": "ripl_Mark", "symbolLocation": 36, "imageIndex": 13 }, { "imageOffset": 312236, "symbol": "RIPLayerBltImage", "symbolLocation": 972, "imageIndex": 13 }, { "imageOffset": 269264, "symbol": "ripc_DrawImage", "symbolLocation": 908, "imageIndex": 13 }, { "imageOffset": 99564, "symbol": "CGContextDrawImageWithOptions", "symbolLocation": 1120, "imageIndex": 13 }, { "imageOffset": 166308, "symbol": "-[CALayer _renderForegroundInContext:]", "symbolLocation": 1620, "imageIndex": 14 }, { "imageOffset": 119436, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1200, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 128516, "symbol": "-[CALayer _renderSublayersInContext:]", "symbolLocation": 340, "imageIndex": 14 }, { "imageOffset": 119448, "symbol": "-[CALayer renderInContext:]", "symbolLocation": 1212, "imageIndex": 14 }, { "imageOffset": 13027092, "imageIndex": 0, "symbol": "specialized JXPhotoBrowserAnimatedTransitioning.snapshot(with:)", "symbolLocation": 191 }, { "imageOffset": 13024864, "imageIndex": 0, "symbol": "specialized JXPhotoBrowserAnimatedTransitioning.snapshot(with:)", "sourceFile": "JXPhotoBrowserFadeAnimator.swift", "sourceLine": 0, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 13024864, "imageIndex": 0, "symbol": "JXPhotoBrowserFadeAnimator.animateTransition(using:)", "sourceFile": "JXPhotoBrowserFadeAnimator.swift", "sourceLine": 30, "symbolLocation": 155 }, { "imageOffset": 13026388, "imageIndex": 0, "symbol": "@objc JXPhotoBrowserFadeAnimator.animateTransition(using:)", "sourceFile": "", "sourceLine": 0, "symbolLocation": 43 }, { "imageOffset": 8372776, "symbol": "___UIViewControllerTransitioningRunCustomTransition_block_invoke_3", "symbolLocation": 48, "imageIndex": 15 }, { "imageOffset": 2101564, "symbol": "+[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:]", "symbolLocation": 96, "imageIndex": 15 }, { "imageOffset": 2824692, "symbol": "___UIViewControllerTransitioningRunCustomTransition_block_invoke_2", "symbolLocation": 196, "imageIndex": 15 }, { "imageOffset": 2041344, "symbol": "+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]", "symbolLocation": 180, "imageIndex": 15 }, { "imageOffset": 2041020, "symbol": "_UIViewControllerTransitioningRunCustomTransition", "symbolLocation": 484, "imageIndex": 15 }, { "imageOffset": 2999804, "symbol": "-[UINavigationController _startCustomTransition:]", "symbolLocation": 2704, "imageIndex": 15 }, { "imageOffset": 1717524, "symbol": "-[UINavigationController _startDeferredTransitionIfNeeded:]", "symbolLocation": 496, "imageIndex": 15 }, { "imageOffset": 1715156, "symbol": "-[UINavigationController __viewWillLayoutSubviews]", "symbolLocation": 96, "imageIndex": 15 }, { "imageOffset": 1715000, "symbol": "-[UILayoutContainerView layoutSubviews]", "symbolLocation": 172, "imageIndex": 15 }, { "imageOffset": 19424, "symbol": "-[UIView(CALayerDelegate) layoutSublayersOfLayer:]", "symbolLocation": 1992, "imageIndex": 15 }, { "imageOffset": 41076, "symbol": "CA::Layer::layout_if_needed(CA::Transaction*)", "symbolLocation": 500, "imageIndex": 14 }, { "imageOffset": 120304, "symbol": "CA::Layer::layout_and_display_if_needed(CA::Transaction*)", "symbolLocation": 148, "imageIndex": 14 }, { "imageOffset": 191004, "symbol": "CA::Context::commit_transaction(CA::Transaction*, double, double*)", "symbolLocation": 444, "imageIndex": 14 }, { "imageOffset": 385012, "symbol": "CA::Transaction::commit()", "symbolLocation": 648, "imageIndex": 14 }, { "imageOffset": 294716, "symbol": "CA::Transaction::flush_as_runloop_observer(bool)", "symbolLocation": 88, "imageIndex": 14 }, { "imageOffset": 5233668, "symbol": "_UIApplicationFlushCATransaction", "symbolLocation": 52, "imageIndex": 15 }, { "imageOffset": 6612144, "symbol": "_UIUpdateSequenceRun", "symbolLocation": 84, "imageIndex": 15 }, { "imageOffset": 13315212, "symbol": "schedulerStepScheduledMainSection", "symbolLocation": 144, "imageIndex": 15 }, { "imageOffset": 13312488, "symbol": "runloopSourceCallback", "symbolLocation": 92, "imageIndex": 15 }, { "imageOffset": 864552, "symbol": "__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__", "symbolLocation": 28, "imageIndex": 16 }, { "imageOffset": 915380, "symbol": "__CFRunLoopDoSource0", "symbolLocation": 176, "imageIndex": 16 }, { "imageOffset": 411112, "symbol": "__CFRunLoopDoSources0", "symbolLocation": 244, "imageIndex": 16 }, { "imageOffset": 499924, "symbol": "__CFRunLoopRun", "symbolLocation": 828, "imageIndex": 16 }, { "imageOffset": 521196, "symbol": "CFRunLoopRunSpecific", "symbolLocation": 612, "imageIndex": 16 }, { "imageOffset": 4956, "symbol": "GSEventRunModal", "symbolLocation": 164, "imageIndex": 17 }, { "imageOffset": 3790568, "symbol": "-[UIApplication _run]", "symbolLocation": 888, "imageIndex": 15 }, { "imageOffset": 3789644, "symbol": "UIApplicationMain", "symbolLocation": 340, "imageIndex": 15 }, { "imageOffset": 710588, "imageIndex": 0, "symbol": "main", "sourceFile": "AppDelegate.swift", "sourceLine": 14, "symbolLocation": 63 }, { "imageOffset": 89580, "symbol": "start", "symbolLocation": 2220, "imageIndex": 18 } ] }, { "id": 1127762, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "id": 1127765, "name": "com.apple.uikit.eventfetch-thread", "frames": [ { "imageOffset": 3204, "symbol": "mach_msg2_trap", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 80724, "symbol": "mach_msg2_internal", "symbolLocation": 80, "imageIndex": 20 }, { "imageOffset": 81452, "symbol": "mach_msg_overwrite", "symbolLocation": 540, "imageIndex": 20 }, { "imageOffset": 4552, "symbol": "mach_msg", "symbolLocation": 24, "imageIndex": 20 }, { "imageOffset": 495652, "symbol": "__CFRunLoopServiceMachPort", "symbolLocation": 160, "imageIndex": 16 }, { "imageOffset": 500304, "symbol": "__CFRunLoopRun", "symbolLocation": 1208, "imageIndex": 16 }, { "imageOffset": 521196, "symbol": "CFRunLoopRunSpecific", "symbolLocation": 612, "imageIndex": 16 }, { "imageOffset": 270292, "symbol": "-[NSRunLoop(NSRunLoop) runMode:beforeDate:]", "symbolLocation": 212, "imageIndex": 21 }, { "imageOffset": 270012, "symbol": "-[NSRunLoop(NSRunLoop) runUntilDate:]", "symbolLocation": 64, "imageIndex": 21 }, { "imageOffset": 5047292, "symbol": "-[UIEventFetcher threadMain]", "symbolLocation": 416, "imageIndex": 15 }, { "imageOffset": 374084, "symbol": "__NSThread__start__", "symbolLocation": 716, "imageIndex": 21 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127768, "name": "Realm notification listener", "frames": [ { "imageOffset": 9660, "symbol": "kevent", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 15282800, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::listen()", "sourceFile": "external_commit_helper.cpp", "sourceLine": 219, "symbolLocation": 159 }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const", "sourceFile": "external_commit_helper.cpp", "sourceLine": 175, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "decltype(std::declval()()) std::__1::__invoke[abi:v160006](realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&)", "sourceFile": "invoke.h", "sourceLine": 394, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void std::__1::__thread_execute[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>)", "sourceFile": "thread", "sourceLine": 288, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void* std::__1::__thread_proxy[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*)", "sourceFile": "thread", "sourceLine": 299, "symbolLocation": 55 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127770, "name": "Realm notification listener", "frames": [ { "imageOffset": 9660, "symbol": "kevent", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 15282800, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::listen()", "sourceFile": "external_commit_helper.cpp", "sourceLine": 219, "symbolLocation": 159 }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const", "sourceFile": "external_commit_helper.cpp", "sourceLine": 175, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "decltype(std::declval()()) std::__1::__invoke[abi:v160006](realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&)", "sourceFile": "invoke.h", "sourceLine": 394, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void std::__1::__thread_execute[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>)", "sourceFile": "thread", "sourceLine": 288, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void* std::__1::__thread_proxy[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*)", "sourceFile": "thread", "sourceLine": 299, "symbolLocation": 55 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127771, "name": "Realm notification listener", "frames": [ { "imageOffset": 9660, "symbol": "kevent", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 15282800, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::listen()", "sourceFile": "external_commit_helper.cpp", "sourceLine": 219, "symbolLocation": 159 }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const", "sourceFile": "external_commit_helper.cpp", "sourceLine": 175, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "decltype(std::declval()()) std::__1::__invoke[abi:v160006](realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&)", "sourceFile": "invoke.h", "sourceLine": 394, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void std::__1::__thread_execute[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>)", "sourceFile": "thread", "sourceLine": 288, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void* std::__1::__thread_proxy[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*)", "sourceFile": "thread", "sourceLine": 299, "symbolLocation": 55 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127774, "frames": [ { "imageOffset": 5464, "symbol": "__psynch_cvwait", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 32888, "symbol": "_pthread_cond_wait", "symbolLocation": 1232, "imageIndex": 19 }, { "imageOffset": 77560, "symbol": "std::__1::condition_variable::wait(std::__1::unique_lock&)", "symbolLocation": 28, "imageIndex": 22 }, { "imageOffset": 584296, "symbol": "NewRelic::WorkQueue::task_thread()", "symbolLocation": 143, "imageIndex": 10 }, { "imageOffset": 586824, "imageIndex": 10, "symbol": "std::__1::__async_assoc_state>::__execute()", "symbolLocation": 47 }, { "imageOffset": 587192, "imageIndex": 10, "symbol": "void* std::__1::__thread_proxy[abi:v15006]>, void (std::__1::__async_assoc_state>::*)(), std::__1::__async_assoc_state>*>>(void*)", "symbolLocation": 71 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127775, "frames": [ { "imageOffset": 5464, "symbol": "__psynch_cvwait", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 32888, "symbol": "_pthread_cond_wait", "symbolLocation": 1232, "imageIndex": 19 }, { "imageOffset": 77560, "symbol": "std::__1::condition_variable::wait(std::__1::unique_lock&)", "symbolLocation": 28, "imageIndex": 22 }, { "imageOffset": 584296, "symbol": "NewRelic::WorkQueue::task_thread()", "symbolLocation": 143, "imageIndex": 10 }, { "imageOffset": 586824, "imageIndex": 10, "symbol": "std::__1::__async_assoc_state>::__execute()", "symbolLocation": 47 }, { "imageOffset": 587192, "imageIndex": 10, "symbol": "void* std::__1::__thread_proxy[abi:v15006]>, void (std::__1::__async_assoc_state>::*)(), std::__1::__async_assoc_state>*>>(void*)", "symbolLocation": 71 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127780, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "id": 1127782, "frames": [ { "imageOffset": 5464, "symbol": "__psynch_cvwait", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 32888, "symbol": "_pthread_cond_wait", "symbolLocation": 1232, "imageIndex": 19 }, { "imageOffset": 77560, "symbol": "std::__1::condition_variable::wait(std::__1::unique_lock&)", "symbolLocation": 28, "imageIndex": 22 }, { "imageOffset": 584296, "symbol": "NewRelic::WorkQueue::task_thread()", "symbolLocation": 143, "imageIndex": 10 }, { "imageOffset": 586824, "imageIndex": 10, "symbol": "std::__1::__async_assoc_state>::__execute()", "symbolLocation": 47 }, { "imageOffset": 587192, "imageIndex": 10, "symbol": "void* std::__1::__thread_proxy[abi:v15006]>, void (std::__1::__async_assoc_state>::*)(), std::__1::__async_assoc_state>*>>(void*)", "symbolLocation": 71 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127798, "name": "com.apple.NSURLConnectionLoader", "frames": [ { "imageOffset": 3204, "symbol": "mach_msg2_trap", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 80724, "symbol": "mach_msg2_internal", "symbolLocation": 80, "imageIndex": 20 }, { "imageOffset": 81452, "symbol": "mach_msg_overwrite", "symbolLocation": 540, "imageIndex": 20 }, { "imageOffset": 4552, "symbol": "mach_msg", "symbolLocation": 24, "imageIndex": 20 }, { "imageOffset": 495652, "symbol": "__CFRunLoopServiceMachPort", "symbolLocation": 160, "imageIndex": 16 }, { "imageOffset": 500304, "symbol": "__CFRunLoopRun", "symbolLocation": 1208, "imageIndex": 16 }, { "imageOffset": 521196, "symbol": "CFRunLoopRunSpecific", "symbolLocation": 612, "imageIndex": 16 }, { "imageOffset": 2463104, "imageIndex": 23 }, { "imageOffset": 374084, "symbol": "__NSThread__start__", "symbolLocation": 716, "imageIndex": 21 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127801, "name": "Realm notification listener", "frames": [ { "imageOffset": 7304, "symbol": "__psynch_mutexwait", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 8468, "symbol": "_pthread_mutex_firstfit_lock_wait", "symbolLocation": 84, "imageIndex": 19 }, { "imageOffset": 37656, "symbol": "_pthread_mutex_firstfit_lock_slow", "symbolLocation": 248, "imageIndex": 19 }, { "imageOffset": 17152140, "imageIndex": 0, "symbol": "realm::util::Mutex::lock()", "sourceFile": "thread.hpp", "sourceLine": 530, "symbolLocation": 7, "inline": "true" }, { "imageOffset": 17152140, "imageIndex": 0, "symbol": "realm::util::UniqueLock::UniqueLock(realm::util::Mutex&)", "sourceFile": "thread.hpp", "sourceLine": 579, "symbolLocation": 11, "inline": "true" }, { "imageOffset": 17152140, "imageIndex": 0, "symbol": "realm::util::UniqueLock::UniqueLock(realm::util::Mutex&)", "sourceFile": "thread.hpp", "sourceLine": 578, "symbolLocation": 11, "inline": "true" }, { "imageOffset": 17152140, "imageIndex": 0, "symbol": "realm::util::encryption_mark_pages_for_IV_check(realm::util::EncryptedFileMapping*)", "sourceFile": "file_mapper.cpp", "sourceLine": 331, "symbolLocation": 39 }, { "imageOffset": 14539980, "imageIndex": 0, "symbol": "realm::SlabAlloc::schedule_refresh_of_outdated_encrypted_pages()", "sourceFile": "alloc_slab.cpp", "sourceLine": 1337, "symbolLocation": 35 }, { "imageOffset": 14537184, "imageIndex": 0, "symbol": "realm::SlabAlloc::update_reader_view(unsigned long)", "sourceFile": "alloc_slab.cpp", "sourceLine": 1211, "symbolLocation": 119 }, { "imageOffset": 15280056, "imageIndex": 0, "symbol": "bool realm::Transaction::internal_advance_read(realm::_impl::NullInstructionObserver*, realm::VersionID, realm::_impl::History&, bool)", "sourceFile": "transaction.hpp", "sourceLine": 487, "symbolLocation": 131 }, { "imageOffset": 15279632, "imageIndex": 0, "symbol": "void realm::Transaction::advance_read(realm::_impl::NullInstructionObserver*, realm::VersionID)", "sourceFile": "transaction.hpp", "sourceLine": 350, "symbolLocation": 107 }, { "imageOffset": 15390904, "imageIndex": 0, "symbol": "realm::Transaction::advance_read(realm::VersionID)", "sourceFile": "transaction.hpp", "sourceLine": 75, "symbolLocation": 7, "inline": "true" }, { "imageOffset": 15390904, "imageIndex": 0, "symbol": "realm::_impl::ResultsNotifier::do_prepare_handover(realm::Transaction&)", "sourceFile": "results_notifier.cpp", "sourceLine": 193, "symbolLocation": 79 }, { "imageOffset": 15319028, "imageIndex": 0, "symbol": "realm::_impl::CollectionNotifier::prepare_handover()", "sourceFile": "collection_notifier.cpp", "sourceLine": 292, "symbolLocation": 47 }, { "imageOffset": 15370288, "imageIndex": 0, "symbol": "realm::_impl::RealmCoordinator::run_async_notifiers()", "sourceFile": "realm_coordinator.cpp", "sourceLine": 1024, "symbolLocation": 1583 }, { "imageOffset": 15368608, "imageIndex": 0, "symbol": "realm::_impl::RealmCoordinator::on_change()", "sourceFile": "realm_coordinator.cpp", "sourceLine": 872, "symbolLocation": 67 }, { "imageOffset": 15282844, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::listen()", "sourceFile": "external_commit_helper.cpp", "sourceLine": 234, "symbolLocation": 203 }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const", "sourceFile": "external_commit_helper.cpp", "sourceLine": 175, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "decltype(std::declval()()) std::__1::__invoke[abi:v160006](realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&)", "sourceFile": "invoke.h", "sourceLine": 394, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void std::__1::__thread_execute[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>)", "sourceFile": "thread", "sourceLine": 288, "symbolLocation": 3, "inline": "true" }, { "imageOffset": 15283188, "imageIndex": 0, "symbol": "void* std::__1::__thread_proxy[abi:v160006]>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*)", "sourceFile": "thread", "sourceLine": 299, "symbolLocation": 55 }, { "imageOffset": 5816, "symbol": "_pthread_start", "symbolLocation": 148, "imageIndex": 19 }, { "imageOffset": 2952, "symbol": "thread_start", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127813, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "id": 1127936, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "id": 1127937, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "id": 1127938, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] }, { "triggered": true, "id": 1127942, "threadState": { "x": [ { "value": 0 }, { "value": 0 }, { "value": 0 }, { "value": 0 }, { "value": 13 }, { "value": 5052637184 }, { "value": 6656 }, { "value": 0 }, { "value": 9662919038926946343 }, { "value": 9662919033005109287 }, { "value": 5720064 }, { "value": 12532993 }, { "value": 16393 }, { "value": 5052628992 }, { "value": 16383 }, { "value": 3240142876 }, { "value": 328 }, { "value": 6160969728 }, { "value": 0 }, { "value": 6 }, { "value": 18703 }, { "value": 6160969952 }, { "value": 6160962944 }, { "value": 6160962944 }, { "value": 4349974796 }, { "value": 0 }, { "value": 10790298224 }, { "value": 10740011120 }, { "value": 16464 } ], "flavor": "ARM_THREAD_STATE64", "lr": { "value": 9378591000 }, "cpsr": { "value": 1073745920 }, "fp": { "value": 6160962752 }, "sp": { "value": 6160962720 }, "esr": { "value": 1442840704, "description": " Address size fault" }, "pc": { "value": 8826758488, "matchesCrashFrame": 1 }, "far": { "value": 10738862592 } }, "queue": "cc.sks.ximsdk.storage.query.queue", "frames": [ { "imageOffset": 30040, "symbol": "__pthread_kill", "symbolLocation": 8, "imageIndex": 20 }, { "imageOffset": 28952, "symbol": "pthread_kill", "symbolLocation": 268, "imageIndex": 19 }, { "imageOffset": 119160, "symbol": "abort", "symbolLocation": 180, "imageIndex": 24 }, { "imageOffset": 17214904, "imageIndex": 0, "symbol": "please_report_this_issue_in_github_realm_realm_core_v_13_17_1", "sourceFile": "terminate.cpp", "sourceLine": 65, "symbolLocation": 11 }, { "imageOffset": 17215480, "imageIndex": 0, "symbol": "realm::util::terminate_internal(std::__1::basic_stringstream, std::__1::allocator>&)", "sourceFile": "terminate.cpp", "sourceLine": 143, "symbolLocation": 243 }, { "imageOffset": 17215192, "imageIndex": 0, "symbol": "realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list&&)", "sourceFile": "terminate.cpp", "sourceLine": 162, "symbolLocation": 267 }, { "imageOffset": 14566548, "imageIndex": 0, "symbol": "void realm::util::terminate_with_info(char const*, int, char const*, char const*, unsigned long const&, unsigned long&, unsigned long&&)", "sourceFile": "terminate.hpp", "sourceLine": 52, "symbolLocation": 83 }, { "imageOffset": 17128104, "imageIndex": 0, "symbol": "realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long)", "sourceFile": "encrypted_file_mapping.cpp", "sourceLine": 657, "symbolLocation": 515 }, { "imageOffset": 17130668, "imageIndex": 0, "symbol": "realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long (*)(char const*), bool)", "sourceFile": "encrypted_file_mapping.cpp", "sourceLine": 987, "symbolLocation": 175 }, { "imageOffset": 14522752, "imageIndex": 0, "symbol": "realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool)", "sourceFile": "file_mapper.hpp", "sourceLine": 144, "symbolLocation": 103 }, { "imageOffset": 14522352, "imageIndex": 0, "symbol": "realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool)", "sourceFile": "file_mapper.hpp", "sourceLine": 116, "symbolLocation": 23, "inline": "true" }, { "imageOffset": 14522352, "imageIndex": 0, "symbol": "realm::Allocator::translate_less_critical(realm::Allocator::RefTranslation*, unsigned long) const", "sourceFile": "alloc.cpp", "sourceLine": 156, "symbolLocation": 355 }, { "imageOffset": 14552008, "imageIndex": 0, "symbol": "realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const", "sourceFile": "alloc.hpp", "sourceLine": 577, "symbolLocation": 47, "inline": "true" }, { "imageOffset": 14552008, "imageIndex": 0, "symbol": "realm::Allocator::translate(unsigned long) const", "sourceFile": "alloc.hpp", "sourceLine": 588, "symbolLocation": 67, "inline": "true" }, { "imageOffset": 14552008, "imageIndex": 0, "symbol": "realm::Array::init_from_ref(unsigned long)", "sourceFile": "array.hpp", "sourceLine": 112, "symbolLocation": 219 }, { "imageOffset": 14683816, "imageIndex": 0, "symbol": "realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const", "sourceFile": "cluster.cpp", "sourceLine": 1042, "symbolLocation": 139 }, { "imageOffset": 16332592, "imageIndex": 0, "symbol": "realm::OrNode::cluster_changed()", "sourceFile": "query_engine.hpp", "sourceLine": 1996, "symbolLocation": 47 }, { "imageOffset": 16188200, "imageIndex": 0, "symbol": "realm::ParentNode::set_cluster(realm::Cluster const*)", "sourceFile": "query_engine.hpp", "sourceLine": 180, "symbolLocation": 31 }, { "imageOffset": 16188200, "imageIndex": 0, "symbol": "realm::ParentNode::set_cluster(realm::Cluster const*)", "sourceFile": "query_engine.hpp", "sourceLine": 180, "symbolLocation": 31 }, { "imageOffset": 16188200, "imageIndex": 0, "symbol": "realm::ParentNode::set_cluster(realm::Cluster const*)", "sourceFile": "query_engine.hpp", "sourceLine": 180, "symbolLocation": 31 }, { "imageOffset": 16188736, "imageIndex": 0, "symbol": "realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const", "sourceFile": "query.cpp", "sourceLine": 1372, "symbolLocation": 35, "inline": "true" }, { "imageOffset": 16188736, "imageIndex": 0, "symbol": "realm::util::FunctionRef::FunctionRef(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const", "sourceFile": "function_ref.hpp", "sourceLine": 106, "symbolLocation": 35, "inline": "true" }, { "imageOffset": 16188736, "imageIndex": 0, "symbol": "realm::util::FunctionRef::FunctionRef(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*)", "sourceFile": "function_ref.hpp", "sourceLine": 105, "symbolLocation": 59 }, { "imageOffset": 14722884, "imageIndex": 0, "symbol": "realm::util::FunctionRef::operator()(realm::Cluster const*) const", "sourceFile": "function_ref.hpp", "sourceLine": 119, "symbolLocation": 11, "inline": "true" }, { "imageOffset": 14722884, "imageIndex": 0, "symbol": "realm::ClusterNodeInner::traverse(realm::util::FunctionRef, long long) const", "sourceFile": "cluster_tree.cpp", "sourceLine": 699, "symbolLocation": 411 }, { "imageOffset": 14723048, "imageIndex": 0, "symbol": "realm::ClusterNodeInner::traverse(realm::util::FunctionRef, long long) const", "sourceFile": "cluster_tree.cpp", "sourceLine": 706, "symbolLocation": 575 }, { "imageOffset": 14726808, "imageIndex": 0, "symbol": "realm::ClusterTree::traverse(realm::util::FunctionRef) const", "sourceFile": "cluster_tree.cpp", "sourceLine": 1067, "symbolLocation": 95 }, { "imageOffset": 16175672, "imageIndex": 0, "symbol": "realm::Table::traverse_clusters(realm::util::FunctionRef) const", "sourceFile": "table.hpp", "sourceLine": 327, "symbolLocation": 27, "inline": "true" }, { "imageOffset": 16175672, "imageIndex": 0, "symbol": "realm::Query::do_find_all(realm::QueryStateBase&) const", "sourceFile": "query.cpp", "sourceLine": 1380, "symbolLocation": 771 }, { "imageOffset": 17079860, "imageIndex": 0, "symbol": "realm::TableView::do_sync()", "sourceFile": "table_view.cpp", "sourceLine": 493, "symbolLocation": 563 }, { "imageOffset": 16177344, "imageIndex": 0, "symbol": "realm::Query::find_all(realm::DescriptorOrdering const&) const", "sourceFile": "query.cpp", "sourceLine": 1552, "symbolLocation": 247 }, { "imageOffset": 15494048, "imageIndex": 0, "symbol": "realm::Results::ensure_up_to_date(realm::Results::EvaluateMode)", "sourceFile": "results.cpp", "sourceLine": 301, "symbolLocation": 419 }, { "imageOffset": 15517240, "imageIndex": 0, "symbol": "unsigned long realm::Results::index_of(realm::Mixed const&)", "sourceFile": "results.cpp", "sourceLine": 525, "symbolLocation": 67 }, { "imageOffset": 15516872, "imageIndex": 0, "symbol": "unsigned long realm::Results::index_of(realm::Obj const&)", "sourceFile": "results.cpp", "sourceLine": 517, "symbolLocation": 131 }, { "imageOffset": 15517888, "imageIndex": 0, "symbol": "realm::Results::index_of(realm::Query&&)", "sourceFile": "results.cpp", "sourceLine": 565, "symbolLocation": 87 }, { "imageOffset": 14377124, "imageIndex": 0, "symbol": "-[RLMResults indexOfObjectWithPredicate:]::$_6::operator()() const", "sourceFile": "RLMResults.mm", "sourceLine": 204, "symbolLocation": 91, "inline": "true" }, { "imageOffset": 14377124, "imageIndex": 0, "symbol": "auto translateCollectionError<-[RLMResults indexOfObjectWithPredicate:]::$_6>(-[RLMResults indexOfObjectWithPredicate:]::$_6&&, NSString*)", "sourceFile": "RLMResults_Private.hpp", "sourceLine": 60, "symbolLocation": 91, "inline": "true" }, { "imageOffset": 14377124, "imageIndex": 0, "symbol": "auto translateErrors<-[RLMResults indexOfObjectWithPredicate:]::$_6>(-[RLMResults indexOfObjectWithPredicate:]::$_6&&)", "sourceFile": "RLMResults.mm", "sourceLine": 104, "symbolLocation": 91, "inline": "true" }, { "imageOffset": 14377124, "imageIndex": 0, "symbol": "-[RLMResults indexOfObjectWithPredicate:]", "sourceFile": "RLMResults.mm", "sourceLine": 200, "symbolLocation": 147 }, { "imageOffset": 17526720, "imageIndex": 0, "symbol": "thunk for @escaping @callee_guaranteed (@unowned NSPredicate) -> (@unowned UInt)", "sourceFile": "", "sourceLine": 0, "symbolLocation": 15, "inline": "true" }, { "imageOffset": 17526720, "imageIndex": 0, "symbol": "RealmCollectionImpl.index(matching:)", "sourceFile": "RealmCollectionImpl.swift", "sourceLine": 63, "symbolLocation": 83 }, { "imageOffset": 17543588, "imageIndex": 0, "symbol": "protocol witness for RealmCollection.index(matching:) in conformance List", "symbolLocation": 47 }, { "imageOffset": 17803320, "imageIndex": 0, "symbol": "RealmCollection.index(matching:_:)", "sourceFile": "RealmCollection.swift", "sourceLine": 993, "symbolLocation": 199 }, { "imageOffset": 23628020, "imageIndex": 0, "symbol": "closure realm/realm-swift#1 in MessageDAO.getMessages(destination:direction:types:status:keyword:senderAccount:dateComponents:filterType:limit:completion:)", "sourceFile": "MessageDAO.swift", "sourceLine": 370, "symbolLocation": 1987 }, { "imageOffset": 23623768, "imageIndex": 0, "symbol": "closure realm/realm-swift#2 in MessageDAO.getMessagesResults(destination:ascending:types:status:keyword:senderAccount:dateComponents:completion:)", "sourceFile": "MessageDAO.swift", "sourceLine": 282, "symbolLocation": 1939 }, { "imageOffset": 23661500, "imageIndex": 0, "symbol": "partial apply for closure realm/realm-swift#2 in MessageDAO.getMessagesResults(destination:ascending:types:status:keyword:senderAccount:dateComponents:completion:)", "sourceFile": "", "sourceLine": 0, "symbolLocation": 139 }, { "imageOffset": 23547608, "imageIndex": 0, "symbol": "specialized closure realm/realm-swift#1 in closure realm/realm-swift#1 in Storage.query(_:filter:sorters:completion:)", "sourceFile": "Storage.swift", "sourceLine": 284, "symbolLocation": 623 }, { "imageOffset": 23546952, "imageIndex": 0, "symbol": "specialized closure realm/realm-swift#1 in Storage.query(_:filter:sorters:completion:)", "symbolLocation": 95 }, { "imageOffset": 23567020, "imageIndex": 0, "symbol": "partial apply for specialized closure realm/realm-swift#1 in Storage.query(_:filter:sorters:completion:)", "symbolLocation": 111 }, { "imageOffset": 19595448, "imageIndex": 0, "symbol": "thunk for @escaping @callee_guaranteed @sendable () -> ()", "sourceFile": "", "sourceLine": 0, "symbolLocation": 27 }, { "imageOffset": 8992, "symbol": "_dispatch_call_block_and_release", "symbolLocation": 32, "imageIndex": 25 }, { "imageOffset": 16044, "symbol": "_dispatch_client_callout", "symbolLocation": 20, "imageIndex": 25 }, { "imageOffset": 29488, "symbol": "_dispatch_continuation_pop", "symbolLocation": 504, "imageIndex": 25 }, { "imageOffset": 27032, "symbol": "_dispatch_async_redirect_invoke", "symbolLocation": 584, "imageIndex": 25 }, { "imageOffset": 88388, "symbol": "_dispatch_root_queue_drain", "symbolLocation": 396, "imageIndex": 25 }, { "imageOffset": 90456, "symbol": "_dispatch_worker_thread2", "symbolLocation": 164, "imageIndex": 25 }, { "imageOffset": 3488, "symbol": "_pthread_wqthread", "symbolLocation": 228, "imageIndex": 19 }, { "imageOffset": 2940, "symbol": "start_wqthread", "symbolLocation": 8, "imageIndex": 19 } ] }, { "id": 1127943, "frames": [ { "imageOffset": 2932, "symbol": "start_wqthread", "symbolLocation": 0, "imageIndex": 19 } ] } ], "usedImages": [ { "source": "P", "arch": "arm64", "base": 4310482944, "size": 42909696, "uuid": "7ceb347a-89a3-3765-94a2-5de3354738b4", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/BGIM", "name": "BGIM" }, { "source": "P", "arch": "arm64", "base": 4364533760, "size": 65536, "uuid": "f328f4e8-0fc9-3fbf-a9a5-2c3a8eda31c9", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/BGIMKit.framework/BGIMKit", "name": "BGIMKit" }, { "source": "P", "arch": "arm64", "base": 4364697600, "size": 180224, "uuid": "5b6300a6-e276-332d-ad1f-af0dca61f4a0", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/UnzipKit.framework/UnzipKit", "name": "UnzipKit" }, { "source": "P", "arch": "arm64", "base": 4365008896, "size": 49152, "uuid": "6b765cbf-17e0-3540-98df-0c154962a899", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/DateFoundation.framework/DateFoundation", "name": "DateFoundation" }, { "source": "P", "arch": "arm64", "base": 4365139968, "size": 950272, "uuid": "091155db-a0db-30a7-8367-3555d0a04659", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/AWSCore.framework/AWSCore", "name": "AWSCore" }, { "source": "P", "arch": "arm64", "base": 4366434304, "size": 1785856, "uuid": "f9a845cc-46f0-3149-b7f5-6b1d8021b8da", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/AWSS3.framework/AWSS3", "name": "AWSS3" }, { "source": "P", "arch": "arm64", "base": 4368646144, "size": 98304, "uuid": "1d3f52e5-b06f-31c1-a9c7-edd4f08f0d60", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/Logging_35C93DA702091ECE_PackageProduct.framework/Logging_35C93DA702091ECE_PackageProduct", "name": "Logging_35C93DA702091ECE_PackageProduct" }, { "source": "P", "arch": "arm64", "base": 4368826368, "size": 7897088, "uuid": "4c4c4413-5555-3144-a1ac-ee2ff44d8a4e", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/WebRTC.framework/WebRTC", "name": "WebRTC" }, { "source": "P", "arch": "arm64", "base": 4377903104, "size": 49152, "uuid": "28509d54-9987-3000-97b2-2818c97b7318", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/CustomLog.framework/CustomLog", "name": "CustomLog" }, { "source": "P", "arch": "arm64", "base": 4378034176, "size": 278528, "uuid": "152c12e5-e41a-32b8-8fc0-76fceb872ece", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/UnrarKit.framework/UnrarKit", "name": "UnrarKit" }, { "source": "P", "arch": "arm64", "base": 4378607616, "size": 983040, "uuid": "a9f9b321-f4ee-3b7b-8048-1e91c29bef95", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/NewRelic.framework/NewRelic", "name": "NewRelic" }, { "source": "P", "arch": "arm64", "base": 4380082176, "size": 393216, "uuid": "ddfec254-2e42-3202-9a10-73d31539ecf3", "path": "/private/var/containers/Bundle/Application/0EACE744-2832-4C27-BE19-E2E1733F6636/BGIM.app/Frameworks/ObjectiveCSupport.framework/ObjectiveCSupport", "name": "ObjectiveCSupport" }, { "source": "P", "arch": "arm64e", "base": 4381032448, "size": 49152, "uuid": "695a8449-aae8-38b6-851c-ced0b1176f03", "path": "/private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib", "name": "libobjc-trampolines.dylib" }, { "source": "P", "arch": "arm64e", "base": 7798202368, "size": 6340608, "uuid": "f581dbd8-d09f-3d3e-a2d6-908234b58133", "path": "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics", "name": "CoreGraphics" }, { "source": "P", "arch": "arm64e", "base": 7792701440, "size": 3645440, "uuid": "dd5e562e-69cc-3f21-bfb8-770b08f82fd9", "path": "/System/Library/Frameworks/QuartzCore.framework/QuartzCore", "name": "QuartzCore" }, { "source": "P", "arch": "arm64e", "base": 7804542976, "size": 25317376, "uuid": "b3834960-244b-34e4-9ea0-ca4bb44ef0f3", "path": "/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore", "name": "UIKitCore" }, { "source": "P", "arch": "arm64e", "base": 7770533888, "size": 4096000, "uuid": "4230c122-42e8-383b-beec-ee7b61f8bb61", "path": "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation", "name": "CoreFoundation" }, { "source": "P", "arch": "arm64e", "base": 8765743104, "size": 36864, "uuid": "e830ad84-d612-3b6b-8de7-ea61a786d132", "path": "/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices", "name": "GraphicsServices" }, { "source": "P", "arch": "arm64e", "base": 8296140800, "size": 547364, "uuid": "6987370a-c385-3135-a27f-6731706bcbd8", "path": "/usr/lib/dyld", "name": "dyld" }, { "source": "P", "arch": "arm64e", "base": 9378562048, "size": 49140, "uuid": "56698309-210a-3137-97d4-14e4604b1117", "path": "/usr/lib/system/libsystem_pthread.dylib", "name": "libsystem_pthread.dylib" }, { "source": "P", "arch": "arm64e", "base": 8826728448, "size": 229368, "uuid": "75da6452-934e-3f80-b181-d47074378e83", "path": "/usr/lib/system/libsystem_kernel.dylib", "name": "libsystem_kernel.dylib" }, { "source": "P", "arch": "arm64e", "base": 7672745984, "size": 9297920, "uuid": "6e76dc96-11af-3b2e-b71e-215f9cc6e822", "path": "/System/Library/Frameworks/Foundation.framework/Foundation", "name": "Foundation" }, { "source": "P", "arch": "arm64e", "base": 8011943936, "size": 577528, "uuid": "ffa7a30d-b520-3cda-8a7f-63c6cd922df9", "path": "/usr/lib/libc++.1.dylib", "name": "libc++.1.dylib" }, { "source": "P", "arch": "arm64e", "base": 7787380736, "size": 3981312, "uuid": "6aafe7c4-f1c4-3020-ad16-70591c86d7b0", "path": "/System/Library/Frameworks/CFNetwork.framework/CFNetwork", "name": "CFNetwork" }, { "source": "P", "arch": "arm64e", "base": 7893295104, "size": 516084, "uuid": "3548f8ee-7a07-3b67-8d69-9c7d42096513", "path": "/usr/lib/system/libsystem_c.dylib", "name": "libsystem_c.dylib" }, { "source": "P", "arch": "arm64e", "base": 7893004288, "size": 290816, "uuid": "bb347f0e-f21c-3607-82e6-c8d750fdbf8c", "path": "/usr/lib/system/libdispatch.dylib", "name": "libdispatch.dylib" } ], "sharedCache": { "base": 7652933632, "size": 3031154688, "uuid": "59864497-b964-3b13-9d72-9b941d914026" }, "vmSummary": "ReadOnly portion of Libraries: Total=982.8M resident=0K(0%) swapped_out_or_unallocated=982.8M(100%)\nWritable regions: Total=904.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=904.5M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 128K 1 \nActivity Tracing 256K 1 \nCG image 11.4M 1 \nCG raster data 12.1M 35 \nColorSync 432K 24 \nCoreAnimation 1968K 74 \nCoreData 384K 1 \nCoreData Object IDs 4112K 2 \nCoreUI image data 544K 2 \nFoundation 16K 1 \nImage IO 48K 1 \nKernel Alloc Once 32K 1 \nMALLOC 617.0M 321 \nMALLOC guard page 192K 12 \nSQLite page cache 384K 3 \nSTACK GUARD 288K 18 \nStack 10.0M 18 \nVM_ALLOCATE 448.0M 11 \n__AUTH 1935K 195 \n__AUTH_CONST 24.8M 548 \n__CTF 824 1 \n__DATA 14.5M 557 \n__DATA_CONST 29.6M 559 \n__DATA_DIRTY 6586K 514 \n__FONT_DATA 2352 1 \n__INFO_FILTER 8 1 \n__LINKEDIT 324.4M 14 \n__OBJC_RO 79.8M 1 \n__OBJC_RW 2464K 1 \n__TEXT 658.3M 575 \ndyld private memory 272K 1 \nlibnetwork 1664K 24 \nmapped file 472.7M 514 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 2.7G 4036 \n", "legacyInfo": { "threadTriggered": { "queue": "cc.sks.ximsdk.storage.query.queue" } }, "logWritingSignature": "5343f60836cb81832f5d8ad55573ad7e39125b7c", "trialInfo": { "rollouts": [ { "rolloutId": "60da5e84ab0ca017dace9abf", "factorPackIds": {}, "deploymentId": 240000008 }, { "rolloutId": "645c2d2f9e69a025b0a37e29", "factorPackIds": {}, "deploymentId": 240000003 } ], "experiments": [] } } ```

@jedelbo
Copy link
Contributor

jedelbo commented Oct 25, 2023

Assertion on encrypted_file_mapping.cpp:657. @finnschiermer what does this suggest?

@ripplek
Copy link
Author

ripplek commented Dec 5, 2023

And another
(stacks from all threads in details)

Incident Identifier: C3B9DD00-5F6F-4F6A-85F6-A736D14EAC21
CrashReporter Key:   a873c1fe56e98ce827622394e617bb522a4072be
Hardware Model:      iPhone13,2
Process:             BGIM [34882]
Path:                /private/var/containers/Bundle/Application/F3199892-D679-4C15-8971-48B16CC99DFF/BGIM.app/BGIM
Identifier:          voidtech.madtalk.bgim.user
Version:             3.3.1 (54)
AppStoreTools:       15A240a
AppVariant:          1:iPhone13,2:15
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           voidtech.madtalk.bgim.user [846]

Date/Time:           2023-12-05 10:18:52.1564 +0800
Launch Time:         2023-12-05 09:28:01.8640 +0800
OS Version:          iPhone OS 16.5.1 (20F770750d)
Release Type:        User
Baseband Version:    3.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  6

Application Specific Information:
abort() called


Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib        	       0x210584c88 __psynch_mutexwait + 8
1   libsystem_pthread.dylib       	       0x2313ca114 _pthread_mutex_firstfit_lock_wait + 84
2   libsystem_pthread.dylib       	       0x2313d1318 _pthread_mutex_firstfit_lock_slow + 248
3   BGIM                          	       0x10160a878 realm::util::Mutex::lock() + 7 (thread.hpp:530) [inlined]
4   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:579) [inlined]
5   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:578) [inlined]
6   BGIM                          	       0x10160a878 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 67 (file_mapper.hpp:143)
7   BGIM                          	       0x1016236b0 realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
8   BGIM                          	       0x1016236b0 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 23 (alloc.hpp:570) [inlined]
9   BGIM                          	       0x1016236b0 realm::Allocator::translate(unsigned long) const + 99 (alloc.hpp:588) [inlined]
10  BGIM                          	       0x1016236b0 realm::ArrayString::init_from_ref(unsigned long) + 251 (array_string.hpp:87)
11  BGIM                          	       0x101631dc4 realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const + 139 (cluster.cpp:1042)
12  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
13  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
14  BGIM                          	       0x1017a145c realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const + 35 (query.cpp:1372) [inlined]
15  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const + 35 (function_ref.hpp:106) [inlined]
16  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*) + 59 (function_ref.hpp:105)
17  BGIM                          	       0x10163c590 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::operator()(realm::Cluster const*) const + 11 (function_ref.hpp:119) [inlined]
18  BGIM                          	       0x10163c590 realm::ClusterTree::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 59 (cluster_tree.cpp:1064)
19  BGIM                          	       0x10179e154 realm::Table::traverse_clusters(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 27 (table.hpp:327) [inlined]
20  BGIM                          	       0x10179e154 realm::Query::do_find_all(realm::QueryStateBase&) const + 771 (query.cpp:1380)
21  BGIM                          	       0x10187ad50 realm::TableView::do_sync() + 563 (table_view.cpp:493)
22  BGIM                          	       0x10179e7dc realm::Query::find_all(realm::DescriptorOrdering const&) const + 247 (query.cpp:1552)
23  BGIM                          	       0x1016f7abc realm::Results::ensure_up_to_date(realm::Results::EvaluateMode) + 419 (results.cpp:301)
24  BGIM                          	       0x1016f9dfc std::__1::optional<realm::Obj> realm::Results::try_get<realm::Obj>(unsigned long) + 47 (results.cpp:393)
25  BGIM                          	       0x1016f9d04 realm::Obj realm::Results::get<realm::Obj>(unsigned long) + 63 (results.cpp:476)
26  BGIM                          	       0x1014e50d0 RLMAccessorContext auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)::operator()<realm::Obj*>(RLMAccessorContext&) const + 15 (results.hpp:397) [inlined]
27  BGIM                          	       0x1014e50d0 RLMAccessorContext realm::switch_on_type<realm::Obj, auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)>(realm::PropertyType, auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)&&) + 347 (property.hpp:252) [inlined]
28  BGIM                          	       0x1014e50d0 RLMAccessorContext realm::Results::dispatch<auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)>(RLMAccessorContext&) const + 387 (results.hpp:390)
29  BGIM                          	       0x1014e2500 auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long) + 35 (results.hpp:396)
30  BGIM                          	       0x1015e70b4 -[RLMResults objectAtIndex:]::$_7::operator()() const + 15 (RLMResults.mm:211) [inlined]
31  BGIM                          	       0x1015e70b4 auto translateCollectionError<-[RLMResults objectAtIndex:]::$_7>(-[RLMResults objectAtIndex:]::$_7&&, NSString*) + 15 (RLMResults_Private.hpp:60) [inlined]
32  BGIM                          	       0x1015e70b4 auto translateErrors<-[RLMResults objectAtIndex:]::$_7>(-[RLMResults objectAtIndex:]::$_7&&) + 15 (RLMResults.mm:104) [inlined]
33  BGIM                          	       0x1015e70b4 -[RLMResults objectAtIndex:] + 51 (RLMResults.mm:210)
34  BGIM                          	       0x101939470 Results.subscript.getter + 87 (Results.swift:136)
35  BGIM                          	       0x100ae10e0 ConversationsViewController.tableView(_:cellForRowAt:) + 183 (ConversationsViewController+Reactor.swift:250)
36  BGIM                          	       0x100ae1750 @objc ConversationsViewController.tableView(_:cellForRowAt:) + 143 (<compiler-generated>:0)
37  BGIM                          	       0x1026297e8 RxTableViewDataSourceProxy.tableView(_:cellForRowAt:) + 31 (RxTableViewDataSourceProxy.swift:69) [inlined]
38  BGIM                          	       0x1026297e8 @objc RxTableViewDataSourceProxy.tableView(_:cellForRowAt:) + 207 (<compiler-generated>:68)
39  UIKitCore                     	       0x1d37f6b50 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1280
40  UIKitCore                     	       0x1d37caa14 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 604
41  UIKitCore                     	       0x1d3704ff8 -[UITableView _updateVisibleCellsNow:] + 1100
42  UIKitCore                     	       0x1d3704ae0 -[UITableView layoutSubviews] + 148
43  UIKitCore                     	       0x1d36b2be0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1992
44  QuartzCore                    	       0x1d2b6d074 CA::Layer::layout_if_needed(CA::Transaction*) + 500
45  UIKitCore                     	       0x1d377d2c0 -[UIView(Hierarchy) layoutBelowIfNeeded] + 296
46  BGIM                          	       0x1012d8ff0 ConversationsViewController.tableViewInsets.didset + 39 (ConversationsViewController.swift:129) [inlined]
47  BGIM                          	       0x1012d8ff0 ConversationsViewController.tableViewInsets.setter + 39 (ConversationsViewController.swift:0) [inlined]
48  BGIM                          	       0x1012d8ff0 closure realm/realm-swift#1 in ConversationsViewController.addTableView() + 235 (ConversationsViewController.swift:445)
49  BGIM                          	       0x1012e2784 thunk for @escaping @callee_guaranteed (@unowned UIEdgeInsets) -> () + 11 (<compiler-generated>:0) [inlined]
50  BGIM                          	       0x1012e2784 partial apply for thunk for @escaping @callee_guaranteed (@unowned UIEdgeInsets) -> () + 27 (<compiler-generated>:0)
51  BGIM                          	       0x1019b0d4c closure realm/realm-swift#1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) + 271 (ObservableType+Extensions.swift:109)
52  BGIM                          	       0x1019b0fcc partial apply for closure realm/realm-swift#1 in ObservableType.subscribe(onNext:onError:onCompleted:onDisposed:) + 47 (<compiler-generated>:0)
53  BGIM                          	       0x101964b24 AnonymousObserver.onCore(_:) + 19 (AnonymousObserver.swift:22)
54  BGIM                          	       0x1019b34c8 ObserverBase.on(_:) + 275 (ObserverBase.swift:16)
55  BGIM                          	       0x1019b360c protocol witness for ObserverType.on(_:) in conformance ObserverBase<A> + 19 (<compiler-generated>:0)
56  BGIM                          	       0x1019d1d48 Sink.forwardOn(_:) + 111 (Sink.swift:34)
57  BGIM                          	       0x101992b54 DistinctUntilChangedSink.on(_:) + 851 (DistinctUntilChanged.swift:105)
58  BGIM                          	       0x101992db0 protocol witness for ObserverType.on(_:) in conformance DistinctUntilChangedSink<A, B> + 19 (<compiler-generated>:0)
59  BGIM                          	       0x1019cebe8 partial apply for implicit closure realm/realm-swift#2 in implicit closure realm/realm-swift#1 in closure realm/realm-swift#1 in ShareWhileConnectedConnection.synchronized_subscribe<A>(_:) + 43
60  BGIM                          	       0x1019ceafc thunk for @escaping @callee_guaranteed (@in_guaranteed Event<A>) -> () + 3 (<compiler-generated>:0) [inlined]
61  BGIM                          	       0x1019ceafc partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed Event<A>) -> () + 19 (<compiler-generated>:0)
62  BGIM                          	       0x1019cd9dc ShareReplay1WhileConnectedConnection.on(_:) + 127
63  BGIM                          	       0x1019ce4b0 protocol witness for ObserverType.on(_:) in conformance ShareWhileConnectedConnection<A> + 27 (<compiler-generated>:0)
64  BGIM                          	       0x1019b2770 closure realm/realm-swift#1 in ObserveOnSerialDispatchQueueSink.init(scheduler:observer:cancel:) + 455 (ObserveOn.swift:196)
65  BGIM                          	       0x1019b2abc thunk for @escaping @callee_guaranteed (@guaranteed ObserveOnSerialDispatchQueueSink<A>, @in_guaranteed Event<A.ObserverType.Element>) -> (@out Disposable) + 159 (<compiler-generated>:0)
66  BGIM                          	       0x1019911d4 closure realm/realm-swift#1 in DispatchQueueConfiguration.schedule<A>(_:action:) + 103 (DispatchQueueConfiguration.swift:27)
67  BGIM                          	       0x1019875c4 thunk for @escaping @callee_guaranteed @Sendable () -> () + 27 (<compiler-generated>:0)
68  libdispatch.dylib             	       0x1d8b0d320 _dispatch_call_block_and_release + 32
69  libdispatch.dylib             	       0x1d8b0eeac _dispatch_client_callout + 20
70  libdispatch.dylib             	       0x1d8b1d6a4 _dispatch_main_queue_drain + 928
71  libdispatch.dylib             	       0x1d8b1d2f4 _dispatch_main_queue_callback_4CF + 44
72  CoreFoundation                	       0x1d16d7c28 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
73  CoreFoundation                	       0x1d16b9560 __CFRunLoopRun + 1992
74  CoreFoundation                	       0x1d16be3ec CFRunLoopRunSpecific + 612
75  GraphicsServices              	       0x20cb5b35c GSEventRunModal + 164
76  UIKitCore                     	       0x1d3a4b6e8 -[UIApplication _run] + 888
77  UIKitCore                     	       0x1d3a4b34c UIApplicationMain + 340
78  BGIM                          	       0x1008657d0 main + 63 (AppDelegate.swift:14)
79  dyld                          	       0x1f0b96dec start + 2220

Thread 1 name:   Dispatch queue: nio.nioTransportServices.connectionchannel
Thread 1:
0   libsystem_kernel.dylib        	       0x210583c00 semaphore_wait_trap + 8
1   libdispatch.dylib             	       0x1d8b0f448 _dispatch_sema4_wait + 28
2   libdispatch.dylib             	       0x1d8b0fafc _dispatch_semaphore_wait_slow + 132
3   BGIM                          	       0x101644900 std::__1::unique_lock<realm::util::SemaphoreMutex>::unique_lock[abi:v160006](realm::util::SemaphoreMutex&) + 7 (__mutex_base:123) [inlined]
4   BGIM                          	       0x101644900 std::__1::unique_lock<realm::util::SemaphoreMutex>::unique_lock[abi:v160006](realm::util::SemaphoreMutex&) + 7 (__mutex_base:123) [inlined]
5   BGIM                          	       0x101644900 realm::util::InterprocessMutex::lock() + 15 (interprocess_mutex.hpp:333) [inlined]
6   BGIM                          	       0x101644900 realm::DB::do_begin_write() + 67 (db.cpp:2321)
7   BGIM                          	       0x101647334 realm::DB::AsyncCommitHelper::blocking_begin_write() + 95 (db.cpp:1915)
8   BGIM                          	       0x101881808 realm::Transaction::acquire_write_lock() + 111 (transaction.cpp:0)
9   BGIM                          	       0x1016e09ec bool realm::Transaction::promote_to_write<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, bool) + 39 (transaction.hpp:371) [inlined]
10  BGIM                          	       0x1016e09ec auto realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2::operator()<(anonymous namespace)::TransactLogValidator*>((anonymous namespace)::TransactLogValidator*&&) const + 43 (transact_log_handler.cpp:594) [inlined]
11  BGIM                          	       0x1016e09ec void (anonymous namespace)::advance_with_notifications<realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2>(realm::BindingContext*, std::__1::shared_ptr<realm::Transaction> const&, realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2&&, realm::_impl::NotifierPackage&) + 711 (transact_log_handler.cpp:528) [inlined]
12  BGIM                          	       0x1016e09ec realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&) + 755 (transact_log_handler.cpp:591)
13  BGIM                          	       0x1016da910 realm::_impl::RealmCoordinator::promote_to_write(realm::Realm&) + 167 (realm_coordinator.cpp:1151)
14  BGIM                          	       0x1017372b8 realm::Realm::do_begin_transaction() + 39 (shared_realm.cpp:1005)
15  BGIM                          	       0x101737f14 realm::Realm::begin_transaction() + 63 (shared_realm.cpp:998)
16  BGIM                          	       0x1015df4ec -[RLMRealm beginWriteTransactionWithError:] + 23 (RLMRealm.mm:621)
17  BGIM                          	       0x101924c98 Realm.beginWrite() + 15 (Realm.swift:298) [inlined]
18  BGIM                          	       0x101924c98 Realm.write<A>(withoutNotifying:_:) + 99 (Realm.swift:262)
19  BGIM                          	       0x101f22a6c closure realm/realm-swift#1 in Storage.write(writeHandler:completion:) + 115 (Storage.swift:281)
20  BGIM                          	       0x101b0766c specialized autoreleasepool<A>(invoking:) + 35 (<compiler-generated>:0) [inlined]
21  BGIM                          	       0x101b0766c Storage.write(writeHandler:completion:) + 35 (Storage.swift:278) [inlined]
22  BGIM                          	       0x101b0766c SessionDAO.updateSessions(remoteSessions:) + 107 (SessionDAO.swift:202) [inlined]
23  BGIM                          	       0x101b0766c closure realm/realm-swift#3 in ChatManager.fetchAllSessionID() + 1519 (ChatManager+API.swift:923)
24  BGIM                          	       0x101b1a3f8 specialized closure realm/realm-swift#1 in EventLoopFuture<A>.completion(_:) + 2379
25  BGIM                          	       0x101b265d4 partial apply for specialized closure realm/realm-swift#1 in EventLoopFuture<A>.completion(_:) + 95
26  BGIM                          	       0x101b1bf4c specialized closure realm/realm-swift#1 in EventLoopFuture._publicWhenComplete(_:) + 143
27  BGIM                          	       0x101b266d0 partial apply for specialized closure realm/realm-swift#1 in EventLoopFuture._publicWhenComplete(_:) + 23
28  BGIM                          	       0x1020c8ffc CallbackList._run() + 2239 (EventLoopFuture.swift:94)
29  BGIM                          	       0x1020c9b4c EventLoopPromise._resolve(value:) + 175 (EventLoopFuture.swift:243)
30  BGIM                          	       0x1020c6464 EventLoopPromise.succeed(_:) + 151 (EventLoopFuture.swift:188)
31  BGIM                          	       0x101f9b1b0 UnaryResponseParts.handle(_:) + 199 (ResponseContainers.swift:72)
32  BGIM                          	       0x101f9d2a4 implicit closure realm/realm-swift#4 in implicit closure realm/realm-swift#3 in UnaryCall.invoke(_:) + 3 (<compiler-generated>:0) [inlined]
33  BGIM                          	       0x101f9d2a4 partial apply for implicit closure realm/realm-swift#4 in implicit closure realm/realm-swift#3 in UnaryCall.invoke(_:) + 19 (<compiler-generated>:0)
34  BGIM                          	       0x10201488c ClientInterceptorPipeline._invokeReceive(_:onContextAtUncheckedIndex:) + 363 (ClientInterceptorPipeline.swift:226)
35  BGIM                          	       0x10201470c ClientInterceptorPipeline._invokeReceive(_:onContextAtIndex:) + 71 (ClientInterceptorPipeline.swift:205)
36  BGIM                          	       0x102013b48 ClientInterceptorContext.receive(_:) + 23 (ClientInterceptorContext.swift:77)
37  BGIM                          	       0x101abe220 LoggingClientInterceptor.receive(_:context:) + 5495 (Interceptors.swift:93)
38  BGIM                          	       0x102014844 ClientInterceptorContext.invokeReceive(_:) + 31 (ClientInterceptorPipeline.swift:494) [inlined]
39  BGIM                          	       0x102014844 ClientInterceptorPipeline._invokeReceive(_:onContextAtUncheckedIndex:) + 291 (ClientInterceptorPipeline.swift:230)
40  BGIM                          	       0x10201470c ClientInterceptorPipeline._invokeReceive(_:onContextAtIndex:) + 71 (ClientInterceptorPipeline.swift:205)
41  BGIM                          	       0x10201741c ClientTransport.forwardToInterceptors(_:) + 63 (ClientTransport.swift:973)
42  BGIM                          	       0x1020192bc ClientTransport._receiveFromChannel(message:) + 279 (ClientTransport.swift:459)
43  BGIM                          	       0x102019934 specialized ClientTransport.channelRead(context:data:) + 167 (ClientTransport.swift:305)
44  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
45  BGIM                          	       0x1020abd0c ChannelHandlerContext.fireChannelRead(_:) + 39 (ChannelPipeline.swift:1515)
46  BGIM                          	       0x101fdd2b0 GRPCClientChannelHandler.consumeBytes(from:context:) + 1455 (GRPCClientChannelHandler.swift:481)
47  BGIM                          	       0x101fdc830 GRPCClientChannelHandler.readData(content:context:) + 947 (GRPCClientChannelHandler.swift:433)
48  BGIM                          	       0x101fdd6c0 GRPCClientChannelHandler.channelRead(context:data:) + 123 (GRPCClientChannelHandler.swift:330) [inlined]
49  BGIM                          	       0x101fdd6c0 protocol witness for _ChannelInboundHandler.channelRead(context:data:) in conformance GRPCClientChannelHandler + 155 (<compiler-generated>:323)
50  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
51  BGIM                          	       0x1020adf18 ChannelPipeline.fireChannelRead0(_:) + 31 (ChannelPipeline.swift:897) [inlined]
52  BGIM                          	       0x1020adf18 ChannelPipeline.fireChannelRead(_:) + 95 (ChannelPipeline.swift:655)
53  BGIM                          	       0x10223a4d0 HTTP2StreamChannel.deliverPendingReads() + 543 (HTTP2StreamChannel.swift:729)
54  BGIM                          	       0x10223b5ac HTTP2StreamChannel.receiveStreamClosed(_:) + 115 (HTTP2StreamChannel.swift:838)
55  BGIM                          	       0x102214ecc MultiplexerAbstractChannel.receiveStreamClosed(_:) + 19 (MultiplexerAbstractChannel.swift:138) [inlined]
56  BGIM                          	       0x102214ecc HTTP2CommonInboundStreamMultiplexer.streamClosed(event:) + 79 (HTTP2CommonInboundStreamMultiplexer.swift:128) [inlined]
57  BGIM                          	       0x102214ecc InlineStreamMultiplexer.streamClosed(event:) + 79 (HTTP2ChannelHandler+InlineStreamMultiplexer.swift:58) [inlined]
58  BGIM                          	       0x102214ecc NIOHTTP2Handler.InboundStreamMultiplexer.streamClosed(event:) + 79 (HTTP2ChannelHandler+InboundStreamMultiplexer.swift:78) [inlined]
59  BGIM                          	       0x102214ecc NIOHTTP2Handler.InboundStreamMultiplexer.process(event:) + 79 (HTTP2ChannelHandler.swift:608) [inlined]
60  BGIM                          	       0x102214ecc specialized NIOHTTP2Handler.processPendingUserEvents(context:) + 991 (HTTP2ChannelHandler.swift:584)
61  BGIM                          	       0x102210884 NIOHTTP2Handler.processPendingUserEvents(context:) + 7 (HTTP2ChannelHandler.swift:0) [inlined]
62  BGIM                          	       0x102210884 NIOHTTP2Handler.processFrame(_:flowControlledLength:context:) + 3023 (HTTP2ChannelHandler.swift:553)
63  BGIM                          	       0x10220dc98 NIOHTTP2Handler.frameDecodeLoop(context:) + 63 (HTTP2ChannelHandler.swift:431) [inlined]
64  BGIM                          	       0x10220dc98 NIOHTTP2Handler.channelRead(context:data:) + 195 (HTTP2ChannelHandler.swift:391)
65  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
66  BGIM                          	       0x1020a2050 ChannelHandlerContext.fireChannelRead(_:) + 7 (ChannelPipeline.swift:1515) [inlined]
67  BGIM                          	       0x1020a2050 specialized _ChannelInboundHandler.channelRead(context:data:) + 27 (ChannelHandler.swift:292) [inlined]
68  BGIM                          	       0x1020a2050 _ChannelInboundHandler.channelRead(context:data:) + 39 (<compiler-generated>:0)
69  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
70  BGIM                          	       0x1020abd0c ChannelHandlerContext.fireChannelRead(_:) + 39 (ChannelPipeline.swift:1515)
71  BGIM                          	       0x1023916e4 NIOSSLHandler.doFlushReadData(context:receiveBuffer:readOnEmptyBuffer:) + 147 (NIOSSLHandler.swift:646)
72  BGIM                          	       0x10238f4c4 NIOSSLHandler.channelReadComplete(context:) + 91 (NIOSSLHandler.swift:193)
73  BGIM                          	       0x1020aefdc ChannelHandlerContext.invokeChannelReadComplete() + 59 (ChannelPipeline.swift:1712)
74  BGIM                          	       0x1020ae09c ChannelPipeline.fireChannelRegistered() + 91
75  BGIM                          	       0x102181200 specialized NIOTSConnectionChannel.dataReceivedHandler(content:context:isComplete:error:) + 571 (NIOTSConnectionChannel.swift:742)
76  libswiftNetwork.dylib         	       0x1ed44e4d0 closure realm/realm-swift#1 in NWConnection.receive(minimumIncompleteLength:maximumLength:completion:) + 168
77  libswiftNetwork.dylib         	       0x1ed4518a0 partial apply for closure realm/realm-swift#1 in NWConnection.receiveMessage(completion:) + 20
78  libswiftNetwork.dylib         	       0x1ed44e29c thunk for @escaping @callee_guaranteed (@guaranteed OS_dispatch_data?, @guaranteed OS_nw_content_context?, @unowned Bool, @guaranteed OS_nw_error?) -> () + 108
79  libdispatch.dylib             	       0x1d8b1dfc4 _dispatch_block_async_invoke2 + 148
80  libdispatch.dylib             	       0x1d8b0eeac _dispatch_client_callout + 20
81  libdispatch.dylib             	       0x1d8b16534 _dispatch_lane_serial_drain + 668
82  libdispatch.dylib             	       0x1d8b170d8 _dispatch_lane_invoke + 436
83  libdispatch.dylib             	       0x1d8b1640c _dispatch_lane_serial_drain + 372
84  libdispatch.dylib             	       0x1d8b170d8 _dispatch_lane_invoke + 436
85  libdispatch.dylib             	       0x1d8b21cdc _dispatch_workloop_worker_thread + 648
86  libsystem_pthread.dylib       	       0x2313c8ddc _pthread_wqthread + 288
87  libsystem_pthread.dylib       	       0x2313c8b7c start_wqthread + 8

Thread 2:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 4 name:  com.apple.uikit.eventfetch-thread
Thread 4:
0   libsystem_kernel.dylib        	       0x210583c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x210596b54 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x210596e2c mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x2105841c8 mach_msg + 24
4   CoreFoundation                	       0x1d16b8024 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1d16b9250 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1d16be3ec CFRunLoopRunSpecific + 612
7   Foundation                    	       0x1cb93efd4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   Foundation                    	       0x1cb93eebc -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9   UIKitCore                     	       0x1d3b7e3fc -[UIEventFetcher threadMain] + 416
10  Foundation                    	       0x1cb958544 __NSThread__start__ + 716
11  libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
12  libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 5:
0   libsystem_kernel.dylib        	       0x210584c88 __psynch_mutexwait + 8
1   libsystem_pthread.dylib       	       0x2313ca114 _pthread_mutex_firstfit_lock_wait + 84
2   libsystem_pthread.dylib       	       0x2313d1318 _pthread_mutex_firstfit_lock_slow + 248
3   BGIM                          	       0x10160a878 realm::util::Mutex::lock() + 7 (thread.hpp:530) [inlined]
4   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:579) [inlined]
5   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:578) [inlined]
6   BGIM                          	       0x10160a878 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 67 (file_mapper.hpp:143)
7   BGIM                          	       0x101611b04 realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
8   BGIM                          	       0x101611b04 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 23 (alloc.hpp:570) [inlined]
9   BGIM                          	       0x101611b04 realm::Allocator::translate(unsigned long) const + 99 (alloc.hpp:588) [inlined]
10  BGIM                          	       0x101611b04 realm::Array::init_from_ref(unsigned long) + 251 (array.hpp:112)
11  BGIM                          	       0x10161e368 realm::ArrayBigBlobs::get_at(unsigned long, unsigned long&) const + 111 (array_blobs_big.cpp:34)
12  BGIM                          	       0x10163fc5c realm::BinaryColumn::get_at(unsigned long, unsigned long&) const::$_0::operator()(realm::BPlusTreeNode*, unsigned long) const + 15 (column_binary.cpp:39) [inlined]
13  BGIM                          	       0x10163fc5c realm::util::FunctionRef<void (realm::BPlusTreeNode*, unsigned long)>::FunctionRef<realm::BinaryColumn::get_at(unsigned long, unsigned long&) const::$_0&>(realm::BinaryColumn::get_at(unsigned long, unsigned long&) const::$_0&)::'lambda'(void*, realm::BPlusTreeNode*, unsigned long)::operator()(void*, realm::BPlusTreeNode*, unsigned long) const + 15 (function_ref.hpp:106) [inlined]
14  BGIM                          	       0x10163fc5c realm::util::FunctionRef<void (realm::BPlusTreeNode*, unsigned long)>::FunctionRef<realm::BinaryColumn::get_at(unsigned long, unsigned long&) const::$_0&>(realm::BinaryColumn::get_at(unsigned long, unsigned long&) const::$_0&)::'lambda'(void*, realm::BPlusTreeNode*, unsigned long)::__invoke(void*, realm::BPlusTreeNode*, unsigned long) + 35 (function_ref.hpp:105)
15  BGIM                          	       0x10163fc0c realm::BinaryColumn::get_at(unsigned long, unsigned long&) const + 119 (column_binary.cpp:42)
16  BGIM                          	       0x101504934 realm::BinaryIterator::get_next() + 55 (column_binary.hpp:57)
17  BGIM                          	       0x1015048b0 realm::_impl::ChangesetInputStream::next_block() + 31 (changeset_input_stream.hpp:44)
18  BGIM                          	       0x10165a734 realm::_impl::TransactLogParser::next_input_buffer() + 15 (transact_log.hpp:918) [inlined]
19  BGIM                          	       0x10165a734 realm::_impl::TransactLogParser::has_next() + 23 (transact_log.hpp:677) [inlined]
20  BGIM                          	       0x10165a734 void realm::_impl::TransactLogParser::parse<(anonymous namespace)::TransactAdvancer>(realm::util::InputStream&, (anonymous namespace)::TransactAdvancer&) + 27 (transact_log.hpp:671) [inlined]
21  BGIM                          	       0x10165a734 realm::Group::advance_transact(unsigned long, realm::util::InputStream*, bool) + 155 (group.cpp:1435)
22  BGIM                          	       0x1016e2580 bool realm::Transaction::internal_advance_read<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, realm::VersionID, realm::_impl::History&, bool) + 755 (transaction.hpp:510)
23  BGIM                          	       0x1016e0a9c bool realm::Transaction::promote_to_write<(anonymous namespace)::TransactLogValidator>((anonymous namespace)::TransactLogValidator*, bool) + 215 (transaction.hpp:387) [inlined]
24  BGIM                          	       0x1016e0a9c auto realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2::operator()<(anonymous namespace)::TransactLogValidator*>((anonymous namespace)::TransactLogValidator*&&) const + 219 (transact_log_handler.cpp:594) [inlined]
25  BGIM                          	       0x1016e0a9c void (anonymous namespace)::advance_with_notifications<realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2>(realm::BindingContext*, std::__1::shared_ptr<realm::Transaction> const&, realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&)::$_2&&, realm::_impl::NotifierPackage&) + 887 (transact_log_handler.cpp:528) [inlined]
26  BGIM                          	       0x1016e0a9c realm::_impl::transaction::begin(std::__1::shared_ptr<realm::Transaction> const&, realm::BindingContext*, realm::_impl::NotifierPackage&&) + 931 (transact_log_handler.cpp:591)
27  BGIM                          	       0x1016da910 realm::_impl::RealmCoordinator::promote_to_write(realm::Realm&) + 167 (realm_coordinator.cpp:1151)
28  BGIM                          	       0x1017372b8 realm::Realm::do_begin_transaction() + 39 (shared_realm.cpp:1005)
29  BGIM                          	       0x101737f14 realm::Realm::begin_transaction() + 63 (shared_realm.cpp:998)
30  BGIM                          	       0x1015df4ec -[RLMRealm beginWriteTransactionWithError:] + 23 (RLMRealm.mm:621)
31  BGIM                          	       0x101924c98 Realm.beginWrite() + 15 (Realm.swift:298) [inlined]
32  BGIM                          	       0x101924c98 Realm.write<A>(withoutNotifying:_:) + 99 (Realm.swift:262)
33  BGIM                          	       0x101f22a6c closure realm/realm-swift#1 in Storage.write(writeHandler:completion:) + 115 (Storage.swift:281)
34  BGIM                          	       0x101b43eac specialized autoreleasepool<A>(invoking:) + 47 (<compiler-generated>:0) [inlined]
35  BGIM                          	       0x101b43eac Storage.write(writeHandler:completion:) + 47 (Storage.swift:278) [inlined]
36  BGIM                          	       0x101b43eac ChatManager.save(ignoreMessage:) + 2639 (ChatManager+Database.swift:131)
37  BGIM                          	       0x101b936d8 ChatManager.process(authMessage:) + 3131 (ChatManager+Messaging.swift:1410)
38  BGIM                          	       0x101b2f010 closure realm/realm-swift#1 in closure realm/realm-swift#1 in ChatManager.prepareStream() + 383 (ChatManager+Connection.swift:260)
39  BGIM                          	       0x101b393c5 partial apply for closure realm/realm-swift#1 in closure realm/realm-swift#1 in ChatManager.prepareStream() + 0 (<compiler-generated>:0)
40  BGIM                          	       0x101b33951 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 0 (<compiler-generated>:0)
41  BGIM                          	       0x101b39d91 thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A)specialized partial apply + 0
42  libswift_Concurrency.dylib    	       0x1dba05dd9 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

Thread 6 name:   Dispatch queue: cc.sks.ximsdk.storage.query.queue
Thread 6 Crashed:
0   libsystem_kernel.dylib        	       0x21058a558 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x2313cf118 pthread_kill + 268
2   libsystem_c.dylib             	       0x1d8b6f178 abort + 180
3   BGIM                          	       0x10189bcd4 please_report_this_issue_in_github_realm_realm_core_v_13_17_1 + 11 (terminate.cpp:65)
4   BGIM                          	       0x10189bf14 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>&) + 243 (terminate.cpp:143)
5   BGIM                          	       0x10189bdf4 realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&) + 267 (terminate.cpp:162)
6   BGIM                          	       0x1016153b0 void realm::util::terminate_with_info<unsigned long const&, unsigned long&, unsigned long>(char const*, int, char const*, char const*, unsigned long const&, unsigned long&, unsigned long&&) + 83 (terminate.hpp:52)
7   BGIM                          	       0x1018869c4 realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long) + 515 (encrypted_file_mapping.cpp:657)
8   BGIM                          	       0x1018873c8 realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long (*)(char const*), bool) + 175 (encrypted_file_mapping.cpp:987)
9   BGIM                          	       0x10160a89c realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 103 (file_mapper.hpp:144)
10  BGIM                          	       0x10160a70c realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
11  BGIM                          	       0x10160a70c realm::Allocator::translate_less_critical(realm::Allocator::RefTranslation*, unsigned long) const + 355 (alloc.cpp:156)
12  BGIM                          	       0x101611ae4 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 47 (alloc.hpp:577) [inlined]
13  BGIM                          	       0x101611ae4 realm::Allocator::translate(unsigned long) const + 67 (alloc.hpp:588) [inlined]
14  BGIM                          	       0x101611ae4 realm::Array::init_from_ref(unsigned long) + 219 (array.hpp:112)
15  BGIM                          	       0x101631dc4 realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const + 139 (cluster.cpp:1042)
16  BGIM                          	       0x1017c464c realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
17  BGIM                          	       0x1017c464c realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
18  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
19  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
20  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
21  BGIM                          	       0x1017a145c realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const + 35 (query.cpp:1372) [inlined]
22  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const + 35 (function_ref.hpp:106) [inlined]
23  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*) + 59 (function_ref.hpp:105)
24  BGIM                          	       0x10163b660 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::operator()(realm::Cluster const*) const + 11 (function_ref.hpp:119) [inlined]
25  BGIM                          	       0x10163b660 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 411 (cluster_tree.cpp:699)
26  BGIM                          	       0x10163b704 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 575 (cluster_tree.cpp:706)
27  BGIM                          	       0x10163c5b4 realm::ClusterTree::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 95 (cluster_tree.cpp:1067)
28  BGIM                          	       0x10179e154 realm::Table::traverse_clusters(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 27 (table.hpp:327) [inlined]
29  BGIM                          	       0x10179e154 realm::Query::do_find_all(realm::QueryStateBase&) const + 771 (query.cpp:1380)
30  BGIM                          	       0x10187ad50 realm::TableView::do_sync() + 563 (table_view.cpp:493)
31  BGIM                          	       0x10179e7dc realm::Query::find_all(realm::DescriptorOrdering const&) const + 247 (query.cpp:1552)
32  BGIM                          	       0x1016f7abc realm::Results::ensure_up_to_date(realm::Results::EvaluateMode) + 419 (results.cpp:301)
33  BGIM                          	       0x1016fd320 realm::Results::evaluate_query_if_needed(bool) + 67 (results.cpp:503)
34  BGIM                          	       0x1015e6e48 -[RLMResults countByEnumeratingWithState:objects:count:]::$_5::operator()() const + 11 (RLMResults.mm:176) [inlined]
35  BGIM                          	       0x1015e6e48 auto translateCollectionError<-[RLMResults countByEnumeratingWithState:objects:count:]::$_5>(-[RLMResults countByEnumeratingWithState:objects:count:]::$_5&&, NSString*) + 11 (RLMResults_Private.hpp:60) [inlined]
36  BGIM                          	       0x1015e6e48 auto translateErrors<-[RLMResults countByEnumeratingWithState:objects:count:]::$_5>(-[RLMResults countByEnumeratingWithState:objects:count:]::$_5&&) + 11 (RLMResults.mm:104) [inlined]
37  BGIM                          	       0x1015e6e48 -[RLMResults countByEnumeratingWithState:objects:count:] + 55 (RLMResults.mm:175)
38  Foundation                    	       0x1cbbefb6c NSFastEnumerationIterator.next() + 200
39  BGIM                          	       0x101bd92d4 specialized RLMIterator.next() + 7 (<compiler-generated>:0) [inlined]
40  BGIM                          	       0x101bd92d4 closure realm/realm-swift#4 in ChatManager.process(authMessage:) + 423 (ChatManager+Messaging.swift:1391)
41  BGIM                          	       0x101f00838 closure realm/realm-swift#3 in MessageDAO.getMessagesResults(destination:ascending:types:status:searchOptions:senderAccount:dateComponents:completion:) + 2623 (MessageDAO.swift:332)
42  BGIM                          	       0x101f0e860 partial apply for closure realm/realm-swift#3 in MessageDAO.getMessagesResults(destination:ascending:types:status:searchOptions:senderAccount:dateComponents:completion:) + 131 (<compiler-generated>:0)
43  BGIM                          	       0x101eecbf0 specialized closure realm/realm-swift#1 in closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 623 (Storage.swift:313)
44  BGIM                          	       0x101eec960 specialized closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 95
45  BGIM                          	       0x101ef2ef4 partial apply for specialized closure realm/realm-swift#1 in Storage.query<A>(_:filter:sorters:completion:) + 111
46  BGIM                          	       0x101ae9844 thunk for @escaping @callee_guaranteed @Sendable () -> () + 27 (<compiler-generated>:0)
47  libdispatch.dylib             	       0x1d8b0d320 _dispatch_call_block_and_release + 32
48  libdispatch.dylib             	       0x1d8b0eeac _dispatch_client_callout + 20
49  libdispatch.dylib             	       0x1d8b12330 _dispatch_continuation_pop + 504
50  libdispatch.dylib             	       0x1d8b11998 _dispatch_async_redirect_invoke + 584
51  libdispatch.dylib             	       0x1d8b20944 _dispatch_root_queue_drain + 396
52  libdispatch.dylib             	       0x1d8b21158 _dispatch_worker_thread2 + 164
53  libsystem_pthread.dylib       	       0x2313c8da0 _pthread_wqthread + 228
54  libsystem_pthread.dylib       	       0x2313c8b7c start_wqthread + 8

Thread 7 name:   Dispatch queue: harvesterQueue
Thread 7:
0   libsystem_kernel.dylib        	       0x210583c18 semaphore_timedwait_trap + 8
1   libdispatch.dylib             	       0x1d8b0f4c4 _dispatch_sema4_timedwait + 64
2   libdispatch.dylib             	       0x1d8b0fac4 _dispatch_semaphore_wait_slow + 76
3   NewRelic                      	       0x104b3cf28 -[NRMAHarvesterConnection send:] + 1275 (NRMAHarvesterConnection.m:101)
4   NewRelic                      	       0x104b3dca8 -[NRMAHarvesterConnection sendData:] + 551 (NRMAHarvesterConnection.m:180)
5   NewRelic                      	       0x104b12e44 -[NRMAHarvester connected] + 611 (NRMAHarvester.mm:302)
6   NewRelic                      	       0x104b1471c -[NRMAHarvester execute] + 319 (NRMAHarvester.mm:552)
7   NewRelic                      	       0x104b1404c -[NRMAHarvester transitionToConnected:] + 59 (NRMAHarvester.mm:482)
8   NewRelic                      	       0x104b14734 -[NRMAHarvester execute] + 343 (NRMAHarvester.mm:545)
9   NewRelic                      	       0x104af12d0 __30+[NRMAHarvestController start]_block_invoke_2 + 231 (NRMAHarvestController.m:145)
10  libdispatch.dylib             	       0x1d8b0d320 _dispatch_call_block_and_release + 32
11  libdispatch.dylib             	       0x1d8b0eeac _dispatch_client_callout + 20
12  libdispatch.dylib             	       0x1d8b16534 _dispatch_lane_serial_drain + 668
13  libdispatch.dylib             	       0x1d8b170a4 _dispatch_lane_invoke + 384
14  libdispatch.dylib             	       0x1d8b21cdc _dispatch_workloop_worker_thread + 648
15  libsystem_pthread.dylib       	       0x2313c8ddc _pthread_wqthread + 288
16  libsystem_pthread.dylib       	       0x2313c8b7c start_wqthread + 8

Thread 8 name:  Realm notification listener
Thread 8:
0   libsystem_kernel.dylib        	       0x2105855bc kevent + 8
1   BGIM                          	       0x1016c418c realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x1016c4310 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x1016c4310 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x1016c4310 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x1016c4310 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 9 name:  Realm notification listener
Thread 9:
0   libsystem_kernel.dylib        	       0x2105855bc kevent + 8
1   BGIM                          	       0x1016c418c realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x1016c4310 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x1016c4310 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x1016c4310 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x1016c4310 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 10 name:  Realm notification listener
Thread 10:
0   libsystem_kernel.dylib        	       0x2105855bc kevent + 8
1   BGIM                          	       0x1016c418c realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x1016c4310 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x1016c4310 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x1016c4310 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x1016c4310 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 11:
0   libsystem_kernel.dylib        	       0x210584558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x2313d0078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dfc8bef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x104b72668 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x104b73048 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x104b731b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 12:
0   libsystem_kernel.dylib        	       0x210584558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x2313d0078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dfc8bef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x104b72668 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x104b73048 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x104b731b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 13:
0   libsystem_kernel.dylib        	       0x210584558 __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x2313d0078 _pthread_cond_wait + 1232
2   libc++.1.dylib                	       0x1dfc8bef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3   NewRelic                      	       0x104b72668 NewRelic::WorkQueue::task_thread() + 143
4   NewRelic                      	       0x104b73048 std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::__execute() + 47
5   NewRelic                      	       0x104b731b8 void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::*)(), NewRelic::WorkQueue*>>*>>(void*) + 71
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 14 name:   Dispatch queue: nio.nioTransportServices.connectionchannel
Thread 14:
0   libsystem_kernel.dylib        	       0x210584c88 __psynch_mutexwait + 8
1   libsystem_pthread.dylib       	       0x2313ca114 _pthread_mutex_firstfit_lock_wait + 84
2   libsystem_pthread.dylib       	       0x2313d1318 _pthread_mutex_firstfit_lock_slow + 248
3   BGIM                          	       0x10188c870 realm::util::Mutex::lock() + 7 (thread.hpp:530) [inlined]
4   BGIM                          	       0x10188c870 realm::util::LockGuard::LockGuard(realm::util::Mutex&) + 11 (thread.hpp:567) [inlined]
5   BGIM                          	       0x10188c870 realm::util::LockGuard::LockGuard(realm::util::Mutex&) + 11 (thread.hpp:566) [inlined]
6   BGIM                          	       0x10188c870 realm::util::get_file_info_for_file(realm::util::File&) + 39 (file_mapper.cpp:485)
7   BGIM                          	       0x10160d070 realm::SlabAlloc::attach_file(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, realm::SlabAlloc::Config&, realm::util::WriteObserver*) + 895 (alloc_slab.cpp:920)
8   BGIM                          	       0x1016403dc realm::DB::open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, bool, realm::DBOptions const&) + 1643 (db.cpp:1159)
9   BGIM                          	       0x101646d10 realm::DB::create(std::__1::unique_ptr<realm::Replication, std::__1::default_delete<realm::Replication>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, realm::DBOptions const&) + 115 (db.cpp:2777)
10  BGIM                          	       0x1016d5ce8 realm::_impl::RealmCoordinator::open_db() + 867 (realm_coordinator.cpp:478)
11  BGIM                          	       0x1016d68cc realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig&&, std::__1::shared_ptr<realm::Realm>&, std::__1::optional<realm::VersionID>, realm::util::CheckedUniqueLock&) + 71 (realm_coordinator.cpp:324)
12  BGIM                          	       0x1016d67ec realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, std::__1::optional<realm::VersionID>) + 471 (realm_coordinator.cpp:274)
13  BGIM                          	       0x10173514c realm::Realm::get_shared_realm(realm::RealmConfig) + 119 (shared_realm.cpp:161)
14  BGIM                          	       0x1015de078 +[RLMRealm realmWithConfiguration:confinedTo:error:] + 999 (RLMRealm.mm:426)
15  BGIM                          	       0x1015ddc14 +[RLMRealm realmWithConfiguration:queue:error:] + 87 (RLMRealm.mm:391)
16  BGIM                          	       0x101923a68 @nonobjc RLMRealm.__allocating_init(configuration:queue:) + 91 (<compiler-generated>:0)
17  BGIM                          	       0x1019246ac Realm.init(configuration:queue:) + 119 (Realm.swift:95)
18  BGIM                          	       0x100810870 BGIMRealm.realm() + 139 (Realm.swift:69)
19  BGIM                          	       0x100811880 protocol witness for ContainerProtocol.realm() in conformance BGIMRealm + 35 (<compiler-generated>:0)
20  BGIM                          	       0x1014b8ca4 Container.realm.getter + 35 (Container.swift:21) [inlined]
21  BGIM                          	       0x1014b8ca4 specialized Container.values<A>(_:matching:file:line:) + 79 (Container.swift:71)
22  BGIM                          	       0x100eeeca4 closure realm/realm-swift#2 in ScheduleService.syncFestival() + 399 (ScheduleService.swift:471)
23  BGIM                          	       0x100eef004 partial apply for closure realm/realm-swift#2 in ScheduleService.syncFestival() + 23 (<compiler-generated>:0)
24  BGIM                          	       0x1019a5100 MapSink.on(_:) + 435 (Map.swift:42)
25  BGIM                          	       0x1019a52fc protocol witness for ObserverType.on(_:) in conformance MapSink<A, B> + 19 (<compiler-generated>:0)
26  BGIM                          	       0x1019d1d48 Sink.forwardOn(_:) + 111 (Sink.swift:34)
27  BGIM                          	       0x101987a64 AnonymousObservableSink.on(_:) + 311 (Create.swift:50)
28  BGIM                          	       0x101987bc8 protocol witness for ObserverType.on(_:) in conformance AnonymousObservableSink<A> + 19 (<compiler-generated>:0)
29  BGIM                          	       0x1019651c0 implicit closure realm/realm-swift#2 in implicit closure realm/realm-swift#1 in AnyObserver.init<A>(_:) + 7 (AnyObserver.swift:29) [inlined]
30  BGIM                          	       0x1019651c0 partial apply for implicit closure realm/realm-swift#2 in implicit closure realm/realm-swift#1 in AnyObserver.init<A>(_:) + 43 (<compiler-generated>:0)
31  BGIM                          	       0x101964c98 AnyObserver.on(_:) + 19 (AnyObserver.swift:36)
32  BGIM                          	       0x1019cf2e8 closure realm/realm-swift#1 in closure realm/realm-swift#1 in static PrimitiveSequenceType<>.create(subscribe:) + 439 (Single.swift:35)
33  BGIM                          	       0x10096d08c specialized closure realm/realm-swift#1 in EventLoopFuture._publicWhenComplete(_:) + 167
34  BGIM                          	       0x1020c8ffc CallbackList._run() + 2239 (EventLoopFuture.swift:94)
35  BGIM                          	       0x1020c9b4c EventLoopPromise._resolve(value:) + 175 (EventLoopFuture.swift:243)
36  BGIM                          	       0x1020c6464 EventLoopPromise.succeed(_:) + 151 (EventLoopFuture.swift:188)
37  BGIM                          	       0x101f9b1b0 UnaryResponseParts.handle(_:) + 199 (ResponseContainers.swift:72)
38  BGIM                          	       0x101f9d2a4 implicit closure realm/realm-swift#4 in implicit closure realm/realm-swift#3 in UnaryCall.invoke(_:) + 3 (<compiler-generated>:0) [inlined]
39  BGIM                          	       0x101f9d2a4 partial apply for implicit closure realm/realm-swift#4 in implicit closure realm/realm-swift#3 in UnaryCall.invoke(_:) + 19 (<compiler-generated>:0)
40  BGIM                          	       0x10201488c ClientInterceptorPipeline._invokeReceive(_:onContextAtUncheckedIndex:) + 363 (ClientInterceptorPipeline.swift:226)
41  BGIM                          	       0x10201470c ClientInterceptorPipeline._invokeReceive(_:onContextAtIndex:) + 71 (ClientInterceptorPipeline.swift:205)
42  BGIM                          	       0x102013b48 ClientInterceptorContext.receive(_:) + 23 (ClientInterceptorContext.swift:77)
43  BGIM                          	       0x100965aac NotReallyAuthClientInterceptor.receive(_:context:) + 2691 (Interceptors.swift:154)
44  BGIM                          	       0x102014844 ClientInterceptorContext.invokeReceive(_:) + 31 (ClientInterceptorPipeline.swift:494) [inlined]
45  BGIM                          	       0x102014844 ClientInterceptorPipeline._invokeReceive(_:onContextAtUncheckedIndex:) + 291 (ClientInterceptorPipeline.swift:230)
46  BGIM                          	       0x10201470c ClientInterceptorPipeline._invokeReceive(_:onContextAtIndex:) + 71 (ClientInterceptorPipeline.swift:205)
47  BGIM                          	       0x102013b48 ClientInterceptorContext.receive(_:) + 23 (ClientInterceptorContext.swift:77)
48  BGIM                          	       0x10096bbc4 LoggingEnabotClientInterceptor.receive(_:context:) + 2779 (Interceptors.swift:398)
49  BGIM                          	       0x102014844 ClientInterceptorContext.invokeReceive(_:) + 31 (ClientInterceptorPipeline.swift:494) [inlined]
50  BGIM                          	       0x102014844 ClientInterceptorPipeline._invokeReceive(_:onContextAtUncheckedIndex:) + 291 (ClientInterceptorPipeline.swift:230)
51  BGIM                          	       0x10201470c ClientInterceptorPipeline._invokeReceive(_:onContextAtIndex:) + 71 (ClientInterceptorPipeline.swift:205)
52  BGIM                          	       0x10201741c ClientTransport.forwardToInterceptors(_:) + 63 (ClientTransport.swift:973)
53  BGIM                          	       0x1020192bc ClientTransport._receiveFromChannel(message:) + 279 (ClientTransport.swift:459)
54  BGIM                          	       0x102019934 specialized ClientTransport.channelRead(context:data:) + 167 (ClientTransport.swift:305)
55  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
56  BGIM                          	       0x1020abd0c ChannelHandlerContext.fireChannelRead(_:) + 39 (ChannelPipeline.swift:1515)
57  BGIM                          	       0x101fdd2b0 GRPCClientChannelHandler.consumeBytes(from:context:) + 1455 (GRPCClientChannelHandler.swift:481)
58  BGIM                          	       0x101fdc830 GRPCClientChannelHandler.readData(content:context:) + 947 (GRPCClientChannelHandler.swift:433)
59  BGIM                          	       0x101fdd6c0 GRPCClientChannelHandler.channelRead(context:data:) + 123 (GRPCClientChannelHandler.swift:330) [inlined]
60  BGIM                          	       0x101fdd6c0 protocol witness for _ChannelInboundHandler.channelRead(context:data:) in conformance GRPCClientChannelHandler + 155 (<compiler-generated>:323)
61  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
62  BGIM                          	       0x1020adf18 ChannelPipeline.fireChannelRead0(_:) + 31 (ChannelPipeline.swift:897) [inlined]
63  BGIM                          	       0x1020adf18 ChannelPipeline.fireChannelRead(_:) + 95 (ChannelPipeline.swift:655)
64  BGIM                          	       0x10223a4d0 HTTP2StreamChannel.deliverPendingReads() + 543 (HTTP2StreamChannel.swift:729)
65  BGIM                          	       0x10223b5ac HTTP2StreamChannel.receiveStreamClosed(_:) + 115 (HTTP2StreamChannel.swift:838)
66  BGIM                          	       0x102214ecc MultiplexerAbstractChannel.receiveStreamClosed(_:) + 19 (MultiplexerAbstractChannel.swift:138) [inlined]
67  BGIM                          	       0x102214ecc HTTP2CommonInboundStreamMultiplexer.streamClosed(event:) + 79 (HTTP2CommonInboundStreamMultiplexer.swift:128) [inlined]
68  BGIM                          	       0x102214ecc InlineStreamMultiplexer.streamClosed(event:) + 79 (HTTP2ChannelHandler+InlineStreamMultiplexer.swift:58) [inlined]
69  BGIM                          	       0x102214ecc NIOHTTP2Handler.InboundStreamMultiplexer.streamClosed(event:) + 79 (HTTP2ChannelHandler+InboundStreamMultiplexer.swift:78) [inlined]
70  BGIM                          	       0x102214ecc NIOHTTP2Handler.InboundStreamMultiplexer.process(event:) + 79 (HTTP2ChannelHandler.swift:608) [inlined]
71  BGIM                          	       0x102214ecc specialized NIOHTTP2Handler.processPendingUserEvents(context:) + 991 (HTTP2ChannelHandler.swift:584)
72  BGIM                          	       0x102210884 NIOHTTP2Handler.processPendingUserEvents(context:) + 7 (HTTP2ChannelHandler.swift:0) [inlined]
73  BGIM                          	       0x102210884 NIOHTTP2Handler.processFrame(_:flowControlledLength:context:) + 3023 (HTTP2ChannelHandler.swift:553)
74  BGIM                          	       0x10220dc98 NIOHTTP2Handler.frameDecodeLoop(context:) + 63 (HTTP2ChannelHandler.swift:431) [inlined]
75  BGIM                          	       0x10220dc98 NIOHTTP2Handler.channelRead(context:data:) + 195 (HTTP2ChannelHandler.swift:391)
76  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
77  BGIM                          	       0x1020a2050 ChannelHandlerContext.fireChannelRead(_:) + 7 (ChannelPipeline.swift:1515) [inlined]
78  BGIM                          	       0x1020a2050 specialized _ChannelInboundHandler.channelRead(context:data:) + 27 (ChannelHandler.swift:292) [inlined]
79  BGIM                          	       0x1020a2050 _ChannelInboundHandler.channelRead(context:data:) + 39 (<compiler-generated>:0)
80  BGIM                          	       0x1020aef64 ChannelHandlerContext.invokeChannelRead(_:) + 67 (ChannelPipeline.swift:1702)
81  BGIM                          	       0x1020abd0c ChannelHandlerContext.fireChannelRead(_:) + 39 (ChannelPipeline.swift:1515)
82  BGIM                          	       0x1023916e4 NIOSSLHandler.doFlushReadData(context:receiveBuffer:readOnEmptyBuffer:) + 147 (NIOSSLHandler.swift:646)
83  BGIM                          	       0x10238f4c4 NIOSSLHandler.channelReadComplete(context:) + 91 (NIOSSLHandler.swift:193)
84  BGIM                          	       0x1020aefdc ChannelHandlerContext.invokeChannelReadComplete() + 59 (ChannelPipeline.swift:1712)
85  BGIM                          	       0x1020ae09c ChannelPipeline.fireChannelRegistered() + 91
86  BGIM                          	       0x102181200 specialized NIOTSConnectionChannel.dataReceivedHandler(content:context:isComplete:error:) + 571 (NIOTSConnectionChannel.swift:742)
87  libswiftNetwork.dylib         	       0x1ed44e4d0 closure realm/realm-swift#1 in NWConnection.receive(minimumIncompleteLength:maximumLength:completion:) + 168
88  libswiftNetwork.dylib         	       0x1ed4518a0 partial apply for closure realm/realm-swift#1 in NWConnection.receiveMessage(completion:) + 20
89  libswiftNetwork.dylib         	       0x1ed44e29c thunk for @escaping @callee_guaranteed (@guaranteed OS_dispatch_data?, @guaranteed OS_nw_content_context?, @unowned Bool, @guaranteed OS_nw_error?) -> () + 108
90  libdispatch.dylib             	       0x1d8b1dfc4 _dispatch_block_async_invoke2 + 148
91  libdispatch.dylib             	       0x1d8b0eeac _dispatch_client_callout + 20
92  libdispatch.dylib             	       0x1d8b16534 _dispatch_lane_serial_drain + 668
93  libdispatch.dylib             	       0x1d8b170d8 _dispatch_lane_invoke + 436
94  libdispatch.dylib             	       0x1d8b1640c _dispatch_lane_serial_drain + 372
95  libdispatch.dylib             	       0x1d8b170d8 _dispatch_lane_invoke + 436
96  libdispatch.dylib             	       0x1d8b21cdc _dispatch_workloop_worker_thread + 648
97  libsystem_pthread.dylib       	       0x2313c8ddc _pthread_wqthread + 288
98  libsystem_pthread.dylib       	       0x2313c8b7c start_wqthread + 8

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

Thread 16:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 17:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 18:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 19:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 20 name:  Realm notification listener
Thread 20:
0   libsystem_kernel.dylib        	       0x210584c88 __psynch_mutexwait + 8
1   libsystem_pthread.dylib       	       0x2313ca114 _pthread_mutex_firstfit_lock_wait + 84
2   libsystem_pthread.dylib       	       0x2313d1318 _pthread_mutex_firstfit_lock_slow + 248
3   BGIM                          	       0x10160a878 realm::util::Mutex::lock() + 7 (thread.hpp:530) [inlined]
4   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:579) [inlined]
5   BGIM                          	       0x10160a878 realm::util::UniqueLock::UniqueLock(realm::util::Mutex&) + 11 (thread.hpp:578) [inlined]
6   BGIM                          	       0x10160a878 realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 67 (file_mapper.hpp:143)
7   BGIM                          	       0x101611b04 realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
8   BGIM                          	       0x101611b04 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 23 (alloc.hpp:570) [inlined]
9   BGIM                          	       0x101611b04 realm::Allocator::translate(unsigned long) const + 99 (alloc.hpp:588) [inlined]
10  BGIM                          	       0x101611b04 realm::Array::init_from_ref(unsigned long) + 251 (array.hpp:112)
11  BGIM                          	       0x101656878 realm::Group::attach(unsigned long, bool, bool, unsigned long, unsigned long long) + 123 (group.cpp:541)
12  BGIM                          	       0x10187e9cc realm::Transaction::Transaction(std::__1::shared_ptr<realm::DB>, realm::SlabAlloc*, realm::DB::ReadLockInfo&, realm::DB::TransactStage) + 495 (transaction.cpp:126)
13  BGIM                          	       0x1016465ec std::__1::shared_ptr<realm::Transaction> (anonymous namespace)::make_transaction_ref<std::__1::shared_ptr<realm::DB>, realm::SlabAlloc*, realm::DB::ReadLockInfo&, realm::DB::TransactStage>(std::__1::shared_ptr<realm::DB>&&, realm::SlabAlloc*&&, realm::DB::ReadLockInfo&, realm::DB::TransactStage&&) + 87 (db.cpp:307)
14  BGIM                          	       0x10164228c realm::DB::start_read(realm::VersionID) + 287 (db.cpp:2628)
15  BGIM                          	       0x1016d9490 realm::_impl::RealmCoordinator::run_async_notifiers() + 883 (realm_coordinator.cpp:895)
16  BGIM                          	       0x1016d90bc realm::_impl::RealmCoordinator::on_change() + 67 (realm_coordinator.cpp:872)
17  BGIM                          	       0x1016c41b8 realm::_impl::ExternalCommitHelper::listen() + 203 (external_commit_helper.cpp:234)
18  BGIM                          	       0x1016c4310 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
19  BGIM                          	       0x1016c4310 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
20  BGIM                          	       0x1016c4310 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
21  BGIM                          	       0x1016c4310 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
22  libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
23  libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 21 name:  com.apple.NSURLConnectionLoader
Thread 21:
0   libsystem_kernel.dylib        	       0x210583c84 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x210596b54 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x210596e2c mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x2105841c8 mach_msg + 24
4   CoreFoundation                	       0x1d16b8024 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1d16b9250 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1d16be3ec CFRunLoopRunSpecific + 612
7   CFNetwork                     	       0x1d28a9580 0x1d2650000 + 2463104
8   Foundation                    	       0x1cb958544 __NSThread__start__ + 716
9   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
10  libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Thread 22:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 23:
0   libsystem_pthread.dylib       	       0x2313c8b74 start_wqthread + 0

Thread 24 name:  Realm notification listener
Thread 24:
0   libsystem_kernel.dylib        	       0x2105855bc kevent + 8
1   BGIM                          	       0x1016c418c realm::_impl::ExternalCommitHelper::listen() + 159 (external_commit_helper.cpp:219)
2   BGIM                          	       0x1016c4310 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0::operator()() const + 3 (external_commit_helper.cpp:175) [inlined]
3   BGIM                          	       0x1016c4310 decltype(std::declval<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>()()) std::__1::__invoke[abi:v160006]<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0&&) + 3 (invoke.h:394) [inlined]
4   BGIM                          	       0x1016c4310 void std::__1::__thread_execute[abi:v160006]<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>&, std::__1::__tuple_indices<>) + 3 (thread:288) [inlined]
5   BGIM                          	       0x1016c4310 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&, realm::RealmConfig const&)::$_0>>(void*) + 55 (thread:299)
6   libsystem_pthread.dylib       	       0x2313c96b8 _pthread_start + 148
7   libsystem_pthread.dylib       	       0x2313c8b88 thread_start + 8

Relevant stack:

3   BGIM                          	       0x10189bcd4 please_report_this_issue_in_github_realm_realm_core_v_13_17_1 + 11 (terminate.cpp:65)
4   BGIM                          	       0x10189bf14 realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>&) + 243 (terminate.cpp:143)
5   BGIM                          	       0x10189bdf4 realm::util::terminate_with_info(char const*, char const*, long, char const*, std::initializer_list<realm::util::Printable>&&) + 267 (terminate.cpp:162)
6   BGIM                          	       0x1016153b0 void realm::util::terminate_with_info<unsigned long const&, unsigned long&, unsigned long>(char const*, int, char const*, char const*, unsigned long const&, unsigned long&, unsigned long&&) + 83 (terminate.hpp:52)
7   BGIM                          	       0x1018869c4 realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long) + 515 (encrypted_file_mapping.cpp:657)
8   BGIM                          	       0x1018873c8 realm::util::EncryptedFileMapping::read_barrier(void const*, unsigned long, unsigned long (*)(char const*), bool) + 175 (encrypted_file_mapping.cpp:987)
9   BGIM                          	       0x10160a89c realm::util::do_encryption_read_barrier(void const*, unsigned long, unsigned long (*)(char const*), realm::util::EncryptedFileMapping*, bool) + 103 (file_mapper.hpp:144)
10  BGIM                          	       0x10160a70c realm::util::encryption_read_barrier(void const*, unsigned long, realm::util::EncryptedFileMapping*, unsigned long (*)(char const*), bool) + 23 (file_mapper.hpp:116) [inlined]
11  BGIM                          	       0x10160a70c realm::Allocator::translate_less_critical(realm::Allocator::RefTranslation*, unsigned long) const + 355 (alloc.cpp:156)
12  BGIM                          	       0x101611ae4 realm::Allocator::translate_critical(realm::Allocator::RefTranslation*, unsigned long) const + 47 (alloc.hpp:577) [inlined]
13  BGIM                          	       0x101611ae4 realm::Allocator::translate(unsigned long) const + 67 (alloc.hpp:588) [inlined]
14  BGIM                          	       0x101611ae4 realm::Array::init_from_ref(unsigned long) + 219 (array.hpp:112)
15  BGIM                          	       0x101631dc4 realm::Cluster::init_leaf(realm::ColKey, realm::ArrayPayload*) const + 139 (cluster.cpp:1042)
16  BGIM                          	       0x1017c464c realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
17  BGIM                          	       0x1017c464c realm::OrNode::cluster_changed() + 47 (query_engine.hpp:1996)
18  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
19  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
20  BGIM                          	       0x1017a1244 realm::ParentNode::set_cluster(realm::Cluster const*) + 31 (query_engine.hpp:180)
21  BGIM                          	       0x1017a145c realm::Query::do_find_all(realm::QueryStateBase&) const::$_3::operator()(realm::Cluster const*) const + 35 (query.cpp:1372) [inlined]
22  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::operator()(void*, realm::Cluster const*) const + 35 (function_ref.hpp:106) [inlined]
23  BGIM                          	       0x1017a145c realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::FunctionRef<realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&>(realm::Query::do_find_all(realm::QueryStateBase&) const::$_3&)::'lambda'(void*, realm::Cluster const*)::__invoke(void*, realm::Cluster const*) + 59 (function_ref.hpp:105)
24  BGIM                          	       0x10163b660 realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>::operator()(realm::Cluster const*) const + 11 (function_ref.hpp:119) [inlined]
25  BGIM                          	       0x10163b660 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 411 (cluster_tree.cpp:699)
26  BGIM                          	       0x10163b704 realm::ClusterNodeInner::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>, long long) const + 575 (cluster_tree.cpp:706)
27  BGIM                          	       0x10163c5b4 realm::ClusterTree::traverse(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 95 (cluster_tree.cpp:1067)
28  BGIM                          	       0x10179e154 realm::Table::traverse_clusters(realm::util::FunctionRef<realm::IteratorControl (realm::Cluster const*)>) const + 27 (table.hpp:327) [inlined]
29  BGIM                          	       0x10179e154 realm::Query::do_find_all(realm::QueryStateBase&) const + 771 (query.cpp:1380)
30  BGIM                          	       0x10187ad50 realm::TableView::do_sync() + 563 (table_view.cpp:493)
31  BGIM                          	       0x10179e7dc realm::Query::find_all(realm::DescriptorOrdering const&) const + 247 (query.cpp:1552)
32  BGIM                          	       0x1016f7abc realm::Results::ensure_up_to_date(realm::Results::EvaluateMode) + 419 (results.cpp:301)
33  BGIM                          	       0x1016fd320 realm::Results::evaluate_query_if_needed(bool) + 67 (results.cpp:503)
34  BGIM                          	       0x1015e6e48 -[RLMResults countByEnumeratingWithState:objects:count:]::$_5::operator()() const + 11 (RLMResults.mm:176) [inlined]
35  BGIM                          	       0x1015e6e48 auto translateCollectionError<-[RLMResults countByEnumeratingWithState:objects:count:]::$_5>(-[RLMResults countByEnumeratingWithState:objects:count:]::$_5&&, NSString*) + 11 (RLMResults_Private.hpp:60) [inlined]
36  BGIM                          	       0x1015e6e48 auto translateErrors<-[RLMResults countByEnumeratingWithState:objects:count:]::$_5>(-[RLMResults countByEnumeratingWithState:objects:count:]::$_5&&) + 11 (RLMResults.mm:104) [inlined]
37  BGIM                          	       0x1015e6e48 -[RLMResults countByEnumeratingWithState:objects:count:] + 55 (RLMResults.mm:175)
38  Foundation                    	       0x1cbbefb6c NSFastEnumerationIterator.next() + 200
39  BGIM                          	       0x101bd92d4 specialized RLMIterator.next() + 7 (<compiler-generated>:0) [inlined]
40  BGIM                          	       0x101bd92d4 closure realm/realm-swift#4 in ChatManager.process(authMessage:) + 423 (ChatManager+Messaging.swift:1391)
41  BGIM                          	       0x101f00838 closure realm/realm-swift#3 in MessageDAO.getMessagesResults(destination:ascending:types:status:searchOptions:senderAccount:dateComponents:completion:) + 2623 (MessageDAO.swift:332)
42  BGIM                          	       0x101f0e860 partial apply for closure realm/realm-swift#3 in MessageDAO.getMessagesResults(destination:ascending:types:status:searchOptions:senderAccount:dateComponents:completion:) + 131 (<compiler-generated>:0)

@ironage
Copy link
Contributor

ironage commented Dec 8, 2023

realm::util::EncryptedFileMapping::refresh_page(unsigned long, unsigned long) + 515 (encrypted_file_mapping.cpp:657) is this line of code at version 13.17.1
Possibly related to #7322

@amondnet
Copy link

/Users/runner/work/realm-dart/realm-dart/src/realm-core/src/realm/util/encrypted_file_mapping.cpp:1028: [realm-core-13.24.0] Assertion failed: new_size % (1ULL << m_page_shift) == 0
<backtrace not supported on this platform>
!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose2024-01-11 18:32:26.934833+0900 Runner[7905:2699530] /Users/runner/work/realm-dart/realm-dart/src/realm-core/src/realm/util/encrypted_file_mapping.cpp:1028: [realm-core-13.24.0] Assertion failed: new_size % (1ULL << m_page_shift) == 0
<backtrace not supported on this platform>
!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose
* thread realm/realm-swift#10, name = 'io.flutter.1.ui', stop reason = signal SIGABRT
    frame #0: 0x00000001bb367bbc libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x1bb367bbc <+8>:  b.lo   0x1bb367bd8               ; <+36>
    0x1bb367bc0 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1bb367bc4 <+16>: mov    x29, sp
    0x1bb367bc8 <+20>: bl     0x1bb36360c               ; cerror_nocancel
Target 0: (Runner) stopped.

@ironage
Copy link
Contributor

ironage commented Jan 12, 2024

@amondnet thanks for the information. What file system are you opening the Realm on? Is it exFAT by chance? If so then the issue may have been fixed by #7162 which was released in core version 13.24.1. As of today, the latest Dart version is 1.6.1 which uses core 13.24.0, so you'll have to wait for the next release to try out the fix.

@ironage
Copy link
Contributor

ironage commented Jun 29, 2024

This has very likely been fixed by #7698. Please try a release that has core version >= v14.10.0.

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Jun 29, 2024
@ripplek
Copy link
Author

ripplek commented Jul 31, 2024

We upgraded RealmSwift 10.52.1 and realm-core 14.10.2 two weeks ago. It seems that the problem has been resolved

@ripplek ripplek closed this as completed Jul 31, 2024
@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 31, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs-Attention Reporter has responded. Review comment. O-Community
Projects
None yet
Development

No branches or pull requests

6 participants