Closed csbz17027 closed 1 year ago
补充下,加载补丁后重启时会出现tinker load exception 日志如下 2023-04-12 13:35:02.903 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w392dp h710dp 440dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 1080, 2030) mWindowingMode=fullscreen mActivityType=undefined} s.253 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]} 2023-04-12 13:35:03.114 com.sd02.dobhall D/Tinker.DefaultAppLike: onTrimMemory level:80 2023-04-12 13:35:03.191 com.sd02.dobhall W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.sd02.dobhall/tinker_temp/temp.apk is not exist, just return 2023-04-12 13:35:05.950 com.sd02.dobhall D/Tinker.TinkerLoader: tryLoad test test 2023-04-12 13:35:06.000 com.sd02.dobhall I/Tinker.TinkerInternals: class not found exception 2023-04-12 13:35:06.003 com.sd02.dobhall D/Tinker.TinkerInternals: getCurrentInstructionSet:arm64 2023-04-12 13:35:06.003 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true 2023-04-12 13:35:06.005 com.sd02.dobhall D/Tinker.TinkerInternals: same fingerprint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys 2023-04-12 13:35:06.006 com.sd02.dobhall W/Tinker.TinkerInternals: getSafeModeCount: recFileName:safemode_count_rec_com.sd02.dobhall failed, return 0 instead. 2023-04-12 13:35:06.007 com.sd02.dobhall I/Tinker.TinkerInternals: setSafeModeCount: count: 1 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.TinkerDexLoader: classloader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.TinkerDexLoader: verify dex file:/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk md5, use time: 0 2023-04-12 13:35:06.008 com.sd02.dobhall I/Tinker.ClassLoaderAdder: installDexes dexOptDir: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/odex, dex size:1 2023-04-12 13:35:06.020 com.sd02.dobhall I/Tinker.ClassLoaderAdder: after loaded classloader: com.tencent.tinker.loader.TinkerClassLoader[DexPathList[[zip file "/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]], dex size:1 2023-04-12 13:35:06.022 com.sd02.dobhall I/Tinker.ClassLoaderAdder: checkDexInstall result: false, checker_classloader: com.tencent.tinker.loader.TinkerClassLoader[DexPathList[[zip file "/data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinker_classN.apk"],nativeLibraryDirectories=[/data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/lib/arm64, /data/app/com.sd02.dobhall-Vd29JiM4yC5cDqV-anqL8g==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] 2023-04-12 13:35:06.022 com.sd02.dobhall E/Tinker.TinkerDexLoader: install dexes failed 2023-04-12 13:35:06.022 com.sd02.dobhall W/Tinker.TinkerLoader: tryLoadPatchFiles:onPatchLoadDexesFail 2023-04-12 13:35:06.027 com.sd02.dobhall D/Tinker.DefaultAppLike: onBaseContextAttached: 2023-04-12 13:35:06.037 com.sd02.dobhall V/Tinker.SamplePatchListener: application maxMemory:256 2023-04-12 13:35:06.045 com.sd02.dobhall W/Tinker.Tinker: tinker patch directory: /data/user/0/com.sd02.dobhall/tinker 2023-04-12 13:35:06.046 com.sd02.dobhall I/Tinker.Tinker: try to install tinker, isEnable: true, version: 1.9.14.25.1 2023-04-12 13:35:06.048 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult loadCode:-14, process name:com.sd02.dobhall, main process:true, systemOTA:false, fingerPrint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:odex, useInterpretMode:false 2023-04-12 13:35:06.048 com.sd02.dobhall I/Tinker.TinkerLoadResult: parseTinkerResult oldVersion:, newVersion:093e8f98601d901f3c385e4e4db1777c, current:093e8f98601d901f3c385e4e4db1777c 2023-04-12 13:35:06.049 com.sd02.dobhall I/Tinker.TinkerLoadResult: Tinker load have exception loadCode:-14 2023-04-12 13:35:06.050 com.sd02.dobhall E/Tinker.DefaultLoadReporter: patch loadReporter onLoadException: tinker dex check fail:Tinker Exception:checkDexInstall failed 2023-04-12 13:35:06.056 com.sd02.dobhall I/Tinker.DefaultLoadReporter: dex exception disable tinker forever with sp 2023-04-12 13:35:06.056 com.sd02.dobhall E/Tinker.DefaultLoadReporter: tinker load exception, welcome to submit issue to us: https://github.com/Tencent/tinker/issues 2023-04-12 13:35:06.057 com.sd02.dobhall E/Tinker.DefaultLoadReporter: tinker load exception com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:checkDexInstall failed at com.tencent.tinker.loader.SystemClassLoaderAdder.installDexes(SystemClassLoaderAdder.java:73) at com.tencent.tinker.loader.TinkerDexLoader.loadTinkerJars(TinkerDexLoader.java:191) at com.tencent.tinker.loader.TinkerLoader.tryLoadPatchFilesInternal(TinkerLoader.java:346) at com.tencent.tinker.loader.TinkerLoader.tryLoad(TinkerLoader.java:57) at java.lang.reflect.Method.invoke(Native Method) at com.tencent.tinker.loader.app.TinkerApplication.loadTinker(TinkerApplication.java:125) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:163) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:186) at android.app.Application.attach(Application.java:215) at android.app.Instrumentation.newApplication(Instrumentation.java:1122) at android.app.LoadedApk.makeApplication(LoadedApk.java:1065) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5988) at android.app.ActivityThread.access$1200(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:6878) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) 2023-04-12 13:35:06.060 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/patch-093e8f98.apk 2023-04-12 13:35:06.061 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64/tinker_classN.vdex 2023-04-12 13:35:06.062 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64/tinker_classN.odex 2023-04-12 13:35:06.062 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/arm64 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat/tinker_classN.apk.cur.prof 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/oat 2023-04-12 13:35:06.063 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex/tinkerclassN.apk 2023-04-12 13:35:06.064 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/dex 2023-04-12 13:35:06.064 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/odex 2023-04-12 13:35:06.065 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/res/resources.apk 2023-04-12 13:35:06.101 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98/res 2023-04-12 13:35:06.101 com.sd02.dobhall I/Tinker.PatchFileUtil: safeDeleteFile, try to delete path: /data/user/0/com.sd02.dobhall/tinker/patch-093e8f98 2023-04-12 13:35:06.103 com.sd02.dobhall I/Tinker.PatchInfo: rewritePatchInfoFile file path:/data/user/0/com.sd02.dobhall/tinker/patch.info , oldVer:, newVer:, isProtectedApp:0, versionToRemove:, fingerprint:Xiaomi/chiron/chiron:9/PKQ1.190118.001/V12.0.1.0.PDECNXM:user/release-keys, oatDir:odex, isRemoveInterpretOATDir:0, stack: java.lang.Throwable at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFile(SharePatchInfo.java:184) at com.tencent.tinker.loader.shareutil.SharePatchInfo.rewritePatchInfoFileWithLock(SharePatchInfo.java:104) at com.tencent.tinker.loader.shareutil.ShareTinkerInternals.cleanPatch(ShareTinkerInternals.java:764) at com.tencent.tinker.lib.tinker.Tinker.cleanPatch(Tinker.java:258) at com.tencent.tinker.lib.reporter.DefaultLoadReporter.checkAndCleanPatch(DefaultLoadReporter.java:307) at com.tencent.tinker.lib.reporter.DefaultLoadReporter.onLoadException(DefaultLoadReporter.java:280) at com.sd02.dobhall.reporter.SampleLoadReporter.onLoadException(SampleLoadReporter.java:68) at com.tencent.tinker.lib.tinker.TinkerLoadResult.parseTinkerResult(TinkerLoadResult.java:142) at com.tencent.tinker.lib.tinker.Tinker.install(Tinker.java:152) at com.tencent.tinker.lib.tinker.TinkerInstaller.install(TinkerInstaller.java:71) at com.sd02.dobhall.utils.TinkerManager.installTinker(TinkerManager.java:98) at com.sd02.dobhall.app.MyApplicationLike.onBaseContextAttached(MyApplicationLike.java:56) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessageImpl(TinkerApplicationInlineFence.java:72) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessage$noinline$(TinkerApplicationInlineFence.java:60) at com.tencent.tinker.entry.TinkerApplicationInlineFence.handleMessage(TinkerApplicationInlineFence.java:53) at com.tencent.tinker.loader.app.TinkerInlineFenceAction.callOnBaseContextAttached(TinkerInlineFenceAction.java:47) at com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(TinkerApplication.java:168) at com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(TinkerApplication.java:186) at android.app.Application.attach(Application.java:215) at android.app.Instrumentation.newApplication(Instrumentation.java:1122) at android.app.LoadedApk.makeApplication(LoadedApk.java:1065) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5988) at android.app.ActivityThread.access$1200(ActivityThread.java:202) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:6878) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) 2023-04-12 13:35:06.116 com.sd02.dobhall W/Tinker.PatchInfo: path info file corrupted:/data/user/0/com.sd02.dobhall/tinker/patch.info 2023-04-12 13:35:06.121 com.sd02.dobhall W/Tinker.PatchInfo: path info file corrupted:/data/user/0/com.sd02.dobhall/tinker/patch.info 2023-04-12 13:35:06.122 com.sd02.dobhall I/Tinker.DefaultLoadReporter: patch loadReporter onLoadResult: patch load result, path:/data/user/0/com.sd02.dobhall/tinker, code: -14, cost: 72ms 2023-04-12 13:35:06.122 com.sd02.dobhall W/Tinker.Tinker: tinker load fail! 2023-04-12 13:35:06.123 com.sd02.dobhall I/Tinker.TinkerInternals: setSafeModeCount: count: 0 2023-04-12 13:35:06.187 com.sd02.dobhall D/Tinker.DefaultAppLike: onCreate 2023-04-12 13:35:06.194 com.sd02.dobhall D/Tinker.DefaultAppLike: onConfigurationChanged:{1.0 ?mcc?mnc [zh_CN] ldltr sw392dp w785dp h365dp 440dpi nrml long land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 2160, 1080) mAppBounds=Rect(0, 0 - 2160, 1080) mWindowingMode=fullscreen mActivityType=undefined} s.254 themeChanged=0 themeChangedFlags=0 extraData = Bundle[{}]} 2023-04-12 13:35:06.194 com.sd02.dobhall D/Tinker.DefaultAppLike: onTrimMemory level:10 2023-04-12 13:35:06.567 com.sd02.dobhall D/Tinker.DefaultAppLike: [PendingLog @ 2023-04-12 13:35:06.027] onBaseContextAttached:
已解决 降版本到1.9.14.19
已解决 降版本到1.9.14.19
哈喽,想问下tinker线上稳定性怎么样呢
Issue/提问须知
在提交issue之前,我们应该先查询是否已经有相关的issue以及常见问题。提交issue时,我们需要写明issue的原因,以及编译或运行过程的日志(加载进程以及Patch进程)。issue需要以下面的格式: