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

【ANR】MMKV.decodeString #1484

Closed
selfimprW opened this issue Feb 7, 2025 · 2 comments
Closed

【ANR】MMKV.decodeString #1484

selfimprW opened this issue Feb 7, 2025 · 2 comments

Comments

@selfimprW
Copy link

selfimprW commented Feb 7, 2025

The platform of MMKV

Android

The version of MMKV

1.3.3

What's the log of MMKV when that happened?

`
main (native):tid=1 systid=32311
#00 pc 0x79db0 libc.so (syscall + 32) (BuildId: 59222d1015276d9a9031ee1ea28c0bcd)
#1 pc 0x22a220 libart.so (art::ConditionVariable::WaitHoldingLocks + 136) (BuildId: 629e0ffca501d809c29dbbeef2f512d3)
#2 pc 0x8b14a4 libart.so (art::JNI::NewStringUTF + 4428) (BuildId: 629e0ffca501d809c29dbbeef2f512d3)
#3 pc 0x32fc8 split_config.arm64_v8a.apk + 36343808 (BuildId: a83b0ac329a5f0bcdaadfd3472df744a8f729903)
at com.tencent.mmkv.MMKV.decodeString(MMKV.java)
at com.tencent.mmkv.MMKV.decodeString(MMKV.java:820)
at libx.android.kvdb.mmkv.BaseMkv.getString(BaseMkv.kt:38)
at com.common.base.sys.api.ApiConfigOnlineService.initApiConfigOnline$common_debug(ApiConfigOnlineService.kt:51)
at com.common.base.sys.api.ApiConfigService.initApiConfig(ApiConfigService.kt:11)
at com.voicemaker.MimiApplication.onCreate(MimiApplication.kt:133)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1285)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7227)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(unavailable)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2284)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8377)
at java.lang.reflect.Method.invoke(Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

`

@lingol
Copy link
Collaborator

lingol commented Feb 7, 2025

It's an ANR in art::JNI::NewStringUTF(), not much we can do about it.
PS: you should upgrade your version.

@lingol
Copy link
Collaborator

lingol commented Feb 10, 2025

Plus, if you can provide logs from MMKV it will be very helpful. If not, this issue will be closed this week without additional information.

@lingol lingol closed this as completed Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants