-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Crash in Realm Sync, realm::SyncSession::handle_location_update_failed, realm_core_v_13_26_0 #8508
Comments
➤ PM Bot commented: Jira ticket: RCOCOA-2302 |
@michael-wb can you take a look at this one? |
➤ michael-wb commented: This looks like it is related to RCORE-1982 that I am currently working on. The error reported by core is not fatal, but the sync session will not attempt to reconnect. Both of these will be addressed. The current workaround is to is to ignore the error for now and the reconnect should occur (at least on Cocoa) once the device is connected to the network. |
I think the problem is that we're hitting an assertion failure in |
Thanks all! We've received more information from users, and it seems to be occurring when a network connection appears to exist (local wifi), but that connection may be restricted to most outside sources. Unfortunately this is fairly common use case for our users, so it's quite impactful at the moment. It looks like the assertion was introduced in realm-core 13.26.0 in this commit. I was wondering if it would be safe for a production app to rollback from Realm Swift v10.47 to v10.45.3, reverting to the previous version of realm-core? |
➤ michael-wb commented: Thanks for the update - the error happens any time the location update fails (e.g. no internet) when a realm is opened. One workaround is to capture the error and just ignore it, as described from a different ticket (copied below). A fix is in progress and I am currently adding tests to verify. {quote}
{quote} |
That doesn't appear to be our experience. No sync error is reported, and the application is killed from the realm sync thread. |
➤ michael-wb commented: Sorry for the inconvenience this has caused. |
It seems likely. The next call in the stack trace is to I'm also happy to rollback to v10.45.3 for a while if there wouldn't be any compatibility issues with apps that had already been running v10.47 |
Hi @gyratorycircus, |
@gyratorycircus - Sorry for the delay, the Realm Swift v10.50.0 release includes a fix (in Realm Core PR #7528) that is part of Core v16.5.2 so the Please reopen this ticket or file a new one if you find that it is still not working for you. |
How frequently does the bug occur?
Sometimes
Description
Since releasing an update with Realm Swift 10.47.0 a week ago, we're receiving a ton of crash reports for this issue. We've received 1273 crash reports across across 300 users. This is 10x higher than any other crash, and also 10x higher than all crashes from the previous version of Realm Swift in use, 10.43.0.
Stacktrace & log output
Can you reproduce the bug?
No
Reproduction Steps
No response
Version
10.47.0
What Atlas Services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
iOS (iPhone and iPad), 17.4, 17.3.1, 17.3, 17.2, 17.1.1, 16.3.1
Build environment
Xcode version: 15.2
MacOS version: 14.1.3
Dependency manager and version: CocoaPods 1.15.0
The text was updated successfully, but these errors were encountered: