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

补丁包安装成功,重启APP加载修复包耗时过长问题 #1746

Open
wanggang0813 opened this issue Apr 25, 2024 · 2 comments
Open

Comments

@wanggang0813
Copy link

问题描述:发现线上有部分用户Tinker补丁包安装成功,重启设备加载补丁包过程中出现了卡住的问题,通过堆栈采集发现是‘com.tencent.tinker.loader.NewClassLoaderInjector.createNewClassLoader(SourceFile:170)’ 方法执行耗时过长,线上问题占比(1w用户里出现3例超过5秒),期望能帮忙分析下该问题以及是否有方案解决,谢谢!

异常类型:app运行时异常

手机型号:VIVO(V1816A等)、荣耀较多

手机系统版本:Android9以上

tinker版本:1.9.14.25.2

gradle版本:7.5

是否使用热更新SDK: 否

系统:Mac

堆栈/日志:
dalvik.system.DexFile.openDexFileNative(Native Method)
dalvik.system.DexFile.openDexFile(DexFile.java:354)
dalvik.system.DexFile.(DexFile.java:101)
dalvik.system.DexFile.(DexFile.java:75)
dalvik.system.DexPathList.loadDexFile(DexPathList.java:394)
dalvik.system.DexPathList.makeDexElements(DexPathList.java:354)
dalvik.system.DexPathList.(DexPathList.java:164)
dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:74)
dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:65)
dalvik.system.PathClassLoader.(PathClassLoader.java:64)
dalvik.system.DelegateLastClassLoader.(DelegateLastClassLoader.java:81)
com.tencent.tinker.loader.NewClassLoaderInjector.createNewClassLoader(SourceFile:170)
com.tencent.tinker.loader.NewClassLoaderInjector.inject(SourceFile:26)
com.tencent.tinker.loader.SystemClassLoaderAdder.installDexes(SourceFile:86)
com.tencent.tinker.loader.TinkerDexLoader.loadTinkerJars(SourceFile:547)
com.tencent.tinker.loader.TinkerLoader.tryLoadPatchFilesInternal(SourceFile:135)
com.tencent.tinker.loader.TinkerLoader.tryLoad(SourceFile:21)
java.lang.reflect.Method.invoke(Native Method)
com.tencent.tinker.loader.app.TinkerApplication.loadTinker(SourceFile:41)
com.tencent.tinker.loader.app.TinkerApplication.onBaseContextAttached(SourceFile:2)
com.tencent.tinker.loader.app.TinkerApplication.attachBaseContext(SourceFile:22)
com.xxxxx.chappie.loader.ChappieApplication.attachBaseContext(Unknown Source:104)
android.app.Application.attach(Application.java:231)
android.app.Instrumentation.newApplication(Instrumentation.java:1125)
android.app.LoadedApk.makeApplication(LoadedApk.java:1076)
java.lang.reflect.Method.invoke(Native Method)
msdocker.ee.invoke(Unknown Source:2)
android.os.Handler.handleCallback(Handler.java:873)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:224)
android.app.ActivityThread.main(ActivityThread.java:7142)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:511)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)

@jacklongway
Copy link

jacklongway commented Apr 25, 2024 via email

@canlan818
Copy link

canlan818 commented Apr 25, 2024 via email

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

3 participants