Crash while trying to update realm database #8278
Labels
Encryption:Off
Frequency:Always
O-Community
Repro:Always
SDK-Use:Local
Waiting-For-Reporter
Waiting for more information from the reporter before we can proceed
How frequently does the bug occur?
Always
Description
When trying to update a realm table
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x29334 pthread_kill + 8
1 libsystem_pthread.dylib 0x2a9c pthread_kill + 272
2 libsystem_c.dylib 0x77b84 abort + 124
3 Realm 0x4986d8 please_report_this_issue_in_github_realm_realm_core_v_12_6_0 + 10
4 Realm 0x4989c0 realm::util::terminate_internal(std::*1::basic_stringstream<char, std::*1::char_traits, std::1::allocator >&) + 260
5 Realm 0x498820 realm::util::terminate(char const, char const, long, std::initializer_listrealm::util::Printable&&) + 328
6 Realm 0x32b0ac void realm::util::terminate<bool, bool>(char const, char const, long, bool, bool) + 54
7 Realm 0x32afbc realm::ArraySmallBlobs::get(char const*, unsigned long, realm::Allocator&) + 532
8 Realm 0x3b9c3c realm::StringData realm::Obj::_getrealm::StringData(realm::ColKey::Idx) const + 496
9 Realm 0x3bb9a0 realm::Obj::get_any(realm::ColKey) const + 216
10 Realm 0x37cc78 long long realm::IndexArray::index_string<(realm::IndexMethod)0>(realm::Mixed, realm::InternalFindResult&, realm::ClusterColumn const&) const + 1208
11 Realm 0x37c7b4 realm::IndexArray::index_string_find_first(realm::Mixed, realm::ClusterColumn const&) const + 44
12 Realm 0x458a80 realm::Table::create_object_with_primary_key(realm::Mixed const&, realm::FieldValues&&, realm::Table::UpdateMode, bool*) + 244
13 Realm 0x3201c realm::Table::create_object_with_primary_key(realm::Mixed const&, bool*) + 100
14 Realm 0xee18 realm::Object realm::Object::create<objc_object* strong, RLMAccessorContext>(RLMAccessorContext&, std::1::shared_ptrrealm::Realm const&, realm::ObjectSchema const&, objc_object __strong, realm::CreatePolicy, realm::ObjKey, realm::Obj) + 1348
15 Realm 0xe310 RLMAccessorContext::createObject(objc_object, realm::CreatePolicy, bool, realm::ObjKey) + 2348
16 Realm 0xf6e4 realm::Obj RLMAccessorContext::unboxrealm::Obj(objc_object, realm::CreatePolicy, realm::ObjKey) + 92
17 Realm 0x1be3c auto void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()realm::Obj*(objc_object* __strong&) const + 104
18 Realm 0x1b69c auto realm::switch_on_type<realm::Obj, void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(realm::PropertyType, RLMAccessorContext&&) + 364
19 Realm 0x1b40c auto realm::List::dispatch<void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(objc_object* __strong&) const + 68
20 Realm 0x1b044 void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy) + 240
21 Realm 0x2948c auto void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()<objc_object* __strong&>(objc_object* __strong&) const + 104
22 Realm 0x29320 void RLMStatelessAccessorContext::enumerate_collection<void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(objc_object*, objc_object* __strong&) + 316
23 Realm 0x28ce0 void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy) + 192
24 Realm 0x28790 void realm::Object::set_property_value_impl<objc_object* __strong, RLMAccessorContext>(RLMAccessorContext&, realm::Property const&, objc_object* __strong, realm::CreatePolicy, bool) + 700
25 Realm 0xf570 realm::Object realm::Object::create<objc_object* strong, RLMAccessorContext>(RLMAccessorContext&, std::1::shared_ptrrealm::Realm const&, realm::ObjectSchema const&, objc_object __strong, realm::CreatePolicy, realm::ObjKey, realm::Obj) + 3228
26 Realm 0xe310 RLMAccessorContext::createObject(objc_object, realm::CreatePolicy, bool, realm::ObjKey) + 2348
27 Realm 0xf6e4 realm::Obj RLMAccessorContext::unboxrealm::Obj(objc_object, realm::CreatePolicy, realm::ObjKey) + 92
28 Realm 0x1be3c auto void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()realm::Obj*(objc_object* __strong&) const + 104
29 Realm 0x1b69c auto realm::switch_on_type<realm::Obj, void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(realm::PropertyType, RLMAccessorContext&&) + 364
30 Realm 0x1b40c auto realm::List::dispatch<void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(objc_object* __strong&) const + 68
31 Realm 0x1b044 void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy) + 240
32 Realm 0x2948c auto void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()<objc_object* __strong&>(objc_object* __strong&) const + 104
33 Realm 0x29320 void RLMStatelessAccessorContext::enumerate_collection<void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(objc_object*, objc_object* __strong&) + 316
34 Realm 0x28ce0 void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy) + 192
35 Realm 0x28790 void realm::Object::set_property_value_impl<objc_object* __strong, RLMAccessorContext>(RLMAccessorContext&, realm::Property const&, objc_object* __strong, realm::CreatePolicy, bool) + 700
36 Realm 0xf570 realm::Object realm::Object::create<objc_object* strong, RLMAccessorContext>(RLMAccessorContext&, std::1::shared_ptrrealm::Realm const&, realm::ObjectSchema const&, objc_object __strong, realm::CreatePolicy, realm::ObjKey, realm::Obj) + 3228
37 Realm 0xe310 RLMAccessorContext::createObject(objc_object, realm::CreatePolicy, bool, realm::ObjKey) + 2348
38 Realm 0xf6e4 realm::Obj RLMAccessorContext::unboxrealm::Obj(objc_object, realm::CreatePolicy, realm::ObjKey) + 92
39 Realm 0x1be3c auto void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()realm::Obj*(objc_object* __strong&) const + 104
40 Realm 0x1b69c auto realm::switch_on_type<realm::Obj, void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(realm::PropertyType, RLMAccessorContext&&) + 364
41 Realm 0x1b40c auto realm::List::dispatch<void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)>(objc_object* __strong&) const + 68
42 Realm 0x1b044 void realm::List::add<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy) + 240
43 Realm 0x2948c auto void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* __strong&)::operator()<objc_object* __strong&>(objc_object* __strong&) const + 104
44 Realm 0x29320 void RLMStatelessAccessorContext::enumerate_collection<void realm::List::assign<objc_object* __strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* __strong&, realm::CreatePolicy)::'lambda'(objc_object* _strong&)>(objc_object*, objc_object* strong&) + 316
45 Realm 0x28ce0 void realm::List::assign<objc_object* strong&, RLMAccessorContext>(RLMAccessorContext&, objc_object* strong&, realm::CreatePolicy) + 192
46 Realm 0x28790 void realm::Object::set_property_value_impl<objc_object* strong, RLMAccessorContext>(RLMAccessorContext&, realm::Property const&, objc_object* strong, realm::CreatePolicy, bool) + 700
47 Realm 0xf570 realm::Object realm::Object::create<objc_object* *strong, RLMAccessorContext>(RLMAccessorContext&, std::1::shared_ptrrealm::Realm const&, realm::ObjectSchema const&, objc_object __strong, realm::CreatePolicy, realm::ObjKey, realm::Obj) + 3228
48 Realm 0xe310 RLMAccessorContext::createObject(objc_object, realm::CreatePolicy, bool, realm::ObjKey) + 2348
49 Realm 0x10dce4 RLMAddObjectToRealm + 244
50 RealmSwift 0xd6a64 $s10RealmSwift0A0V3add_6updateySo0aB6ObjectC_AC12UpdatePolicyOtF + 868
51 RealmSwift 0xd6cd0 $s10RealmSwift0A0V3add_6updateyx_AC12UpdatePolicyOtSTRzSo0aB6ObjectC7ElementRczlF + 392
52 ThermaFY Eco 0x214230 SyncInteractor.storeEPCSurveys(objects:) + 256 (SyncInteractor.swift:256)
53 ThermaFY Eco 0x213d78 SyncInteractor.storeNewData(objects:) + 142 (SyncInteractor.swift:142)
54 ThermaFY Eco 0x212750 closure #1 in closure #1 in closure #1 in SyncInteractor.loadAndStore(shouldDelete:) + 86 (SyncInteractor.swift:86)
55 ThermaFY Eco 0x217b14 partial apply for closure #1 in closure #1 in closure #1 in SyncInteractor.loadAndStore(shouldDelete:) + 52 (:52)
56 RealmSwift 0xd5664 $s10RealmSwift0A0V5write16withoutNotifying_xSaySo20RLMNotificationTokenCG_xyKXEtKlF + 320
57 ThermaFY Eco 0x2124a4 closure #1 in closure #1 in SyncInteractor.loadAndStore(shouldDelete:) + 81 (SyncInteractor.swift:81)
58 ThermaFY Eco 0x2128d8 thunk for @escaping @callee_guaranteed (@guaranteed [A])
> () + 24 (<compilergenerated>:24)59 RxSwift 0xe0e50 $s7RxSwift21PrimitiveSequenceTypePA2A11SingleTraitO0G0RtzrlE9subscribe9onSuccess0I5ErrorAA10Disposable_py7ElementQzcSg_ys0K0_pcSgtFyAA0F5EventOyAMGcfU + 416
60 RxSwift 0xe0848 $s7RxSwift21PrimitiveSequenceTypePA2A11SingleTraitO0G0RtzrlE9subscribeyAA10Disposable_pyAA0F5EventOy7ElementQzGcFyAA0J0OyAMGcfU + 696
61 RxSwift 0xa2588 $s7RxSwift14ObservableTypePAAE9subscribeyAA10Disposable_pyAA5EventOy7ElementQzGcFyAJcfU + 124
62 RxSwift 0xe340 $s7RxSwift17AnonymousObserverC6onCoreyyAA5EventOyxGF + 88
63 RxSwift 0xa8b30 $s7RxSwift12ObserverBaseC2onyyAA5EventOyxGF + 244
64 RxSwift 0xa8dd4 $s7RxSwift12ObserverBaseCyxGAA0C4TypeA2aEP2onyyAA5EventOy7ElementQzGFTW + 28
65 RxSwift 0xe6aec $s7RxSwift4SinkC9forwardOnyyAA5EventOy7ElementQzGF + 316
66 RxSwift 0x8ae88 $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLC2onyyAA5EventOyxGF + 660
67 RxSwift 0x8b660 $s7RxSwift7MapSink33_5428EFA9A9B0C0340021B871D2E5AC01LLCyxq_GAA12ObserverTypeA2aFP2onyyAA5EventOy7ElementQzGFTW + 20
68 RxSwift 0xe6aec $s7RxSwift4SinkC9forwardOnyyAA5EventOy7ElementQzGF + 316
69 RxSwift 0x599c4 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLC2onyyAA5EventOy7ElementQzGF + 384
70 RxSwift 0x59d58 $s7RxSwift23AnonymousObservableSink33_95EBF5692819D58425EC2DD0512D115ALLCyxGAA12ObserverTypeA2aFP2onyyAA5EventOy7ElementQzGFTW + 20
71 RxSwift 0xec5c $s7RxSwift11AnyObserverVyACyxGqd__c7ElementQyd__RszAA0D4TypeRd__lufcyAA5EventOyxGcqd__cfu_yAJcfu0 + 76
72 RxSwift 0xecc0 $s7RxSwift11AnyObserverV2onyyAA5EventOyxGF + 84
73 RxSwift 0xe0294 $s7RxSwift21PrimitiveSequenceTypePA2A11SingleTraitO0G0RtzrlE6create9subscribeAA0cD0VyAE7ElementQzGAA10Disposable_pyAA0F5EventOyAMGcc_tFZAaO_pAA11AnyObserverVyAMGcfU_yARcfU + 476
74 Moya 0x20dcc $s7RxSwift11SingleEventOy4Moya8ResponseCGIegn_AGIegg_TR + 80
75 Moya 0x20ed4 $s7RxSwift8ReactiveV4MoyaAD0D12ProviderTypeRzlE7request_13callbackQueueAA17PrimitiveSequenceVyAA11SingleTraitOAD8ResponseCG6TargetQz_So17OS_dispatch_queueCSgtFAA10Disposable_pyAA0L5EventOyAMGccfU_ys6ResultOyAmD0D5ErrorOGcfU + 240
76 Moya 0x17a0c $s4Moya0A8ProviderC13requestNormal_13callbackQueue8progress10completionAA11Cancellable_px_So17OS_dispatch_queueCSgyAA16ProgressResponseVcSgys6ResultOyAA0N0CAA0A5ErrorOGctFyAUcfU + 816
77 Moya 0x18aa4 $s4Moya0A8ProviderC13requestNormal_13callbackQueue8progress10completionAA11Cancellable_px_So17OS_dispatch_queueCSgyAA16ProgressResponseVcSgys6ResultOyAA0N0CAA0A5ErrorOGctFyAPy10Foundation10URLRequestVATGcfU0_yAUcfU + 968
78 Moya 0x1e50c $s4Moya0A8ProviderC20sendAlamofireRequest33_29224DEABDDE279B92464CA1BE771359LL_6target13callbackQueue8progress10completionAA16CancellableTokenCqd___xSo17OS_dispatch_queueCSgyAA16ProgressResponseVcSgys6ResultOyAA0U0CAA0A5ErrorOGct0D00E0CRbd__AA11RequestableRd__lFySo17NSHTTPURLResponseCSg_10Foundation10URLRequestVSgA4_4DataVSgs0W0_pSgtcfU0 + 1600
79 Moya 0x1fbb0 $s4Moya0A8ProviderC20sendAlamofireRequest33_29224DEABDDE279B92464CA1BE771359LL_6target13callbackQueue8progress10completionAA16CancellableTokenCqd___xSo17OS_dispatch_queueCSgyAA16ProgressResponseVcSgys6ResultOyAA0U0CAA0A5ErrorOGct0D00E0CRbd__AA11RequestableRd__lFySo17NSHTTPURLResponseCSg_10Foundation10URLRequestVSgA4_4DataVSgs0W0_pSgtcfU0_TA + 184
80 Moya 0xc7b8 $s9Alamofire11DataRequestC4MoyaE8response13callbackQueue17completionHandlerACXDSo17OS_dispatch_queueCSg_ySo17NSHTTPURLResponseCSg_10Foundation10URLRequestVSgAN0B0VSgs5Error_pSgtctFyAA0B8ResponseVyAtA7AFErrorOGcfU0 + 496
81 Alamofire 0xd6530 $s9Alamofire11DataRequestC8response5queue17completionHandlerACXDSo012OS_dispatch_E0C_yAA0B8ResponseVy10Foundation0B0VSgAA7AFErrorOGctFyycfU_yycfU_yycfU_yycfU + 80
82 Alamofire 0x20b68 $sIeg_IeyB_TR + 48
83 libdispatch.dylib 0x2a84 _dispatch_call_block_and_release + 32
84 libdispatch.dylib 0x481c _dispatch_client_callout + 20
85 libdispatch.dylib 0x12c70 _dispatch_main_queue_callback_4CF + 884
86 CoreFoundation 0xa3a2c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
87 CoreFoundation 0x9d904 __CFRunLoopRun + 2524
88 CoreFoundation 0x9c9f4 CFRunLoopRunSpecific + 600
89 GraphicsServices 0x3734 GSEventRunModal + 164
90 UIKitCore 0xbca75c -[UIApplication _run] + 1072
91 UIKitCore 0xbcffcc UIApplicationMain + 168
92 ThermaFY Eco
The text was updated successfully, but these errors were encountered: