Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: **.realm.management/access_control.write.mx #5634

Closed
hmedat opened this issue Dec 20, 2017 · 9 comments
Closed

Crash: **.realm.management/access_control.write.mx #5634

hmedat opened this issue Dec 20, 2017 · 9 comments
Labels

Comments

@hmedat
Copy link

hmedat commented Dec 20, 2017

New crash, I don't have any idea about it

Fatal Exception: java.lang.RuntimeException: Unable to start service xx.xx.xx.services.ChatService@2d6104ad with Intent { cmp=xx.xx.xx/.services.ChatService (has extras) }: io.realm.exceptions.RealmFileException: Directory
at path '/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx' does not exist. (open("/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx") failed: No such file or directory) (/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx) in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 101 Kind: NOT_FOUND.
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2960)
       at android.app.ActivityThread.access$2100(ActivityThread.java:158)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1426)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:135)
       at android.app.ActivityThread.main(ActivityThread.java:5322)
       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:905)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by io.realm.exceptions.RealmFileException: Directory
at path '/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx' does not exist. (open("/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx") failed: No such file or directory) (/data/data/xx.xx.xx/files/config.realm.management/access_control.write.mx) in /home/cc/repo/realm/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:172)
       at io.realm.internal.OsSharedRealm.getInstance(OsSharedRealm.java:219)
       at io.realm.a.<init>(BaseRealm.java:124)
       at io.realm.a.<init>(BaseRealm.java:93)
       at io.realm.x.<init>(Realm.java:153)
       at io.realm.x.a(Realm.java:424)
       at io.realm.aq.b(RealmCache.java:342)
       at io.realm.aq.a(RealmCache.java:282)
       at io.realm.x.b(Realm.java:353)
       at xx.xx.xx.config.dataSource.ConfigLocalDataSource.a(ConfigLocalDataSource.java:126)
       at xx.xx.xx.config.configModules.ChatConfig.getInstance(ChatConfig.java:62)
       at xx.xx.xx.util.RealmWrapper.f(RealmWrapper.java:1151)
       at xx.xx.xx.services.ChatService.d(ChatService.java:136)
       at xx.xx.xx.services.ChatService.onStartCommand(ChatService.java:85)
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2943)
       at android.app.ActivityThread.access$2100(ActivityThread.java:158)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1426)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:135)
       at android.app.ActivityThread.main(ActivityThread.java:5322)
       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:905)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)

Version of Realm and tooling

Realm version(s): 4.2.0

Realm sync feature enabled: no

Android Studio version: 3.0.1

Which Android version and device:

screen shot 2017-12-20 at 3 49 37 pm

@Zhuinden
Copy link
Contributor

Do you manually delete Realm files or any Realm-related files?

@hmedat
Copy link
Author

hmedat commented Dec 24, 2017

for this file?, No

@tamtom
Copy link

tamtom commented Dec 24, 2017

anything?

@Zhuinden
Copy link
Contributor

I'm not a Realm member and I don't know why that file could be missing when it should exist.

@tamtom
Copy link

tamtom commented Dec 25, 2017

@beeender we need help for urgent release

@beeender
Copy link
Contributor

@tamtom If you have never delete the realm file manually, I don't have too much clue about it.

It looks like your ChatService is running in a separated process, correct? Can you reproduce it?

@hmedat
Copy link
Author

hmedat commented Dec 26, 2017

@cmelchior

@Zhuinden
Copy link
Contributor

Can you guarantee that you don't ever manually delete the Realm file and anything related at some point when Realm could be open?

This cannot be looked into without something that reproduces it...

@hmedat hmedat mentioned this issue Feb 5, 2018
@cmelchior
Copy link
Contributor

Without more information, we cannot really do anything about this. As stated above, most likely something outside Realm is deleting the files. We probably need an example project that reproduces this in order to be able to help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants