Firebase title: realm::util::terminate(char const*, char const*, lengthy, std::initializer_listrealm::util::Printable&&) SIGABRT (ABORT)
This bug occurs in manufacturing and it is a large downside for us, however we will not determine what’s incorrect. The bug happens 100% in BACKGROUND.
We create Realm inside autoreleasepoo {}
perhaps that is the rationale. The purpose is that the bug is never reproduced and perhaps somebody has already solved this downside. It’s arduous to grasp what we do incorrect when utilizing Realm.
Stacktrace
Crashed: Realm notification listener
0 Instance 0x123d66c realm::Transaction::Transaction(std::__1::shared_ptr<realm::DB>, realm::SlabAlloc*, realm::DB::ReadLockInfo&, realm::DB::TransactStage) + 88568
1 Instance 0x11186f0 std::__1::shared_ptr<realm::Transaction> (nameless 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&&) + 189196
2 Instance 0x1112dac realm::DB::start_read(realm::VersionID) + 166344
3 Instance 0x13749fc realm::_impl::RealmCoordinator::run_async_notifiers() + 1363336
4 Instance 0x137492c realm::_impl::RealmCoordinator::on_change() + 1363128
5 Instance 0x135924c realm::_impl::ExternalCommitHelper::pay attention() + 1250776
6 Instance 0x1359378 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&, realm::RealmConfig const&)::$_0>>(void*) + 1251076
7 libsystem_pthread.dylib 0xb2c0 <redacted> + 128
8 libsystem_pthread.dylib 0xb220 _pthread_start + 44
9 libsystem_pthread.dylib 0xecdc thread_start + 4
com.apple.main-thread
0 libc++.1.dylib 0xf190 std::__1::basic_ostream<wchar_t, std::__1::char_traits<wchar_t> >::flush() + 486
1 libsystem_c.dylib 0x5bbb4 __cxa_finalize_ranges + 384
2 libsystem_c.dylib 0x5bec4 exit + 24
3 UIKitCore 0x8c3fec -[UIApplication terminateWithSuccess] + 466
4 UIKitCore 0x17fd7c __98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 + 344
5 UIKitCore 0x8c80ac _runAfterCACommitDeferredBlocks + 296
6 UIKitCore 0x8b6bfc _cleanUpAfterCAFlushAndRunDeferredBlocks + 352
7 UIKitCore 0x8e3a6c _afterCACommitHandler + 116
8 CoreFoundation 0xaa4fc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
9 CoreFoundation 0xa5224 __CFRunLoopDoObservers + 412
10 CoreFoundation 0xa57a0 __CFRunLoopRun + 1228
11 CoreFoundation 0xa4fb4 CFRunLoopRunSpecific + 436
12 GraphicsServices 0xa79c GSEventRunModal + 104
13 UIKitCore 0x8bcc38 UIApplicationMain + 212
14 Instance 0x19015c essential + 22 (AppDelegate.swift:22)
15 libdyld.dylib 0x18e0 begin + 4
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x180f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x175a0 mach_msg + 72
2 CoreFoundation 0xaa914 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0xa5824 __CFRunLoopRun + 1360
4 CoreFoundation 0xa4fb4 CFRunLoopRunSpecific + 436
5 Basis 0x795c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6 Basis 0x77ec -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKitCore 0x9a2754 -[UIEventFetcher threadMain] + 136
8 Basis 0x1344a0 __NSThread__start__ + 984
9 libsystem_pthread.dylib 0xb2c0 <redacted> + 128
10 libsystem_pthread.dylib 0xb220 _pthread_start + 44
11 libsystem_pthread.dylib 0xecdc thread_start + 4
com.apple.CFSocket.personal
0 libsystem_kernel.dylib 0x23328 __select + 8
1 CoreFoundation 0xb35f8 __CFSocketManager + 620
2 libsystem_pthread.dylib 0xb2c0 <redacted> + 128
3 libsystem_pthread.dylib 0xb220 _pthread_start + 44
4 libsystem_pthread.dylib 0xecdc thread_start + 4
JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x22ee4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3cf8 <redacted> + 636
2 libc++.1.dylib 0x8090 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
3 JavaScriptCore 0x8aaa0 <redacted> + 108
4 JavaScriptCore 0x8ea94 <redacted> + 176
5 JavaScriptCore 0x8e20c <redacted> + 10
6 JavaScriptCore 0x8fc4c <redacted> + 38
7 libsystem_pthread.dylib 0xb2c0 <redacted> + 128
8 libsystem_pthread.dylib 0xb220 _pthread_start + 44
9 libsystem_pthread.dylib 0xecdc thread_start + 4
com.apple.coreaudio.AQClient
0 libsystem_kernel.dylib 0x180f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x175a0 mach_msg + 72
2 CoreFoundation 0xaa914 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0xa5824 __CFRunLoopRun + 1360
4 CoreFoundation 0xa4fb4 CFRunLoopRunSpecific + 436
5 AudioToolbox 0x2317bc <redacted> + 156
6 AudioToolbox 0x4c04f8 <redacted> + 88
7 libsystem_pthread.dylib 0xb2c0 <redacted> + 128
8 libsystem_pthread.dylib 0xb220 _pthread_start + 44
9 libsystem_pthread.dylib 0xecdc thread_start + 4
com.instance.RealmQueue
0 libsystem_kernel.dylib 0x22f2c __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x4a84 <redacted> + 92
2 libsystem_pthread.dylib 0x49f4 <redacted> + 272
3 libc++.1.dylib 0x3c610 std::__1::mutex::lock() + 12
4 Instance 0x137432c realm::_impl::RealmCoordinator::commit_write(realm::Realm&, bool) + 1361592
5 Instance 0x13bdcd4 realm::Realm::commit_transaction() + 22180
6 Instance 0x17382d0 -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 648 (RLMRealm.mm:648)
7 Instance 0x17ca298 Realm.commitWrite(withoutNotifying:) + 332 (Realm.swift:332)
8 Instance 0x17ca1b4 Realm.write<A>(withoutNotifying:_:) + 270 (Realm.swift:270)
9 Instance 0x12c88c specialised Realm.safeWrite(file:operate:line:_:) + 188 (Realm+Helpers.swift:188)
10 Instance 0x38ca3c closure #1 in RoomGameTableRepo.removeRoomGameTables(utilizing:) + 407 (RoomGameTableRepo.swift:407)
11 Instance 0x38e394 partial apply for closure #1 in RoomGameTableRepo.removeRoomGameTables(utilizing:) + 4301038484 (<compiler-generated>:4301038484)
12 Instance 0x1402c4 closure #1 in static Realm.async(on:configuration:file:operate:line:motion:) + 206 (Realm+Helpers.swift:206)
13 Instance 0x3e4b1c thunk for @escaping @callee_guaranteed () -> () + 4301392668 (<compiler-generated>:4301392668)
14 Instance 0x13e5dc partial apply for thunk for @escaping @callee_guaranteed () -> (@unowned ()?) + 4298614236 (<compiler-generated>:4298614236)
15 Instance 0x140cb8 partial apply for specialised closure #1 in static Realm.performTaskOnRealmQueue<A>(methodology:file:operate:line:_:) + 236 (Realm+Helpers.swift:236)
16 Instance 0x2dc27c thunk for @escaping @callee_guaranteed @Sendable () -> () + 4300309116 (<compiler-generated>:4300309116)
17 libdispatch.dylib 0x5fa38 _dispatch_call_block_and_release + 24
18 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
19 libdispatch.dylib 0x9324 _dispatch_lane_serial_drain$VARIANT$mp + 592
20 libdispatch.dylib 0x9e40 _dispatch_lane_invoke$VARIANT$mp + 428
21 libdispatch.dylib 0x124ac _dispatch_workloop_worker_thread + 596
22 libsystem_pthread.dylib 0xc114 _pthread_wqthread + 304
23 libsystem_pthread.dylib 0xecd4 start_wqthread + 4
notificationQueue
0 libsystem_kernel.dylib 0x22ee4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3cf8 <redacted> + 636
2 Basis 0x753b8 -[__NSOperationInternal _waitUntilFinished:] + 772
3 Basis 0x2fea4 -[__NSObserver _doit:] + 240
4 CoreFoundation 0x8a21c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
5 CoreFoundation 0x8a1e8 ___CFXRegistrationPost_block_invoke + 64
6 CoreFoundation 0x896dc _CFXRegistrationPost + 392
7 CoreFoundation 0x89388 ___CFXNotificationPost_block_invoke + 96
8 CoreFoundation 0x2c54 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1496
9 CoreFoundation 0x88e38 _CFXNotificationPost + 696
10 Basis 0x61a4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
11 Instance 0x3df618 closure #1 in postNotification(title:object:userInfo:) + 246 (Util.swift:246)
12 Instance 0x3df870 partial apply for closure #1 in closure #1 in runInMainQueue(_:) + 56 (Util.swift:56)
13 Instance 0x2dc27c thunk for @escaping @callee_guaranteed @Sendable () -> () + 4300309116 (<compiler-generated>:4300309116)
14 libdispatch.dylib 0x5fa38 _dispatch_call_block_and_release + 24
15 libdispatch.dylib 0x607d4 _dispatch_client_callout + 16
16 libdispatch.dylib 0x9324 _dispatch_lane_serial_drain$VARIANT$mp + 592
17 libdispatch.dylib 0x9e40 _dispatch_lane_invoke$VARIANT$mp + 428
18 libdispatch.dylib 0x124ac _dispatch_workloop_worker_thread + 596
19 libsystem_pthread.dylib 0xc114 _pthread_wqthread + 304
20 libsystem_pthread.dylib 0xecd4 start_wqthread + 4