realm-core
realm-core copied to clipboard
Crash with realm_core_v_13_17_1
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)
}
}
}
}
Full Report
(edited to hide this long extra debug info)
Assertion on encrypted_file_mapping.cpp:657. @finnschiermer what does this suggest?
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)
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 https://github.com/realm/realm-core/issues/7322
/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.
@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 https://github.com/realm/realm-core/pull/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.
This has very likely been fixed by https://github.com/realm/realm-core/pull/7698. Please try a release that has core version >= v14.10.0.
We upgraded RealmSwift 10.52.1 and realm-core 14.10.2 two weeks ago. It seems that the problem has been resolved