Closed RealMoMo closed 2 years ago
Hi @RealMoMo
Can you share some details on the frequency of this and the devices where you are seeing this?
maybe you can delete " android:sharedUserId="android.uid.system" " in AndroidManifest.xml.
I also discovered this crash on my Firebase Crashlytics. I am got about 400 the same crash reports from one user.
Crash happens on app start, on Pixel 5 with Android 11, but I don't find any issue on Android 11 emulator.
App has targetApi 29
, realm-gradle-plugin:6.1.0
Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. Permission denied in /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 101
at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(OsSharedRealm.java)
at io.realm.internal.OsSharedRealm.<init>(OsSharedRealm.java:171)
at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:241)
at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:231)
at io.realm.RealmCache.doCreateRealmOrGetFromCache(RealmCache.java:337)
at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:290)
at io.realm.Realm.getDefaultInstance(Realm.java:407)
@RealMoMo The version of Realm Java you are using is rather old. I will recommend upgrading to the latest version, and if you still see this issue after that, either reopen this or create a new issue. But ideally we need more information about where this is happening. Especially if it happens on multiple devices, and in that case, which ones.
This error is mostly caused by permissions being changed for the files we use, which is generally a bug in the operating system. So any details about which Android version would be highly valuable.
How frequently does the bug occur?
All the time
Description
init realm database crash.
just this Android platform crash
Stacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
"io.realm:realm-gradle-plugin:6.0.2"
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android9.0
Build environment
Android Studio version:Arctic fox compileSdkVersion 30 buildToolsVersion "30.0.3" Gradle version: com.android.tools.build:gradle:4.2.2