-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
In one plus mobile phone has a problem, trouble to help solve the next, the mobile phone system 7.0, thanks #4461
Comments
Realm Version 3.1.1 |
Which oneplus phone it is? What is the ROM version? |
Rom version 7.0 |
One plus is a Chinese-made mobile phone, http://www.oneplus.cn/product/oneplus3t |
So it is a oneplus3t with stock rom (not 3rd party room) with Android 7? Is it using this rom http://www.oneplusbbs.com/thread-3311047-1-1.html Can you please share you |
Realm.init(_activity); |
What's the guarantee that you have access to |
File tempFile = context.getExternalFilesDir("realm"); |
can you help to check what is the |
Have you obtained runtime permission at this point? |
tempFile's real path android/data/cn,funtalk.miao/files/realm/ This path need any special permissions? The document has been written into, and should have the permissions? I do not have special handling on permissions, my targetSdkVersion is 19 |
@hw-beijing When the crash happens, is that the first time in your code that trying to open a Realm? |
yes,I removed the custom path and would not crash |
@hw-beijing Can you please to run the attached apk file on your oneplus phone and post the crash log here? thanks! |
- Fix #4461. - Use release assertion when finding java method.
Closed because of i put a wrong PR no. in the commit message. |
04-12 11:30:37.768 471-2619/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
04-12 11:30:38.004 14994-14994/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
@hw-beijing Which rom are you using? Is it LineageOS rom? We had a same error reported on Xiaomi Mi5 #4174 before. |
H2OS, http://www.h2os.com/ |
Updates: Since the same problem has happened to Mi5 with LineageOS before, i will flash LineageOS and try it. |
|
FATAL EXCEPTION: main
Process: cn.funtalk.miao, PID: 21507
io.realm.exceptions.RealmError: Unrecoverable error. Invalid argument in /home/cc/repo/realm/realm-java-release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 87
at io.realm.internal.SharedRealm.nativeGetSharedRealm(Native Method)
at io.realm.internal.SharedRealm.getInstance(SharedRealm.java:208)
at io.realm.internal.SharedRealm.getInstance(SharedRealm.java:186)
at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:124)
at io.realm.Realm.getDefaultInstance(Realm.java:209)
at cn.funtalk.miao.pojo.DbUtils$dbWhereBuilder.(DbUtils.java:67)
at cn.funtalk.miao.packaging.service.business.StepManager.getCurrentStep(StepManager.java:354)
at cn.funtalk.miao.packaging.service.business.StepManager.(StepManager.java:74)
at cn.funtalk.miao.packaging.service.business.StepManager.init(StepManager.java:89)
at cn.funtalk.miao.packaging.service.CommonService.onBind(CommonService.java:73)
at android.app.ActivityThread.handleBindService(ActivityThread.java:3281)
at android.app.ActivityThread.-wrap3(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1598)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
The text was updated successfully, but these errors were encountered: