Closed jiguangxing1204 closed 2 years ago
ANR_EXCEPTION 解析原始 com.tencent.mmkv.MMKV.containsKey(Native Method) com.tencent.mmkv.MMKV.containsKey(SourceFile:808) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:386) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:167) cn.kuwo.base.config.c.a(SourceFile:43)
下面是logcat
mTraversals(ViewRootImpl.java:2816) -- 103-29 09:46:58.032 17894 17894 W System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1876) 203-29 09:46:58.032 17894 17894 W System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8167) 303-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057) 403-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:875) 503-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer.doFrame(Choreographer.java:776) 603-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042) 703-29 09:46:58.032 17894 17894 W System.err: at android.os.Handler.handleCallback(Handler.java:900) 803-29 09:46:58.032 17894 17894 W System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 903-29 09:46:58.032 17894 17894 W System.err: at android.os.Looper.loop(Looper.java:219) 1003-29 09:46:58.032 17894 17894 W System.err: at android.app.ActivityThread.main(ActivityThread.java:8349) 1103-29 09:46:58.032 17894 17894 W System.err: at java.lang.reflect.Method.invoke(Native Method) 1203-29 09:46:58.032 17894 17894 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 1303-29 09:46:58.032 17894 17894 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) 1403-29 09:46:58.081 17894 17894 E cn.kuwo.player: Invalid ID 0x00000000. 1503-29 09:46:58.081 17894 17894 I Resource: printErrorResource, maybe not an error because module has entative action to load resource. 1603-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/framework/framework-res.apk} 1703-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/framework/framework-res-hwext.apk} 1803-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/hw_product/overlay/frameworkResOverlay.apk} 1903-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/data/app/cn.kuwo.player-nkxzacwcjD7-jTfR5TWohQ==/base.apk} 2003-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/emui/base/overlay/frameworkhwexthonor/frameworkhwexthonor.apk} 2103-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/priv-app/HwCameraKit/HwCameraKit.apk} 2203-29 09:46:58.082 17894 17894 W System.err: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x0 2303-29 09:46:58.082 17894 17894 W System.err: at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:409) 2403-29 09:46:58.082 17894 17894 W System.err: at android.content.res.Resources.getResourceEntryName(Resources.java:2229) 2503-29 09:46:58.082 17894 17894 W System.err: at com.kuwo.skin.loader.SkinInflaterFactory.a(SourceFile:110) 2603-29 09:46:58.082 17894 17894 W System.err: at com.kuwo.skin.loader.SkinInflaterFactory.onCreateView(SourceFile:46) 2703-29 09:46:58.082 17894 17894 W System.err: at androidx.core.view.LayoutInflaterCompat$Factory2Wrapper.onCreateView(SourceFile:55) 2803-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1071) 2903-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1007) 3003-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:971) 3103-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1133) 3203-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1094) 3303-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1136) 3403-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1094) 3503-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:692) 3603-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:536) 3703-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:483) 3803-29 09:46:58.083 17894 17894 W System.err: at cn.kuwo.show.core.recyclerview.view.ExRvLoadMoreView.First of all, your logcat contains nothing about MMKV. Did you turn off MMKV's logging? Don't do that.
Now, about your ANR. You don't provide symbolized native call stacks. There's absolutely nothing we can do to diagnose it any further.
Let me mind you, when you complain about ANR, you should always provide symbolized native call stacks, as well as call stacks from other threads, not just the main thread.
又找了一个崩溃手机,现在发现 当主线程出现崩溃时,肯定有一个子线程也崩溃在这里,如下:
com.tencent.mmkv.MMKV.encodeString(Native Method) com.tencent.mmkv.MMKV.encode(SourceFile:660) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:339) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:283) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:43) cn.kuwo.base.config.ConfMMKVMgrImpl$a$1.run(SourceFile:546) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) cn.kuwo.base.utils.KwThreadPool$b$1.run(SourceFile:329) java.lang.Thread.run(Thread.java:929)
Still no symbolized native call stacks.
Closed due to lack of information. Come back when you have symbolized native call stacks.
Note:
An crash issue will be ignored & closed in a week without logs.
The language of MMKV
The version of MMKV
The platform of MMKV
The installation of MMKV
What's the issue?
1 main
ANR_EXCEPTION com.tencent.mmkv.MMKV.containsKey(Native Method) com.tencent.mmkv.MMKV.containsKey(SourceFile:808) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:386) cn.kuwo.base.config.ConfMMKVMgrImpl.a(SourceFile:167)
下面是bugly捕获的当时logcat
mTraversals(ViewRootImpl.java:2816) -- 103-29 09:46:58.032 17894 17894 W System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1876) 203-29 09:46:58.032 17894 17894 W System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8167) 303-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057) 403-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:875) 503-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer.doFrame(Choreographer.java:776) 603-29 09:46:58.032 17894 17894 W System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042) 703-29 09:46:58.032 17894 17894 W System.err: at android.os.Handler.handleCallback(Handler.java:900) 803-29 09:46:58.032 17894 17894 W System.err: at android.os.Handler.dispatchMessage(Handler.java:103) 903-29 09:46:58.032 17894 17894 W System.err: at android.os.Looper.loop(Looper.java:219) 1003-29 09:46:58.032 17894 17894 W System.err: at android.app.ActivityThread.main(ActivityThread.java:8349) 1103-29 09:46:58.032 17894 17894 W System.err: at java.lang.reflect.Method.invoke(Native Method) 1203-29 09:46:58.032 17894 17894 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 1303-29 09:46:58.032 17894 17894 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) 1403-29 09:46:58.081 17894 17894 E cn.kuwo.player: Invalid ID 0x00000000. 1503-29 09:46:58.081 17894 17894 I Resource: printErrorResource, maybe not an error because module has entative action to load resource. 1603-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/framework/framework-res.apk} 1703-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/framework/framework-res-hwext.apk} 1803-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/hw_product/overlay/frameworkResOverlay.apk} 1903-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/data/app/cn.kuwo.player-nkxzacwcjD7-jTfR5TWohQ==/base.apk} 2003-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/emui/base/overlay/frameworkhwexthonor/frameworkhwexthonor.apk} 2103-29 09:46:58.081 17894 17894 I Resources_debug: The apk asset path = ApkAssets{path=/system/priv-app/HwCameraKit/HwCameraKit.apk} 2203-29 09:46:58.082 17894 17894 W System.err: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x0 2303-29 09:46:58.082 17894 17894 W System.err: at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:409) 2403-29 09:46:58.082 17894 17894 W System.err: at android.content.res.Resources.getResourceEntryName(Resources.java:2229) 2503-29 09:46:58.082 17894 17894 W System.err: at com.kuwo.skin.loader.SkinInflaterFactory.a(SourceFile:110) 2603-29 09:46:58.082 17894 17894 W System.err: at com.kuwo.skin.loader.SkinInflaterFactory.onCreateView(SourceFile:46) 2703-29 09:46:58.082 17894 17894 W System.err: at androidx.core.view.LayoutInflaterCompat$Factory2Wrapper.onCreateView(SourceFile:55) 2803-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1071) 2903-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1007) 3003-29 09:46:58.082 17894 17894 W System.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:971) 3103-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1133) 3203-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1094) 3303-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1136) 3403-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1094) 3503-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:692) 3603-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:536) 3703-29 09:46:58.083 17894 17894 W System.err: at android.view.LayoutInflater.inflate(LayoutInflater.java:483) 3803-29 09:46:58.083 17894 17894 W System.err: at cn.kuwo.show.core.recyclerview.view.ExRvLoadMoreView.