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

iOS Crash on Realm Compact #3428

Closed
stevedcc opened this issue Aug 30, 2023 · 1 comment
Closed

iOS Crash on Realm Compact #3428

stevedcc opened this issue Aug 30, 2023 · 1 comment

Comments

@stevedcc
Copy link

What happened?

A user experienced an app crash and sent the iOS Logs. The logs appear to suggest that the crash occurred during Realm compaction

0   libsystem_kernel.dylib        	       0x1e03891a0 __fcntl + 8
1   libsystem_kernel.dylib        	       0x1e0388880 fcntl + 88
2   realm-wrappers                	       0x10301673c realm::util::File::sync() + 32
3   realm-wrappers                	       0x102f0fa54 realm::DB::compact(bool, std::__1::optional<char const*>) + 512
4   realm-wrappers                	       0x102cf06e8 realm::_impl::RealmCoordinator::open_db() + 1736
5   realm-wrappers                	       0x102cf1444 realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig&&, std::__1::shared_ptr<realm::Realm>&, std::__1::optional<realm::VersionID>, realm::util::CheckedUniqueLock&) + 72
6   realm-wrappers                	       0x102cf1330 realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, std::__1::optional<realm::VersionID>) + 480
7   realm-wrappers                	       0x102d69a0c realm::Realm::get_shared_realm(realm::RealmConfig) + 120
8   realm-wrappers                	       0x102ca4cfc shared_realm_open + 868

Repro steps

  1. Open App
  2. Crash

Version

10.20.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Xamarin

Client OS and version

iOS 16.6

Code snippets

No response

Stacktrace of the exception/crash you're getting

0   libsystem_kernel.dylib        	       0x1e03891a0 __fcntl + 8
1   libsystem_kernel.dylib        	       0x1e0388880 fcntl + 88
2   realm-wrappers                	       0x10301673c realm::util::File::sync() + 32
3   realm-wrappers                	       0x102f0fa54 realm::DB::compact(bool, std::__1::optional<char const*>) + 512
4   realm-wrappers                	       0x102cf06e8 realm::_impl::RealmCoordinator::open_db() + 1736
5   realm-wrappers                	       0x102cf1444 realm::_impl::RealmCoordinator::do_get_realm(realm::RealmConfig&&, std::__1::shared_ptr<realm::Realm>&, std::__1::optional<realm::VersionID>, realm::util::CheckedUniqueLock&) + 72
6   realm-wrappers                	       0x102cf1330 realm::_impl::RealmCoordinator::get_realm(realm::RealmConfig, std::__1::optional<realm::VersionID>) + 480
7   realm-wrappers                	       0x102d69a0c realm::Realm::get_shared_realm(realm::RealmConfig) + 120
8   realm-wrappers                	       0x102ca4cfc shared_realm_open + 868

Relevant log output

No response

@nirinchev
Copy link
Member

This is likely related to realm/realm-core#6813. If you are able to reproduce this, that would be super helpful, otherwise we'll keep trying to get to the root cause.

I'll close this issue to consolidate discussion in the Core ticket.

@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 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