Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RLMDeleteObjectFromRealm crash #8724

Open
abbottkilroy opened this issue Dec 3, 2024 · 2 comments
Open

RLMDeleteObjectFromRealm crash #8724

abbottkilroy opened this issue Dec 3, 2024 · 2 comments

Comments

@abbottkilroy
Copy link

How frequently does the bug occur?

Sometimes

Description

Our latest app release is showing the following crash in Sentry

Stacktrace & log output

<img width="888" alt="Screenshot 2024-12-03 at 9 52 28 AM" src="https://github.com/user-attachments/assets/36c3a0a5-eb3b-4c5a-a265-3a9ce372cd41">

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

10.49.2

What Atlas Services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

iOS 15.6.1

Build environment

Xcode version: 16.1

@abbottkilroy
Copy link
Author

Crashed in non-app
libsystem_kernel
+0x007b38
__pthread_kill

Show 2 more frames
Libre3
+0xc0059c
please_report_this_issue_in_github_realm_realm_core_v_14_5_2 (terminate.cpp:65)
In App
Libre3
+0xc007dc
realm::util::terminate_internal (terminate.cpp:143)
In App
Libre3
+0xc006bc
realm::util::terminate_with_info (terminate.cpp:162)
In App
Libre3
+0xc005b0
realm::util::terminate (terminate.cpp:149)
In App
Libre3
+0x9eabc4
realm::StringIndex::do_delete (index_string.cpp:1638)
In App
Libre3
+0x9ea6c0
realm::StringIndex::do_delete (index_string.cpp:1621)
In App
Libre3
+0x9e9b30
realm::StringIndex::erase_string (index_string.cpp:1675)
In App
Libre3
+0x9e99e8
realm::StringIndex::erase (index_string.cpp:1362)
In App
Libre3
+0xbc14a4
realm::Table::erase_from_search_indexes (table.cpp:765)
In App
Libre3
+0x99ab68
realm::ClusterTree::erase (cluster_tree.cpp:998)
In App
Libre3
+0xbc2c34
realm::Table::remove_object (table.cpp:2715)
In App
Libre3
+0xa18164
realm::Obj::remove (obj.cpp:341)
In App
Libre3
+0x852500
RLMDeleteObjectFromRealm (RLMObjectStore.mm:179)
In App

@abbottkilroy
Copy link
Author

abbottkilroy commented Dec 6, 2024

Here is another one we've seen (iOS 18.1.1 but also an iPhone 12):

Libre3
+0x0c00584
please_report_this_issue_in_github_realm_realm_core_v_14_5_2 (terminate.cpp:65)
In App
Libre3
+0x0c007c4
realm::util::terminate_internal (terminate.cpp:143)
In App
Libre3
+0x0c006a4
realm::util::terminate_with_info (terminate.cpp:162)
In App
Libre3
+0x0c00598
realm::util::terminate (terminate.cpp:149)
In App
Libre3
+0x0be9bd8
realm::util::EncryptedFileMapping::~EncryptedFileMapping (encrypted_file_mapping.cpp:591)
In App
Called from
Libre3
+0x0bfcd38
std::__1::__shared_count::__release_shared[abi:v160006] (shared_ptr.h:157)

Show 3 more frames
Libre3
+0x0bf15d8
realm::util::mapping_and_addr::~mapping_and_addr (file_mapper.cpp:96)
In App
Called from
Libre3
+0x0bf15d8
std::__1::allocator::destroy[abi:v160006] (allocator.h:173)

Show 4 more frames
Libre3
+0x0bf15d8
realm::util::(anonymous namespace)::remove_mapping (file_mapper.cpp:550)
In App
Libre3
+0x0bef9f4
realm::util::File::MapBase::unmap (file.cpp:1855)
In App
Libre3
+0x09d9e04
realm::util::File::Map::unmap (file.hpp:1151)
In App
Libre3
+0x09d9e04
realm::WriteWindowMgr::MapWindow::~MapWindow (group_writer.cpp:176)
In App
Libre3
+0x09de88c
realm::WriteWindowMgr::MapWindow::~MapWindow (group_writer.cpp:174)
In App
Called from
Libre3
+0x09de88c
std::__1::default_delete::operator()[abi:v160006] (unique_ptr.h:65)

Show 9 more frames
Libre3
+0x09da62c
realm::WriteWindowMgr::~WriteWindowMgr (group_writer.hpp:60)
In App
Libre3
+0x09da62c
realm::GroupWriter::~GroupWriter (group_writer.cpp:320)
In App
Libre3
+0x09bf884
realm::DB::low_level_commit (db.cpp:2620)
In App
Libre3
+0x09bf2c0
realm::DB::do_commit (db.cpp:2488)
In App
Libre3
+0x0bd7de0
realm::Transaction::commit_and_continue_as_read (transaction.cpp:264)
In App
Libre3
+0x0a57558
realm::_impl::RealmCoordinator::commit_write (realm_coordinator.cpp:764)
In App
Libre3
+0x0a93b88
realm::Realm::commit_transaction (shared_realm.cpp:1072)
In App
Libre3
+0x091e354
-[RLMRealm commitWriteTransactionWithoutNotifying:error:] (RLMRealm.mm:648)
In App
Libre3
+0x0f574bc
Realm.commitWrite (Realm.swift:332)
In App
Libre3
+0x0f573d8
Realm.write (Realm.swift:270)
In App
Libre3
+0x006e3e0
Realm.safeWrite (RealmDatabase.swift:279)
In App
Libre3
+0x006e3e0
closure in AppConfigManager.add (AppConfigManager.swift:35)
In App

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant