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

华为android9上包为多dex时,频现crash #1341

Open
tangguotupaopao opened this issue Feb 11, 2020 · 0 comments
Open

华为android9上包为多dex时,频现crash #1341

tangguotupaopao opened this issue Feb 11, 2020 · 0 comments

Comments

@tangguotupaopao
Copy link

异常类型:app运行时异常

手机型号:华为mate9

手机系统版本:android9

tinker版本:1.9.14

gradle版本:3.4.1

是否使用热更新SDK: 否

系统:mac

堆栈/日志:
2020-02-11 21:41:07.166 30747-30747/? D/Tinker.TinkerLoader: tryLoad test test
2020-02-11 21:41:07.179 30747-30747/? D/Tinker.TinkerInternals: getCurrentInstructionSet:arm
2020-02-11 21:41:07.179 30747-30747/? W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true
2020-02-11 21:41:07.179 30747-30747/? D/Tinker.TinkerInternals: same fingerprint:HUAWEI/MHA-AL00/HWMHA:9/HUAWEIMHA-AL00/9.1.0.212C00:user/release-keys
2020-02-11 21:41:07.181 30747-30747/? W/Tinker.TinkerInternals: getSafeModeCount: preferName:tinker_own_config_com.test.hotpatch.demo count:0
2020-02-11 21:41:07.184 30747-30747/? W/Tinker.TinkerInternals: setSafeModeCount: preferName:tinker_own_config_com.test.hotpatch.demo count:1
2020-02-11 21:41:07.185 30747-30747/? I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/lib/arm, /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]]
2020-02-11 21:41:07.185 30747-30747/? I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/tinker_classN.apk md5, use time: 0
2020-02-11 21:41:07.185 30747-30747/? I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.test.hotpatch.demo/tinker/patch-f8bfaba1/odex, dex size:1
2020-02-11 21:41:07.192 30747-30747/? I/p.hotpatch.dem: Failed to add image file Failed to flatten class loader hierarchy 'Unknown class loader type com.tencent.tinker.loader.AndroidNClassLoader'
2020-02-11 21:41:07.195 30747-30747/? I/Tinker.ClassLoaderAdder: after loaded classloader: com.tencent.tinker.loader.AndroidNClassLoader[DexPathList[[zip file "/data/user/0/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/tinker_classN.apk", zip file "/data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/lib/arm, /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]], dex size:1
2020-02-11 21:41:07.195 30747-30747/? W/Tinker.ClassLoaderAdder: checkDexInstall result:true
2020-02-11 21:41:07.196 30747-30747/? I/Tinker.IncrementCompMgr: package has no incremental component meta, skip init.
2020-02-11 21:41:07.196 30747-30747/? I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.test.hotpatch.demo/tinker/patch.info , oldVer:f8bfaba1b0cef1afca7825a4332b5a88, newVer:f8bfaba1b0cef1afca7825a4332b5a88, isProtectedApp:0, isRemoveNewVersion:0, fingerprint:HUAWEI/MHA-AL00/HWMHA:9/HUAWEIMHA-AL00/9.1.0.212C00:user/release-keys, oatDir:odex
2020-02-11 21:41:07.199 30747-30747/? I/Tinker.TinkerLoader: tryLoadPatchFiles: load end, ok!
2020-02-11 21:41:07.201 30747-30747/? D/Tinker.DefaultAppLike: onBaseContextAttached:
2020-02-11 21:41:07.205 30747-30747/? A/p.hotpatch.dem: entrypoint_utils-inl.h:95] Inlined method resolution crossed dex file boundary: from void com.test.hotpatch.impl.BaseHotpatchApplication.onBaseContextAttached(android.content.Context) in /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk/0xede261e0 to void com.test.hotpatch.impl.PatchTask.init(android.content.Context, com.tencent.tinker.entry.ApplicationLike) in /data/user/0/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/tinker_classN.apk/0xe4dc1ff0. This must be due to duplicate classes or playing wrongly with class loaders. The runtime is in an unsafe state.
2020-02-11 21:41:07.215 30747-30747/? A/p.hotpatch.dem: entrypoint_utils-inl.h:95] Inlined method resolution crossed dex file boundary: from void com.test.hotpatch.impl.BaseHotpatchApplication.onBaseContextAttached(android.content.Context) in /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/base.apk/0xede261e0 to void com.test.hotpatch.impl.PatchTask.init(android.content.Context, com.tencent.tinker.entry.ApplicationLike) in /data/user/0/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/tinker_classN.apk/0xe4dc1ff0. This must be due to duplicate classes or playing wrongly with class loaders. The runtime is in an unsafe state.
2020-02-11 21:41:07.340 30747-30747/? A/p.hotpatch.dem: runtime.cc:565] #27 pc 001e2622 /data/data/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/oat/arm/tinker_classN.vdex (com.tencent.tinker.entry.TinkerApplicationInlineFence.attachBaseContextImpl_$noinline$+20)
2020-02-11 21:41:07.340 30747-30747/? A/p.hotpatch.dem: runtime.cc:565] #33 pc 001e2602 /data/data/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/oat/arm/tinker_classN.vdex (com.tencent.tinker.entry.TinkerApplicationInlineFence.attachBaseContext)
2020-02-11 21:41:07.340 30747-30747/? A/p.hotpatch.dem: runtime.cc:565] #38 pc 0005a2b9 /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/oat/arm/base.odex (offset 3f000) (com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached+224)
2020-02-11 21:41:07.340 30747-30747/? A/p.hotpatch.dem: runtime.cc:565] #39 pc 0005a5b5 /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/oat/arm/base.odex (offset 3f000) (com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext+428)
2020-02-11 21:41:07.507 30768-30768/? A/DEBUG: #27 pc 001e2622 /data/data/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/oat/arm/tinker_classN.vdex (com.tencent.tinker.entry.TinkerApplicationInlineFence.attachBaseContextImpl_$noinline$+20)
2020-02-11 21:41:07.507 30768-30768/? A/DEBUG: #33 pc 001e2602 /data/data/com.test.hotpatch.demo/tinker/patch-f8bfaba1/dex/oat/arm/tinker_classN.vdex (com.tencent.tinker.entry.TinkerApplicationInlineFence.attachBaseContext)
2020-02-11 21:41:07.507 30768-30768/? A/DEBUG: #38 pc 0005a2b9 /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/oat/arm/base.odex (offset 0x3f000) (com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached+224)
2020-02-11 21:41:07.507 30768-30768/? A/DEBUG: #39 pc 0005a5b5 /data/app/com.test.hotpatch.demo-9kzMVCWUTpIdW_7tfksoTQ==/oat/arm/base.odex (offset 0x3f000) (com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext+428)

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

1 participant