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

ThreadSafeReference & readonly-configuration crashes #5475

Closed
haemi opened this issue Nov 14, 2017 · 5 comments
Closed

ThreadSafeReference & readonly-configuration crashes #5475

haemi opened this issue Nov 14, 2017 · 5 comments

Comments

@haemi
Copy link

haemi commented Nov 14, 2017

when I configure my realm as readonly, the app crashes whenever I try to create a ThreadSafeReference(to: ...) instance. The breakpoint stays here:

thread_safe_reference.cpp#39:
m_version_id = get_source_shared_group().pin_version();

Without readonly:true it works. But as I'm using a realm from the bundle I need readonly.

RealmSwift 3.0.2, iOS 11

@kishikawakatsumi
Copy link
Contributor

Thank you for reporting. We will fix it soon.

@DominicFrei
Copy link
Contributor

I created a PR for this issue in core: realm/realm-core#4517

@DominicFrei
Copy link
Contributor

The PR mentioned above is now on hold since we need to do some re-works first to the read-only realms: realm/realm-core#4528

@DominicFrei
Copy link
Contributor

TL;DR Fixed in Core and will be released soon.

Update:
The above mentioned realm/realm-core#4528 which emerged out of this issue was merged in core. Subsequently realm/realm-core#4517 was closed and realm/realm-core#4688 opened instead since the solution looks a bit different now thanks to the first mentioned PR.
This needs to be released in core and then subsequently included and released in Cocoa.

@tgoyne
Copy link
Member

tgoyne commented May 14, 2021

This is fixed in 10.7.6.

@tgoyne tgoyne closed this as completed May 14, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 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

6 participants