realm-java: Incompatible lock file. Shared info version doesn't match, 771 10
The crash
io.realm.exceptions.RealmFileException: Realm file is currently open in another process which cannot share access with this process. All processes sharing a single file must be the same architecture. (Incompatible lock file. Shared info version doesn't match, 771 10.) (/data/data/com.anghami/files/default.realm) in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 252 Kind: INCOMPATIBLE_LOCK_FILE.
at io.realm.internal.SharedRealm.nativeGetSharedRealm(SharedRealm.java)
at io.realm.internal.SharedRealm.<init>(SharedRealm.java:186)
at io.realm.internal.SharedRealm.getInstance(SharedRealm.java:239)
at io.realm.BaseRealm.<init>(BaseRealm.java:91)
at io.realm.BaseRealm.<init>(BaseRealm.java:81)
at io.realm.Realm.<init>(Realm.java:149)
at io.realm.Realm.createAndValidateFromCache(Realm.java:392)
at io.realm.Realm.createInstance(Realm.java:371)
at io.realm.RealmCache.doCreateRealmOrGetFromCache(RealmCache.java:346)
at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:284)
at io.realm.Realm.getDefaultInstance(Realm.java:281)
This comes from our crash-reporting tool, so I don’t have information other than the stack trace. However, this seems to be a persistent issue for the one user that’s having it(7 crashes reported from that one device in the span of a few hours).
We only have a single process(our android app) accessing that realm, so why are we getting this error? And what can we do to recover from it?
Version of Realm and tooling
Realm version(s): 3.5.0
Realm sync feature enabled:no
Android Studio version: Android Studio 3 beta 2
Which Android version and device: Android: 7.0 Android Build: NRD90M.G955FXXU1AQH3 Manufacturer: samsung Model: SM-G955
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 24 (8 by maintainers)
We have recently ported from another DB to realm and seeing this issue frequently enough during development. However we can’t figure out specific steps to reproduce this. We’re on realm 5.3.1.
Caused by: io.realm.exceptions.RealmFileException: Realm file is currently open in another process which cannot share access with this process. All processes sharing a single file must be the same architecture. (Incompatible lock file. Shared info version doesn’t match, 771 10.) (/data/data/com.alkymia.pop.preprod/files/default.realm) in /Users/Nabil/Dev/realm/master/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 101 Kind: INCOMPATIBLE_LOCK_FILE. at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(Native Method) at io.realm.internal.OsSharedRealm.<init>(OsSharedRealm.java:171) at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:241) at io.realm.BaseRealm.<init>(BaseRealm.java:136) at io.realm.BaseRealm.<init>(BaseRealm.java:105) at io.realm.Realm.<init>(Realm.java:164)
➤ Brian Munkholm commented:
Closing as stale - can’t be reproduced.
@beeender Note that we are still seeing it in Realm 4.3.4 so can this ticket be reopened? The potential fixes that went in for Realm 4.2.0 did not resolve the issue for us. Our only options at this point are to a) live with it, b) fix it ourselves (not very promising as contributors have not been able to find a root cause), or c) not use Realm.