Realm-java: Realm crashing in Samsung Note 2 due to "Encrypted interprocess sharing" is currently unsupported

Created on 10 May 2016  路  21Comments  路  Source: realm/realm-java

Fatal Exception: io.realm.exceptions.RealmError
Unrecoverable error. /data/data/com.conem.app/files/file.realm: Encrypted interprocess sharing is currently unsupported in io_realm_internal_SharedGroup.cpp line 113
 Raw
io.realm.internal.SharedGroup.createNativeWithImplicitTransactions (SharedGroup.java)
io.realm.internal.SharedGroup. (SharedGroup.java)
io.realm.internal.SharedGroupManager. (SharedGroupManager.java)
io.realm.BaseRealm. (BaseRealm.java)
io.realm.Realm. (Realm.java)
io.realm.Realm.createAndValidate (Realm.java:269)
io.realm.Realm.createInstance (Realm.java:249)
io.realm.RealmCache.createRealmOrGetFromCache (RealmCache.java:118)
io.realm.Realm.getDefaultInstance (Realm.java:195)

Version of Realm and tooling

Realm version(s): 0.90.0

Android Studio version: 2.1

Which Android version and device: Samsung Note 2

Native Platform : armeabi-v7a

T-Bug-Crash

All 21 comments

@mihirjoshi21 Are you using Realm in multi processes? Multi-process is not supported yet.

No separate process is defined in manifest file. I do have a service but not as a separate process.

@beeender I checked this on one other Galaxy note 2 device and I guess the error is specific to it, in other devices, it is working just fine. Please tell me what I can do to resolve it before I get any more 1 star reviews :( .

@mihirjoshi21 can you share the apk link with us? Is it this one https://play.google.com/store/apps/details?id=com.conem.app.pocketthesaurus

Yes

@mihirjoshi21

I checked this on one other Galaxy note 2 device ..

Does that mean you can reproduce it on Galaxy note 2?

yes. The logcat is from the same device

@mihirjoshi21
Can you send below information to [email protected]

  1. the apk (easier to get it from you)
  2. AndroidManifest.xml (I can decompile from 1 as well)
  3. Full stacktrace of crash
  4. Related source code of the crash
  5. Any instant message account? If you get some time right now, instant message might make things faster.

User haven't seen the crash after updating to 0.90.0. Closing this issue for now. Feel free to reopen it if it happens again.

User is still seeing this crash on Samsung Galaxy Tab 4 7.0 SM-T230NU 4.4.2 with 0.90.0. Reopen this.

I got the same error on different devices. I don't know how to solve it.

@AllenVork Upgrading to the latest version of Realm should solve this. Our old encryption relied on Unix signals which were broken on some vendor specific versions of Android. We moved away from this in later releases.

@cmelchior thx.I'll try it.

@AllenVork Sorry, I was a bit hasty there. This error has nothing to do with the encryption example. It would be easier if you created a new issue with any information you have. Especially the content of your AndroidManifest.xml. Thanks

Closing since this issue hasn't been seen after 1.0

I am facing same issue on Lenovo A6000

@amols-iprogrammer yes, but what Realm version?

@Zhuinden On realm 1.2.0

The issue is still present in Realm 1.0.1 - but only on Samsung devices (tested so far on SM-N9005 and SM-N910C). I suppose other Samsung devices will be affected as well.

Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. /data/data/com.xxx/files/xx.realm: Encrypted interprocess sharing is currently unsupported.SharedGroup has been opened by pid: 11838. Current pid is 19243. in io_realm_internal_SharedGroup.cpp line 113 at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(SharedGroup.java) at io.realm.internal.SharedGroup.openSharedGroupOrFail(SharedGroup.java:95) at io.realm.internal.SharedGroup.<init>(SharedGroup.java:74) at io.realm.internal.SharedGroupManager.<init>(SharedGroupManager.java:49) at io.realm.BaseRealm.<init>(BaseRealm.java:81) at io.realm.Realm.<init>(Realm.java:139) at io.realm.Realm.createAndValidate(Realm.java:250) at io.realm.Realm.createInstance(Realm.java:230) at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:126) at io.realm.Realm.getInstance(Realm.java:194) at com.xxx.ZApplication.xx(ZApplication.java:xx) at com.xxx.xxx.XApplication.onCreate(XApplication.java:xx) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5113) at android.app.ActivityThread.access$1600(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1509) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5942) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)

From the log, the error happens on app startup (application onCreate method). This is first and only Realm initialisation (Realm.getInstance(configuration)) and I don't see how it is possible to be called twice (from two different processes) in any case during application startup.

But, maybe I'm overseeing something, so any sort of help/hint is more than welcomed.

@kneth If this happens on Sumsung device a lot, maybe it has the same root cause with #3651 ?

@beeender I doubt it but since we have a Samsung device at the office, it might be worth testing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryanspano picture bryanspano  路  3Comments

Merlin1993 picture Merlin1993  路  3Comments

pawlo2102 picture pawlo2102  路  3Comments

mithrann picture mithrann  路  3Comments

CNyezi picture CNyezi  路  3Comments