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

'Realm accessed from incorrect thread.' in iOS 18 while in iOS 17 no issue #8668

Open
bgoncal opened this issue Aug 15, 2024 · 1 comment
Open

Comments

@bgoncal
Copy link

bgoncal commented Aug 15, 2024

How frequently does the bug occur?

-- select --

Description

In Home Assistant App we access realm from the Widgets extension and since iOS 18 betas, when accessing Realm directly from the AppIntentProvider it is now crashing with 'Realm accessed from incorrect thread.' while if dispatched in main queue the issue does not happen.

BUT

If dispatched in the main queue then it crashes in iOS 17

Home Assistant PR with the workaround used to prevent that:
home-assistant/iOS#2919

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

10.35 (But also tested in 10.52.2)

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iOS 18 and 18.1 (Betas 6 and 2)

Build environment

Xcode version: 15.4
Dependency manager and version: Cocoapods, RealmSwift 10.35

Copy link

sync-by-unito bot commented Aug 15, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2422

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