realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.31k stars 2.14k forks source link

Background crash #7785

Open tjuela opened 2 years ago

tjuela commented 2 years ago

How frequently does the bug occur?

All the time

Description

I expect app not to crash in background.

Stacktrace & log output

Incident Identifier: BEE984A9-C8FB-420D-85F1-F828BE73AE33
CrashReporter Key:   9a38dffc39fc3564e6737965794b01962c99ab2d
Hardware Model:      iPhone14,2
Process:             ArkynTestProject [24430]
Path:                /private/var/containers/Bundle/Application/679823B3-5C6C-4C3B-A06C-C68DCE202A15/ArkynTestProject.app/ArkynTestProject
Identifier:          com.arkynstudios.ArkynTestProject
Version:             1.0 (1)
Code Type:           ARM-64 (Native)
Role:                Non UI
Parent Process:      launchd [1]
Coalition:           com.arkynstudios.ArkynTestProject [3832]

Date/Time:           2022-05-06 15:41:40.1997 +0200
Launch Time:         2022-05-06 15:11:49.4772 +0200
OS Version:          iPhone OS 15.4.1 (19E258)
Release Type:        User
Baseband Version:    1.59.03
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Subtype:  FS pagein error: 1 Operation not permitted
Exception Codes: 0x000000000000000a, 0x000000010eda14e0
VM Region Info: 0x10eda14e0 is in 0x10d5a4000-0x1115a4000;  bytes after start: 25154784  bytes before end: 41954079
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file              10ccb4000-10d5a4000 [ 9152K] r--/rw- SM=PRV  ...ct_id=98a33e5
--->  mapped file              10d5a4000-1115a4000 [ 64.0M] r--/rw- SM=S/A  ...ct_id=908aee5
      mapped file              1115a4000-111f84000 [  9.9M] r--/rw- SM=S/A  ...ct_id=908aee5
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 10 Bus error: 10
Terminating Process: exc handler [24430]

Triggered by Thread:  0

Kernel Triage:
VM - Filesystem pagein returned an error in vnode_pagein
VM - Page has error bit set

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   ArkynTestProject                       0x100f8ab08 long long realm::Array::get_universal<32ul>(char const*, unsigned long) const + 36
1   ArkynTestProject                       0x100f8aac8 long long realm::Array::get<32ul>(unsigned long) const + 36
2   ArkynTestProject                       0x100f806b8 realm::Array::get(unsigned long) const + 244
3   ArkynTestProject                       0x100f81930 realm::Array::get_as_ref(unsigned long) const + 156
4   ArkynTestProject                       0x100ffb6cc realm::ClusterNodeInner::_get_child_ref(unsigned long) const + 36
5   ArkynTestProject                       0x100ffada4 realm::ClusterNodeInner::find_child(realm::ObjKey, realm::ClusterNodeInner::ChildInfo&) const + 404
6   ArkynTestProject                       0x100ffb040 realm::ClusterNodeInner::try_get(realm::ObjKey, realm::ClusterNode::State&) const + 68
7   ArkynTestProject                       0x100fff20c realm::ClusterTree::try_get(realm::ObjKey) const + 132
8   ArkynTestProject                       0x10124cd34 realm::TableClusterTree::try_get_obj(realm::ObjKey) const + 60
9   ArkynTestProject                       0x10124ccec realm::Table::try_get_object(realm::ObjKey) const + 52
10  ArkynTestProject                       0x101242de4 realm::TableView::try_get_object(unsigned long) const + 196
11  ArkynTestProject                       0x101237e68 realm::util::Optional<realm::Obj> realm::Results::try_get<realm::Obj>(unsigned long) + 1076
12  ArkynTestProject                       0x1012378d4 realm::Obj realm::Results::get<realm::Obj>(unsigned long) + 64
13  ArkynTestProject                       0x100cf8ee0 RLMAccessorContext auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)::operator()<realm::Obj*>(RLMAccessorContext&) const + 56
14  ArkynTestProject                       0x100cf88e4 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&)&&) + 1412
15  ArkynTestProject                       0x100cf8354 RLMAccessorContext realm::Results::dispatch<auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long)::'lambda'(RLMAccessorContext&)>(RLMAccessorContext&) const + 56
16  ArkynTestProject                       0x100cf206c auto realm::Results::get<RLMAccessorContext>(RLMAccessorContext&, unsigned long) + 56
17  ArkynTestProject                       0x100efc8c0 -[RLMResults objectAtIndex:]::$_7::operator()() const + 48
18  ArkynTestProject                       0x100ef86dc auto translateRLMResultsErrors<-[RLMResults objectAtIndex:]::$_7>(-[RLMResults objectAtIndex:]::$_7&&, NSString*) + 36
19  ArkynTestProject                       0x100ef8668 -[RLMResults objectAtIndex:] + 100
20  ArkynTestProject                       0x10190d694 Results.subscript.getter + 212
21  ArkynTestProject                       0x10190e478 Results.subscript.read + 128
22  ArkynTestProject                       0x10190e37c protocol witness for Collection.subscript.read in conformance Results<A> + 80
23  libswiftCore.dylib                     0x1e31eba88 Slice.subscript.getter + 1212
24  libswiftCore.dylib                     0x1e31ed9fc Slice.subscript.read + 164
25  libswiftCore.dylib                     0x1e31ed800 protocol witness for Collection.subscript.read in conformance Slice<A> + 64
26  SwiftUI                                0x1e62e922c ForEach.IDGenerator.makeID(data:index:offset:) + 168
27  SwiftUI                                0x1e638dfa8 ForEachState.update(view:) + 2068
28  SwiftUI                                0x1e62a51ec ForEachState.Info.Init.value.getter + 240
29  SwiftUI                                0x1e635b698 protocol witness for Rule.value.getter in conformance ForEachState<A, B, C>.Info.Init + 48
30  SwiftUI                                0x1e61d73f0 implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:) + 296
31  AttributeGraph                         0x210a7ab18 AG::Graph::UpdateStack::update() + 524
32  AttributeGraph                         0x210a7a508 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 396
33  AttributeGraph                         0x210a79318 AG::Subgraph::update(unsigned int) + 876
34  SwiftUI                                0x1e6186840 GraphHost.flushTransactions() + 428
35  SwiftUI                                0x1e6184ac4 closure #1 in ViewRendererHost.render(interval:updateDisplayList:) + 484
36  SwiftUI                                0x1e624cd5c ViewRendererHost.render(interval:updateDisplayList:) + 388
37  SwiftUI                                0x1e66fec4c closure #1 in _UIHostingView.requestImmediateUpdate() + 72
38  SwiftUI                                0x1e61c46e0 thunk for @escaping @callee_guaranteed () -> () + 32
39  libdispatch.dylib                      0x1de256e68 _dispatch_call_block_and_release + 32
40  libdispatch.dylib                      0x1de258a2c _dispatch_client_callout + 20
41  libdispatch.dylib                      0x1de266f48 _dispatch_main_queue_drain + 928
42  libdispatch.dylib                      0x1de266b98 _dispatch_main_queue_callback_4CF + 44
43  CoreFoundation                         0x1de5aa2f0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
44  CoreFoundation                         0x1de5641f4 __CFRunLoopRun + 2532
45  CoreFoundation                         0x1de5776b8 CFRunLoopRunSpecific + 600
46  GraphicsServices                       0x1fa611374 GSEventRunModal + 164
47  UIKitCore                              0x1e0edce88 -[UIApplication _run] + 1100
48  UIKitCore                              0x1e0c5e5ec UIApplicationMain + 364
49  SwiftUI                                0x1e63ae640 closure #1 in KitRendererCommon(_:) + 164
50  SwiftUI                                0x1e62dc524 runApp<A>(_:) + 252
51  SwiftUI                                0x1e62bd810 static App.main() + 128
52  ArkynTestProject                       0x1009ce428 static ArkynTestProject.$main() + 40
53  ArkynTestProject                       0x1009d1a2c main + 12
54  dyld                                   0x104cadce4 start + 520

Thread 1 name:  com.apple.uikit.eventfetch-thread
Thread 1:
0   libsystem_kernel.dylib                 0x2160b34e0 mach_msg_trap + 8
1   libsystem_kernel.dylib                 0x2160b3b24 mach_msg + 76
2   CoreFoundation                         0x1de55f820 __CFRunLoopServiceMachPort + 372
3   CoreFoundation                         0x1de563cac __CFRunLoopRun + 1180
4   CoreFoundation                         0x1de5776b8 CFRunLoopRunSpecific + 600
5   Foundation                             0x1dfd5e414 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6   Foundation                             0x1dfd9fcac -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7   UIKitCore                              0x1e0e56fb0 -[UIEventFetcher threadMain] + 524
8   Foundation                             0x1dfdae55c __NSThread__start__ + 808
9   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
10  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 2 name:  Realm notification listener
Thread 2:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x101154fcc realm::_impl::ExternalCommitHelper::listen() + 368
2   ArkynTestProject                       0x101158290 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0::operator()() const + 28
3   ArkynTestProject                       0x10115822c decltype(static_cast<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(fp)()) std::__1::__invoke<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0&&) + 24
4   ArkynTestProject                       0x1011581f4 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_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&)::$_0>&, std::__1::__tuple_indices<>) + 32
5   ArkynTestProject                       0x101157a10 void* std::__1::__thread_proxy<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&)::$_0> >(void*) + 84
6   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
7   libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 3:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x1017800c8 realm::util::network::Service::IoReactor::wait_and_activate(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 420
2   ArkynTestProject                       0x1017810fc realm::util::network::Service::IoReactor::wait_and_advance(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&, realm::util::network::Service::OperQueue<realm::util::network::Service::AsyncOper>&) + 84
3   ArkynTestProject                       0x101786c84 realm::util::network::Service::Impl::wait_and_process_io(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&) + 136
4   ArkynTestProject                       0x10178217c realm::util::network::Service::Impl::run() + 536
5   ArkynTestProject                       0x101781f30 realm::util::network::Service::run() + 28
6   ArkynTestProject                       0x10157d284 realm::sync::ClientImpl::run() + 64
7   ArkynTestProject                       0x101583d90 realm::sync::Client::run() + 28
8   ArkynTestProject                       0x101395650 realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()::operator()() const + 256
9   ArkynTestProject                       0x101395508 decltype(static_cast<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(fp)()) std::__1::__invoke<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()&&) + 24
10  ArkynTestProject                       0x1013954d0 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x101394cec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 4:
0   libsystem_pthread.dylib                0x24fd21e54 start_wqthread + 0

Thread 5:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   libsystem_info.dylib                   0x1e969dc18 _mdns_search_ex + 1216
2   libsystem_info.dylib                   0x1e969d12c mdns_addrinfo + 368
3   libsystem_info.dylib                   0x1e969f810 search_addrinfo + 176
4   libsystem_info.dylib                   0x1e9692974 si_addrinfo + 2132
5   libsystem_info.dylib                   0x1e968fca4 getaddrinfo + 168
6   ArkynTestProject                       0x1017816b4 realm::util::network::Service::Impl::resolve(realm::util::network::Resolver::Query const&, std::__1::error_code&) + 280
7   ArkynTestProject                       0x101789af0 realm::util::network::Service::Impl::resolver_thread() + 448
8   ArkynTestProject                       0x101789924 realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()::operator()() const + 28
9   ArkynTestProject                       0x1017898d4 decltype(static_cast<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(fp)()) std::__1::__invoke<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()&&) + 24
10  ArkynTestProject                       0x10178989c void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x1017890b8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 6:
0   libsystem_pthread.dylib                0x24fd21e54 start_wqthread + 0

Thread 7 name:  Realm notification listener
Thread 7:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x101154fcc realm::_impl::ExternalCommitHelper::listen() + 368
2   ArkynTestProject                       0x101158290 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0::operator()() const + 28
3   ArkynTestProject                       0x10115822c decltype(static_cast<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(fp)()) std::__1::__invoke<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0&&) + 24
4   ArkynTestProject                       0x1011581f4 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_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&)::$_0>&, std::__1::__tuple_indices<>) + 32
5   ArkynTestProject                       0x101157a10 void* std::__1::__thread_proxy<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&)::$_0> >(void*) + 84
6   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
7   libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 8:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x1017800c8 realm::util::network::Service::IoReactor::wait_and_activate(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 420
2   ArkynTestProject                       0x1017810fc realm::util::network::Service::IoReactor::wait_and_advance(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&, realm::util::network::Service::OperQueue<realm::util::network::Service::AsyncOper>&) + 84
3   ArkynTestProject                       0x101786c84 realm::util::network::Service::Impl::wait_and_process_io(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&) + 136
4   ArkynTestProject                       0x10178217c realm::util::network::Service::Impl::run() + 536
5   ArkynTestProject                       0x101781f30 realm::util::network::Service::run() + 28
6   ArkynTestProject                       0x10157d284 realm::sync::ClientImpl::run() + 64
7   ArkynTestProject                       0x101583d90 realm::sync::Client::run() + 28
8   ArkynTestProject                       0x101395650 realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()::operator()() const + 256
9   ArkynTestProject                       0x101395508 decltype(static_cast<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(fp)()) std::__1::__invoke<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()&&) + 24
10  ArkynTestProject                       0x1013954d0 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x101394cec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 9 name:  Realm notification listener
Thread 9:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x101154fcc realm::_impl::ExternalCommitHelper::listen() + 368
2   ArkynTestProject                       0x101158290 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0::operator()() const + 28
3   ArkynTestProject                       0x10115822c decltype(static_cast<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(fp)()) std::__1::__invoke<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0&&) + 24
4   ArkynTestProject                       0x1011581f4 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_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&)::$_0>&, std::__1::__tuple_indices<>) + 32
5   ArkynTestProject                       0x101157a10 void* std::__1::__thread_proxy<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&)::$_0> >(void*) + 84
6   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
7   libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 10:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x1017800c8 realm::util::network::Service::IoReactor::wait_and_activate(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 420
2   ArkynTestProject                       0x1017810fc realm::util::network::Service::IoReactor::wait_and_advance(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&, realm::util::network::Service::OperQueue<realm::util::network::Service::AsyncOper>&) + 84
3   ArkynTestProject                       0x101786c84 realm::util::network::Service::Impl::wait_and_process_io(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&) + 136
4   ArkynTestProject                       0x10178217c realm::util::network::Service::Impl::run() + 536
5   ArkynTestProject                       0x101781f30 realm::util::network::Service::run() + 28
6   ArkynTestProject                       0x10157d284 realm::sync::ClientImpl::run() + 64
7   ArkynTestProject                       0x101583d90 realm::sync::Client::run() + 28
8   ArkynTestProject                       0x101395650 realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()::operator()() const + 256
9   ArkynTestProject                       0x101395508 decltype(static_cast<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(fp)()) std::__1::__invoke<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()&&) + 24
10  ArkynTestProject                       0x1013954d0 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x101394cec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 11 name:  Realm notification listener
Thread 11:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x101154fcc realm::_impl::ExternalCommitHelper::listen() + 368
2   ArkynTestProject                       0x101158290 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0::operator()() const + 28
3   ArkynTestProject                       0x10115822c decltype(static_cast<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(fp)()) std::__1::__invoke<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0&&) + 24
4   ArkynTestProject                       0x1011581f4 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_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&)::$_0>&, std::__1::__tuple_indices<>) + 32
5   ArkynTestProject                       0x101157a10 void* std::__1::__thread_proxy<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&)::$_0> >(void*) + 84
6   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
7   libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 12:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x1017800c8 realm::util::network::Service::IoReactor::wait_and_activate(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 420
2   ArkynTestProject                       0x1017810fc realm::util::network::Service::IoReactor::wait_and_advance(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&, realm::util::network::Service::OperQueue<realm::util::network::Service::AsyncOper>&) + 84
3   ArkynTestProject                       0x101786c84 realm::util::network::Service::Impl::wait_and_process_io(std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >, bool&) + 136
4   ArkynTestProject                       0x10178217c realm::util::network::Service::Impl::run() + 536
5   ArkynTestProject                       0x101781f30 realm::util::network::Service::run() + 28
6   ArkynTestProject                       0x10157d284 realm::sync::ClientImpl::run() + 64
7   ArkynTestProject                       0x101583d90 realm::sync::Client::run() + 28
8   ArkynTestProject                       0x101395650 realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()::operator()() const + 256
9   ArkynTestProject                       0x101395508 decltype(static_cast<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(fp)()) std::__1::__invoke<realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()&&) + 24
10  ArkynTestProject                       0x1013954d0 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x101394cec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::SyncClient::SyncClient(std::__1::unique_ptr<realm::util::Logger, std::__1::default_delete<realm::util::Logger> >, realm::SyncClientConfig const&, std::__1::weak_ptr<realm::SyncManager const>)::'lambda0'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 13 name:  Realm notification listener
Thread 13:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   ArkynTestProject                       0x101154fcc realm::_impl::ExternalCommitHelper::listen() + 368
2   ArkynTestProject                       0x101158290 realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0::operator()() const + 28
3   ArkynTestProject                       0x10115822c decltype(static_cast<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(fp)()) std::__1::__invoke<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>(realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0&&) + 24
4   ArkynTestProject                       0x1011581f4 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_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&)::$_0>&, std::__1::__tuple_indices<>) + 32
5   ArkynTestProject                       0x101157a10 void* std::__1::__thread_proxy<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&)::$_0> >(void*) + 84
6   libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
7   libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 14:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   libsystem_info.dylib                   0x1e969dc18 _mdns_search_ex + 1216
2   libsystem_info.dylib                   0x1e969d12c mdns_addrinfo + 368
3   libsystem_info.dylib                   0x1e969f810 search_addrinfo + 176
4   libsystem_info.dylib                   0x1e9692974 si_addrinfo + 2132
5   libsystem_info.dylib                   0x1e968fca4 getaddrinfo + 168
6   ArkynTestProject                       0x1017816b4 realm::util::network::Service::Impl::resolve(realm::util::network::Resolver::Query const&, std::__1::error_code&) + 280
7   ArkynTestProject                       0x101789af0 realm::util::network::Service::Impl::resolver_thread() + 448
8   ArkynTestProject                       0x101789924 realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()::operator()() const + 28
9   ArkynTestProject                       0x1017898d4 decltype(static_cast<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(fp)()) std::__1::__invoke<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()&&) + 24
10  ArkynTestProject                       0x10178989c void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x1017890b8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 15:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   libsystem_info.dylib                   0x1e969dc18 _mdns_search_ex + 1216
2   libsystem_info.dylib                   0x1e969d12c mdns_addrinfo + 368
3   libsystem_info.dylib                   0x1e969f810 search_addrinfo + 176
4   libsystem_info.dylib                   0x1e9692974 si_addrinfo + 2132
5   libsystem_info.dylib                   0x1e968fca4 getaddrinfo + 168
6   ArkynTestProject                       0x1017816b4 realm::util::network::Service::Impl::resolve(realm::util::network::Resolver::Query const&, std::__1::error_code&) + 280
7   ArkynTestProject                       0x101789af0 realm::util::network::Service::Impl::resolver_thread() + 448
8   ArkynTestProject                       0x101789924 realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()::operator()() const + 28
9   ArkynTestProject                       0x1017898d4 decltype(static_cast<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(fp)()) std::__1::__invoke<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()&&) + 24
10  ArkynTestProject                       0x10178989c void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x1017890b8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 16:
0   libsystem_kernel.dylib                 0x2160b4e58 kevent + 8
1   libsystem_info.dylib                   0x1e969dc18 _mdns_search_ex + 1216
2   libsystem_info.dylib                   0x1e969d12c mdns_addrinfo + 368
3   libsystem_info.dylib                   0x1e969f810 search_addrinfo + 176
4   libsystem_info.dylib                   0x1e9692974 si_addrinfo + 2132
5   libsystem_info.dylib                   0x1e968fca4 getaddrinfo + 168
6   ArkynTestProject                       0x1017816b4 realm::util::network::Service::Impl::resolve(realm::util::network::Resolver::Query const&, std::__1::error_code&) + 280
7   ArkynTestProject                       0x101789af0 realm::util::network::Service::Impl::resolver_thread() + 448
8   ArkynTestProject                       0x101789924 realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()::operator()() const + 28
9   ArkynTestProject                       0x1017898d4 decltype(static_cast<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(fp)()) std::__1::__invoke<realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()&&) + 24
10  ArkynTestProject                       0x10178989c void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()>&, std::__1::__tuple_indices<>) + 32
11  ArkynTestProject                       0x1017890b8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::util::network::Service::Impl::add_resolve_oper(std::__1::unique_ptr<realm::util::network::Service::ResolveOperBase, realm::util::network::Service::LendersOperDeleter>)::'lambda'()> >(void*) + 84
12  libsystem_pthread.dylib                0x24fd229ac _pthread_start + 148
13  libsystem_pthread.dylib                0x24fd21e68 thread_start + 8

Thread 17 name:   Dispatch queue: com.apple.root.utility-qos
Thread 17:
0   libswiftCore.dylib                     0x1e33d1490 swift::ResolveAsSymbolicReference::operator()(swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*) + 52
1   libswiftCore.dylib                     0x1e33f7668 swift::Demangle::__runtime::Demangler::demangleSymbolicReference(unsigned char) + 232
2   libswiftCore.dylib                     0x1e33f7668 swift::Demangle::__runtime::Demangler::demangleSymbolicReference(unsigned char) + 232
3   libswiftCore.dylib                     0x1e33f3d80 swift::Demangle::__runtime::Demangler::demangleType(__swift::__runtime::llvm::StringRef, std::__1::function<swift::Demangle::__runtime::Node* (swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*)>) + 264
4   libswiftCore.dylib                     0x1e33d7d70 swift_getTypeByMangledNameImpl(swift::MetadataRequest, __swift::__runtime::llvm::StringRef, void const* const*, std::__1::function<swift::TargetMetadata<swift::InProcess> const* (unsigned int, unsigned int)>, std::__1::function<swift::TargetWitnessTable<swift::InProcess> const* (swift::TargetMetadata<swift::InProcess> const*, unsigned int)>) + 508
5   libswiftCore.dylib                     0x1e33d49a8 swift_getTypeByMangledName + 832
6   libswiftCore.dylib                     0x1e33d4cb8 swift_getTypeByMangledNameInContext + 168
7   AttributeGraph                         0x210a7fd70 AG::swift::metadata::mangled_type_name_ref(char const*, bool, AG::swift::metadata::ref_kind*) const + 220
8   AttributeGraph                         0x210a80ae0 AG::swift::metadata_visitor::visit_field(AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 72
9   AttributeGraph                         0x210a7f3b8 AG::swift::metadata::visit(AG::swift::metadata_visitor&) const + 1044
10  AttributeGraph                         0x210a7d6e0 AG::LayoutDescriptor::Builder::visit_element(AG::swift::metadata const*, AG::swift::metadata::ref_kind, unsigned long) + 436
11  AttributeGraph                         0x210a80b18 AG::swift::metadata_visitor::visit_field(AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 128
12  AttributeGraph                         0x210a7f3b8 AG::swift::metadata::visit(AG::swift::metadata_visitor&) const + 1044
13  AttributeGraph                         0x210a7d6e0 AG::LayoutDescriptor::Builder::visit_element(AG::swift::metadata const*, AG::swift::metadata::ref_kind, unsigned long) + 436
14  AttributeGraph                         0x210a80b18 AG::swift::metadata_visitor::visit_field(AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 128
15  AttributeGraph                         0x210a7f3b8 AG::swift::metadata::visit(AG::swift::metadata_visitor&) const + 1044
16  AttributeGraph                         0x210a7d6e0 AG::LayoutDescriptor::Builder::visit_element(AG::swift::metadata const*, AG::swift::metadata::ref_kind, unsigned long) + 436
17  AttributeGraph                         0x210a80b18 AG::swift::metadata_visitor::visit_field(AG::swift::metadata const*, AG::swift::field_record const&, unsigned long) + 128
18  AttributeGraph                         0x210a7f3b8 AG::swift::metadata::visit(AG::swift::metadata_visitor&) const + 1044
19  AttributeGraph                         0x210a7f82c AG::LayoutDescriptor::make_layout(AG::swift::metadata const*, AGComparisonMode, AG::LayoutDescriptor::HeapMode) + 596
20  AttributeGraph                         0x210a80bec AG::(anonymous namespace)::LayoutCache::drain_queue(void*) + 152
21  libdispatch.dylib                      0x1de258a2c _dispatch_client_callout + 20
22  libdispatch.dylib                      0x1de26a280 _dispatch_root_queue_drain + 680
23  libdispatch.dylib                      0x1de26a96c _dispatch_worker_thread2 + 164
24  libsystem_pthread.dylib                0x24fd22080 _pthread_wqthread + 228
25  libsystem_pthread.dylib                0x24fd21e5c start_wqthread + 8

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

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x00000002827264c0   x1: 0x000000010eda14d0   x2: 0x0000000000000004   x3: 0x00000001f080a2ec
    x4: 0x0000000281c1d410   x5: 0x0000000107aef770   x6: 0xd3479901e638dfa8   x7: 0x0000000000000a50
    x8: 0x000000010eda14d0   x9: 0x0000000000000010  x10: 0x0000000100f8aaa4  x11: 0x0000000000000004
   x12: 0x0000000000000141  x13: 0x00000000a4d20984  x14: 0x00000000a4f21000  x15: 0x0000000000000242
   x16: 0x0000000100f8aae4  x17: 0x0000000024e00000  x18: 0x0000000000000000  x19: 0x000000016f4a5880
   x20: 0x0000000238ed0a10  x21: 0x000000016f4a5578  x22: 0x0000000107ab0a38  x23: 0x0000000107ab0be0
   x24: 0x000000016f4a5480  x25: 0x00000001e33b2294  x26: 0x0000000238ed6e90  x27: 0x0000000238ed38c8
   x28: 0x000000016f4a54e0   fp: 0x000000016f4a47c0   lr: 0x0000000100f8aac8
    sp: 0x000000016f4a4780   pc: 0x0000000100f8ab08 cpsr: 0x80001000
   far: 0x000000010eda14e0  esr: 0x92000007 (Data Abort) byte read Translation fault

Binary Images:
       0x100958000 -        0x101d1ffff ArkynTestProject arm64  <77875b9ae36a3ccbbe19ce5c5d195323> /private/var/containers/Bundle/Application/679823B3-5C6C-4C3B-A06C-C68DCE202A15/ArkynTestProject.app/ArkynTestProject
       0x1e3014000 -        0x1e352afff libswiftCore.dylib arm64e  <5ef14d067bc93152b77433e6994af937> /usr/lib/swift/libswiftCore.dylib
       0x1e616e000 -        0x1e7205fff SwiftUI arm64e  <9bab2c1c95813bdcbc37fab1ad03dce0> /System/Library/Frameworks/SwiftUI.framework/SwiftUI
       0x210a77000 -        0x210ab1fff AttributeGraph arm64e  <de3100f9e8e3389285a796ad88bfbc56> /System/Library/PrivateFrameworks/AttributeGraph.framework/AttributeGraph
       0x1de255000 -        0x1de29afff libdispatch.dylib arm64e  <69dac9c7ddaf318eb068be596d142a2f> /usr/lib/system/libdispatch.dylib
       0x1de558000 -        0x1de9adfff CoreFoundation arm64e  <d2716f2f688b3d51ba8b17e6553b209e> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x1fa610000 -        0x1fa618fff GraphicsServices arm64e  <75a910dc87a43b3a8c0ea868b945f5d4> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x1e09c9000 -        0x1e2263fff UIKitCore arm64e  <e6e89bb5b5863725bf8f4c85dcd443bd> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x104c94000 -        0x104cebfff dyld arm64e  <d16b72c0d6193e4892622c10a1d3066f> /usr/lib/dyld
       0x2160b2000 -        0x2160e7fff libsystem_kernel.dylib arm64e  <c2fcc05874803c14b4790064a3f843e3> /usr/lib/system/libsystem_kernel.dylib
       0x1dfd46000 -        0x1e004efff Foundation arm64e  <feeef9b1b0e63561adfa3ef0302d23f8> /System/Library/Frameworks/Foundation.framework/Foundation
       0x24fd21000 -        0x24fd2cfff libsystem_pthread.dylib arm64e  <b48efcbed4f7308ba3fa172e0ea78e33> /usr/lib/system/libsystem_pthread.dylib
       0x1e968e000 -        0x1e96b3fff libsystem_info.dylib arm64e  <ecc6076f97e63c4f8507f1ac256bb0be> /usr/lib/system/libsystem_info.dylib
               0x0 - 0xffffffffffffffff ??? unknown-arch  <00000000000000000000000000000000> ???

EOF

Can you reproduce the bug?

Not yet

Reproduction Steps

It's difficult to reproduce the bug, I just know it happens at some point when the app is moved to the background.

Version

10.25.1

What SDK flavour are you using?

MongoDB Realm (i.e. Sync, auth, functions)

Are you using encryption?

No, not using encryption

Platform OS and version(s)

iOS 15.4.1

Build environment

Xcode version: 13.3.1 (13E500a) Dependency manager and version: SPM

tjuela commented 2 years ago

Also happens on 10.25.2

ejm01 commented 2 years ago

Hi I think this may be happening because an external sync change occurs and the client somehow tries to react when it's backgrounding. Are you doing anything prior to the app being backgrounded? If you can reproduce and share, that'd be super helpful.

pavel-ship-it commented 2 years ago

Hi @tjuela , Can you provide any information requested by Eric?

Hi I think this may be happening because an external sync change occurs and the client somehow tries to react when it's backgrounding. Are you doing anything prior to the app being backgrounded? If you can reproduce and share, that'd be super helpful.

leemaguire commented 2 years ago

You might need to disable file protection for a locked device. See https://www.mongodb.com/docs/realm/sdk/swift/realm-files/configure-and-open-a-realm/#use-realm-when-the-device-is-locked

leemaguire commented 2 years ago

@tjuela did the above suggestion help at all?

tjuela commented 2 years ago

No, fileprotection level was already set to .completeUntilFirstUserAuthentication