-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
Sometimes
Description
Our app seems to crash on startup due to realm.
We are performing some deletions with the filter operator at the app startup in a background thread that seems to cause the crash.
We are not able to reproduce it at the moment but some users is complaining about it.
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Thread 3 name: Thread 3 Crashed: 0 libsystem_kernel.dylib 0x00000002049de200 __pthread_kill + 8 1 libsystem_pthread.dylib 0x0000000214c1b1ac pthread_kill + 268 (pthread.c:1670) 2 libsystem_c.dylib 0x00000001cf7d5ca0 abort + 180 (abort.c:118) 3 Realm 0x000000010a0bad44 please_report_this_issue_in_github_realm_realm_core_v_12_9_0 + 12 4 Realm 0x000000010a0bb02c realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 260 5 Realm 0x000000010a0bae8c realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 328 6 Realm 0x0000000109e4624c void realm::util::terminate_with_info<char const&, unsigned long&>(char const*, int, char const*, char const*, char const&, unsigned long&) + 401996 (terminate.hpp:51) 7 Realm 0x0000000109f3f6f4 realm::Array::move(unsigned long, unsigned long, unsigned long) + 404 8 Realm 0x000000010a22db40 realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>::FunctionRef<realm::BPlusTree<long long>::erase(unsigned long)::'lambda'(realm::BPlusTreeNode*, unsigned long)&>(long ... + 36 9 Realm 0x0000000109f5e2a4 realm::BPlusTreeBase::bptree_erase(unsigned long, realm::util::FunctionRef<unsigned long (realm::BPlusTreeNode*, unsigned long)>) + 52 10 Realm 0x0000000109fa1cd0 realm::StringIndex::do_delete(realm::ObjKey, realm::StringData, unsigned long) + 956 11 Realm 0x0000000109fa2270 realm::StringIndex::erase(realm::ObjKey) + 156 12 Realm 0x000000010a06a88c realm::Table::erase_from_search_indexes(realm::ObjKey) + 76 13 Realm 0x0000000109f70c38 realm::ClusterTree::erase(realm::ObjKey, realm::CascadeState&) + 44 14 Realm 0x000000010a072660 realm::Table::batch_erase_rows(realm::BPlusTree<realm::ObjKey> const&) + 1136 15 Realm 0x000000010a08bcc4 realm::TableView::clear() + 144 16 Realm 0x000000010a1e409c realm::Results::clear() + 216 17 Realm 0x0000000109f15d9c -[RLMResults deleteObjectsFromRealm] + 1252764 (RLMResults.mm:498) 18 Realm 0x0000000109f0d854 -[RLMRealm deleteObjects:] + 144 (RLMRealm.mm:1014) 28 libdispatch.dylib 0x00000001cf7704b4 _dispatch_call_block_and_release + 32 (init.c:1518) 29 libdispatch.dylib 0x00000001cf771fdc _dispatch_client_callout + 20 (object.m:560) 30 libdispatch.dylib 0x00000001cf7750c8 _dispatch_queue_override_invoke + 788 (inline_internal.h:2632) 31 libdispatch.dylib 0x00000001cf783a6c _dispatch_root_queue_drain + 396 (inline_internal.h:0) 32 libdispatch.dylib 0x00000001cf784284 _dispatch_worker_thread2 + 164 (queue.c:7052) 33 libsystem_pthread.dylib 0x0000000214c14dbc _pthread_wqthread + 228 (pthread.c:2631) 34 libsystem_pthread.dylib 0x0000000214c14b98 start_wqthread + 8
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.31.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS
Build environment
Xcode version: XCode 14.0.1
Dependency manager and version: Cocoapods 1.11.3