You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission denied should not occur because my realm is in internal storage with the following config:
Realm.init(this); //this is application context here
realmConfig = new RealmConfiguration.Builder().name("collect.realm").schemaVersion(21).migration(new Migration()).build();
Actual Results
Stacktrace
Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. Permission denied in /Users/blakemeike/Working/release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 94
at io.realm.internal.SharedRealm.nativeGetSharedRealm(SourceFile)
at io.realm.internal.SharedRealm.getInstance(SourceFile:211)
at io.realm.internal.SharedRealm.getInstance(SourceFile:188)
at io.realm.RealmCache.createRealmOrGetFromCache(SourceFile:124)
at io.realm.Realm.getDefaultInstance(SourceFile:209)
at com.socialcops.collect.plus.start.mainActivity.MainActivity.onCreate(SourceFile:68)
at android.app.Activity.performCreate(Activity.java:6582)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2532)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2667)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1494)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5776)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Note: my proguard mapping file is configured to not include file names, that's why everything is SourceFile
Steps & Code to Reproduce
Never reproduced this manually. Received this stacktrace in our crash reporting tool. Appears to be happening only on Lenovo A7010a48 running Android 6.0. This crash happens when Realm.getDefaultInstance() is called from the onCreate() of my MainActivity, which means the app crashed on launch. init() happens in the Application class. The app is a single process application so there is probably no way for init() to go wrong.
Version of Realm and tooling
Realm version(s): 2.3.1
Realm sync feature enabled: no
Android Studio version: 2.3.3
Which Android version and device: Lenovo A7010a48 running Android 6.0
The text was updated successfully, but these errors were encountered:
Goal
Expected Results
Actual Results
Steps & Code to Reproduce
Version of Realm and tooling
Realm version(s): 2.3.1
Realm sync feature enabled: no
Android Studio version: 2.3.3
Which Android version and device: Lenovo A7010a48 running Android 6.0
The text was updated successfully, but these errors were encountered: