realm-swift: Crash when adding new objects during a write transaction on same thread
I recently upgraded my project from Realm 0.95.3 to 0.96.2, and now I’m seeing crashes when adding objects while another function is updating the default Realm.
Crash Logs for the relevant thread:
Thread : Crashed: com.apple.root.default-qos
0 flare 4297133284 RLMAddObjectToRealm (table.hpp:1698)
1 flare 4295357400 __32+[FLPerson updateFollowersInfo:]_block_invoke (FLPerson.m:539)
2 libdispatch.dylib 6855022312 _dispatch_call_block_and_release + 24
3 libdispatch.dylib 6855022248 _dispatch_client_callout + 16
4 libdispatch.dylib 6855080768 _dispatch_root_queue_drain + 2140
5 libdispatch.dylib 6855078620 _dispatch_worker_thread3 + 112
6 libsystem_pthread.dylib 6857200752 _pthread_wqthread + 1092
7 libsystem_pthread.dylib 6857199648 start_wqthread + 4
Thread : com.apple.root.default-qos
0 libsystem_kernel.dylib 6856388496 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 6857221020 _pthread_mutex_lock_wait + 96
2 flare 4298442652 realm::util::RobustMutex::low_level_lock() + 1292
3 flare 4299063588 realm::SharedGroup::do_begin_write() + 7392
4 flare 4297151420 RLMPromoteToWrite(realm::SharedGroup&, realm::History&, RLMSchema*) (group_shared.hpp:914)
5 flare 4297457840 -[RLMRealm beginWriteTransaction] (RLMRealm.mm:579)
6 flare 4295359692 +[FLPerson resetBlockingList] (FLPerson.m:639)
7 flare 4295357832 __45+[FLPerson updatePeopleCurrenUserBlocksInfo:]_block_invoke (FLPerson.m:556)
8 libdispatch.dylib 6855022312 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 6855022248 _dispatch_client_callout + 16
10 libdispatch.dylib 6855080768 _dispatch_root_queue_drain + 2140
11 libdispatch.dylib 6855078620 _dispatch_worker_thread3 + 112
12 libsystem_pthread.dylib 6857200752 _pthread_wqthread + 1092
13 libsystem_pthread.dylib 6857199648 start_wqthread + 4
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 28 (14 by maintainers)
@bdash is there anything I can do to help debug this issue? I’m getting a lot of crash reports with the same reason.