-
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
RLMRealm.defaultRealm() crash #2653
Comments
We're investigating this issue currently, but couldn't reproduce it yet. Can you reproduce it? Could you provide further info, which can help us to find out where this crash originates from, as: Did you saw any further output on the console or anything from the debugger? Did it occurred while debugging or with a release build? On device / simulator? |
Unfortunately, I can't reproduce it. This crash occurs in release build from the App Store and only on one device (13 crashes, iPhone 5s, iOS 8, non jail, 589 MB free disk space, 1.14 GB free RAM) |
Is there any chance that we could get the realm file from this device involved in the crash? |
Im sorry, but we can't contact the user and ask him extract this file - he just downloaded the app and can't use it because of crash. |
Can you say from the code path whether that happens only on first launch / the opposite? |
This code is called every time when user launch the app. It seems there is problem of reading realm file - may be after Realm update in app |
I've got similar crash on another app:
Debug log:
Code: func clearCache() {
do {
let realm = try Realm() // <-- this cause crash
do {
try realm.write {
realm.deleteAll()
}
} catch let error { print(error) }
} catch let error { print(error) }
} |
I'm pretty sure that the latter crash log is unrelated to the first one. We saw those before and reportedly could fix them in the last recent core releases. You can get the fix by updating to 0.96.0. We would still need further information to be able to investigate the first crash. |
@shmakovigor just following up on our request for more information. We don't have enough information to reproduce this issue currently, so it'll be difficult to assess what's happening. |
The latest release might fix this issue. I'll close this for now as we didn't got here any further info to act on, but please feel free, if that should still appear with the latest version to re-open this issue. |
I just call
RLMRealm.defaultRealm()
and got this crash:The text was updated successfully, but these errors were encountered: