Closed LakshmiTeja17 closed 1 year ago
This is an issue for Realm Java so transferring it.
@LakshmiTeja17 Could you elaborate a bit more on the setup. Is this a system app and/or other observations that could help us identify the root. Maybe also the full stack trace?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Caused by: java.lang.RuntimeException: Permission denied in /tmp/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 106
at io.realm.internal.OsSharedRealm.nativeGetSharedRealm(Native Method)
at io.realm.internal.OsSharedRealm.
How frequently does the bug occur?
Sometimes
Description
I am setting the default config of Realm DB as follows :
Then I am trying to get the default instance in my app as follows:
Realm.getDefaultInstance()
But a Permission denied exception is thrown sometimes. The strange thing is that, this exception is thrown randomly. Sometimes, the realm instance is created successfully, but sometimes it fails with the exception.
Stacktrace & log output
Can you reproduce the bug?
Sometimes
Reproduction Steps
Reboot device and launch the app.
Version
classpath 'io.realm:realm-gradle-plugin:10.11.1' implementation 'io.realm.kotlin:library-base:1.7.0'
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android Version 13
Build environment
Android Studio version: ... Android Build Tools version: ... Gradle version: ...