-
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
RealmError: Incompatible lock file / After 2.0 RealmFileException All processes sharing a single file must be the same architecture. #2459
Comments
|
Is it the first time when the |
Yes. I've just tested. We're using single process (don't declare any process in AndroidManifest.xml) |
@hohnamkung Two more questions:
|
@hohnamkung We just released 0.88.2, it has a potential fix of this problem (which i am not sure could solve this, but worth a try), and some more information about the exception is added to help us debug if it still happens. And it also has a fix for the bad version problem you have. Would you please give it a try? And let us know if this problem is still there. thanks a lot, and sorry for those troubles. |
@beeender |
Hi @beeender
|
Thanks a lot for the information, i will check and get back to you ASAP. |
And another crash log is collected.
|
Please create another issue for that, it seems to be another problem. Thanks! |
@hohnamkung has confirmed that @beeender's workaround works well. |
@dalinaum I have an app in play store [https://play.google.com/store/apps/details?id=com.isletsystems.android.cricitch.lite] that is growing steadily, and is experiencing the same error @hohnamkung detailed, in my most recent build that I published. I had built the app with the following:
error from crashlytics: Looking forward to a new release of realm java with a fix for the same. |
@appsailor Can you list those devices which have this problem? Maybe we are lucky enough to have one of them to reproduce the issue. |
I am also seeing this issue in 3.7.2 within an AsyncTask
|
I upgraded Realm from Stack trace
Additional info: So I can confirm that this crash (which may not be visible to users), only happens when users update their APK. When Realm 4.2.0 is released (which supports Realms in multiple processes), I can update my app and see if this issue persists. |
I've checked |
I'll be curious to see if realm/realm-core#2902 has any impact on this (Core 4.0.3) |
we have a potential fix for this issue which will be released in |
@beeender thanks for this! https://github.com/realm/realm-java/blob/master/CHANGELOG.md |
normally bug fixes go to the patch release so it would be released earlier before the next minor release. But it's likely that our next release will be a minor release. so the |
@beeender understood, I hope it can be released very soon :) |
Hi, I'm investigating this issue right now. |
I ran into this issue with 4.2.0. I'm sure there are deeper underlying problems with the realm lifecycle management. Though I solved this issue by wrapping all "getDefaultInstance" calls with a synchronized block in a helper method. This also alleviated a few other outstanding issues with the application code. It would appear that getDefaultInstance is not as thread safe as I once believed. |
@EE-GSlomin do you by chance know which kind of "outstanding issues" it fixed? |
Hello, I am still getting this error I am using |
Hi @beeender! Same as couple of guys mentioned above, I'm experiencing what seems to be the same issue on version
|
@AlexeiVoice This should only happen if you try to open a Realm file that was copied to a different architecture with all our lock files in place In general, this should not be possible on Android devices. It happens when you try to open a Realm file that was already opened on a different ABI architecture, e.g. 32 bit vs. 64 bit. This should never happen with normal use. My best guess is:
|
@cmelchior This issue should be reopened. Our crash rate is constant with this stack trace over last few versions of Realm. Our app is managed by Google Play, so I don't understand how we could mistakenly ship lock files with our app. |
@mirceasotan Instead of reopening this issue, it would probably be better to create a new issue. Since this one has a lot of discussions probably not relevant to your issue (and the original error pertains a really old version of Realm). We are specifically interested in getting any details of:
|
@cmelchior Thanks for the response. As you suggested I've created a new issue: #7144. @mirceasotan please add any additional information to the new ticket if you can. |
@AlexeiVoice please have a look at #7102 (comment) as it could explain why you experience this. |
@edualonso Thanks, that sounds like one of the most logical explanation! I've checked our manifest and it looks like we have |
@AlexeiVoice that's unfortunate :( Is it possible that perhaps the setting was enabled at some point and then it got turned off? |
@edualonso Yeah :( no, unfortunately it's been this way for quite some time |
Goal
To report specific error after upgrading v0.88.0
Expected Results
Crash is not occurred.
Actual Results
Steps & Code to Reproduce
I got this stack trace from Fabric. I've tested several devices that we have, i can't reproduce it.
Instead, i attached some code that error is happening.
FYI, at this update (to v0.88.0), we upgraded Realm's schema version.
(We're using
deleteRealmIfMigrationNeeded
option)Code Sample
Version of Realm and tooling
Realm version(s): v0.88.0
Which Android version and device:
When i first saw this crash, i think this is occurred because users are using BlackBerry.
But now Android users have a crash.
The peak point is yesterday. (Realm v0.88.0)
The text was updated successfully, but these errors were encountered: