-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Not a Realm file and Native exception #4176
Comments
Did you use encryption? |
No, I don't.
|
Might be the same problem with compactRealm. Checking ... |
realm/realm-core#2426 may fix this. |
It is possible to test the fix by using the 2.4.0-SNAPSHOT. |
Thanks! |
@KimiChiu The release is supposed to come out soon. If it doesn't solved your issue, don't hesitate to either reopen or create new issue. |
Hi,
Another one:
I just remembered that I have another problem before and it's not solved.
The Is it caused by the user restores application data by them self?
Should I just add a try-catch to prevent my application crash? Version of Realm and tooling Realm version(s): 3.0.0 Realm sync feature enabled: no Android Studio version: IntelliJ IDEA 2016.3.4 Which Android version and device: |
|
Add to queue in another thread.
The handler in
Then it'll write the message to Realm database and show the notification.
The
|
Is your service running in another process? Means do you have something like |
No, I don't have
Another service is for Firebase messaging, but it only uses SQLite.
|
|
I just released a new version with |
@KimiChiu no worries, i can totally read traditional Chinese :P |
That's awesome. Didn't see that coming. |
Yes, I will try it and let you know the results. |
@mariusboepple is the Realm encrypted in your case? |
Yes, it's encrypted. |
@mariusboepple Realm 2.3.2 fixed an issue in Realm-Core related to multi-thread / multi-process access of encrypted Realms
And Realm-Core also fixed realm/realm-core#2426 (another similar issue) |
It looks like this problem still not be solved. |
@KimiChiu What is the device reports 39 crashes in 3 hours? |
It's a Sony D6653 API 23. |
@KimiChiu I have played your apk with my Xiaomi Mi5 for a while, but still not able to reproduce the issue :( |
No, Firebase Crash didn't include the rom version. |
This is exactly my case #2984 . Crash reported in less than .1% cases. 13 crashes today out of 19.8K sessions.
Same crash through ages 😲. I still don't know how to resolve it 😞. |
Any updates for this issue? |
@hmedat2008 many, so it depends on your Realm version and whether your Realm is encrypted or not and whether you compact Realm |
Realm Version: 4.2.0 |
I also encountered the same problem in Realm 5.1.0 Сonfiguration: new RealmConfiguration
.Builder()
.name(realmName)
.schemaVersion(Constants.DB_VERSION)
.directory(dbDir)
.encryptionKey(key)
.migration(MIGRATION)
.initialData(INIT_REALM_TX)
.build(); I use several threads to access the database. |
What's weird is that i've heard that someone wrapping But that is just heresay I heard like 1.5 years ago |
Closing due to being outdated. The underlying code has changed quite a lot by now. If this is still a problem feel free to re-open. |
Hi,
My crash report keeps receiving these exceptions from some users.
But it never happened on my test device or emulator.
What is the possible cause?
Here's how I write data to Realm:
Here's how I read data from Realm:
It looks like the user has to remove the app or clear all data to make realm works again.
Is this means the Realm database is crashed?
Firebase Crash Report:
Native Exception:
Version of Realm and tooling
Realm version(s): 2.2.2
Realm sync feature enabled: no
Android Studio version: IntelliJ IDEA 2016.3.4
Which Android version and device: Android 6.0 HTC 10
The text was updated successfully, but these errors were encountered: