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

Invalid Table top array when opening realm file #5808

Closed
sikkar opened this issue Sep 1, 2022 · 4 comments
Closed

Invalid Table top array when opening realm file #5808

sikkar opened this issue Sep 1, 2022 · 4 comments

Comments

@sikkar
Copy link

sikkar commented Sep 1, 2022

SDK and version

SDK : RealmSwift SPM
Version: 10.28.2

Observations

  • How frequent do the crash occur? random
  • Does it happen in production or during dev/test? production
  • Can the crash be reproduced by you? cannot be reproduced is totally random
  • Can you provide instructions for how we can reproduce it? no, sorry

Crash log / stacktrace

See crash log attached
2022-08-31_04-25-48.3217_+0200-7165f7c2f671ed40da027853383085e084d1de11.txt

@jedelbo
Copy link
Contributor

jedelbo commented Sep 1, 2022

@sikkar Thank you for reporting. Can you inform if you are using encryption in your application?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Sep 1, 2022
@sync-by-unito sync-by-unito bot changed the title Crash in c in realm::Array::get_as_ref_or_tagged(unsigned long) const Invalid Table top array when opening realm file Sep 1, 2022
@sikkar
Copy link
Author

sikkar commented Sep 2, 2022

Hello @jedelbo , no we are not using any type of encryption on the app. Thanks!

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Sep 2, 2022
@jedelbo
Copy link
Contributor

jedelbo commented Sep 2, 2022

Relevant stack trace:

0   libsystem_kernel.dylib        	0x00000001bd3c39e8 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000001dd85a824 pthread_kill + 208 (pthread.c:1668)
2   libsystem_c.dylib             	0x000000018d83a0b4 abort + 120 (abort.c:118)
3   idealista                     	0x000000010346a7ec please_report_this_issue_in_github_realm_realm_core + 12 (terminate.cpp:50)
4   idealista                     	0x000000010346ab2c realm::util::terminate_internal(std::__1::basic_stringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 244 (terminate.cpp:123)
5   idealista                     	0x000000010346a8a8 realm::util::terminate(char const*, char const*, long, std::initializer_list<realm::util::Printable>&&) + 188 (terminate.cpp:133)
6   idealista                     	0x000000010342607c realm::Array::get_as_ref_or_tagged(unsigned long) const + 32 (array.hpp:754)
7   idealista                     	0x000000010342607c realm::Table::get_key_direct(realm::Allocator&, unsigned long) + 172 (table.cpp:585)
8   idealista                     	0x0000000103236754 realm::TableKeyIterator::load_key() + 180 (group.cpp:186)
9   idealista                     	0x0000000103236690 realm::TableKeyIterator::operator++() + 40 (group.cpp:161)
10  idealista                     	0x0000000103442cb8 realm::Transaction::check_consistency() + 360 (transaction.cpp:609)
11  idealista                     	0x000000010322206c realm::DB::open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, realm::DBOptions) + 2968 (db.cpp:1168)
12  idealista                     	0x00000001032243c0 realm::DB::open(realm::Replication&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, realm::DBOptions) + 124 (db.cpp:1203)
13  idealista                     	0x00000001032280e0 realm::DB::create(std::__1::unique_ptr<realm::Replication, std::__1::default_delete<realm::Replication> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > cons... + 156 (db.cpp:2520)
14  idealista                     	0x00000001032b5760 realm::_impl::RealmCoordinator::open_db() + 1136 (realm_coordinator.cpp:519)
15  idealista                     	0x00000001032b6654 realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig, std::__1::shared_ptr<realm::Realm>&, realm::util::Optional<realm::VersionID>, realm::util::CheckedUniqueLock&) + 68 (realm_coordinator.cpp:307)
16  idealista                     	0x00000001032b64c4 realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, realm::util::Optional<realm::VersionID>) + 364 (realm_coordinator.cpp:279)
17  idealista                     	0x00000001033163b8 realm::Realm::get_shared_realm(realm::RealmConfig) + 120 (shared_realm.cpp:157)

@jedelbo
Copy link
Contributor

jedelbo commented Nov 17, 2022

Closed by #5993

@jedelbo jedelbo closed this as completed Nov 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants