BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
811 stars 307 forks source link

一切准备好了,点击 ‘手动合成补丁’ 出现失败问题? #240

Open weilei131 opened 4 years ago

weilei131 commented 4 years ago

异常类型

编译没有问题

手机型号

HUAWEI HRY-AL00a

手机系统版本

Android10.0

Tinker版本

compile 'com.tencent.tinker:tinker-android-lib:1.9.9'

gradle版本

classpath 'com.android.tools.build:gradle:3.3.0' distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

系统

win10

堆栈/日志

` 2020-06-03 19:49:41.921 23645-23645/com.tencent.bugly.hotfix.easy I/Tinker.TinkerPatchListener: receive a patch file: /data/user/0/com.tencent.bugly.hotfix.easy/app_tmpPatch/tmpPatch.apk, file size:3678 2020-06-03 19:49:41.926 23645-23645/com.tencent.bugly.hotfix.easy I/Tinker.DefaultLoadReporter: patch loadReporter onLoadPatchListenerReceiveFail: patch receive fail: /data/user/0/com.tencent.bugly.hotfix.easy/app_tmpPatch/tmpPatch.apk, code: -3

2020-06-03 19:53:03.950 23645-23701/com.tencent.bugly.hotfix.easy D/CrashReport: [AsyncTaskHandler] Post a normal task: com.tencent.bugly.crashreport.biz.a$2 2020-06-03 19:53:03.951 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: Uploading frequency will not be checked if SDK is in debug mode. 2020-06-03 19:53:03.959 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UserInfo] Upload user info(size: 1) 2020-06-03 19:53:03.961 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: summary type 3 vm:10 2020-06-03 19:53:03.968 23645-23698/com.tencent.bugly.hotfix.easy I/CrashReport: Failed to get boot time of device. 2020-06-03 19:53:03.972 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Add upload task (pid=23645 | tid=23698) 2020-06-03 19:53:03.972 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Sucessfully got session ID, try to execute upload task now (pid=23645 | tid=23698) 2020-06-03 19:53:03.973 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Add upload task to queue (pid=23645 | tid=23698) 2020-06-03 19:53:03.974 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Try to poll all upload task need and put them into temp queue (pid=23645 | tid=23698) 2020-06-03 19:53:03.976 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Execute urgent upload tasks of queue which has 1 tasks (pid=23645 | tid=23698) 2020-06-03 19:53:03.976 23645-23698/com.tencent.bugly.hotfix.easy I/CrashReport: [UploadManager] Create and start a new thread to execute a upload task: BUGLY_ASYNC_UPLOAD 2020-06-03 19:53:03.978 23645-23698/com.tencent.bugly.hotfix.easy D/CrashReport: [AsyncTaskHandler] Post a normal task: com.tencent.bugly.proguard.ak$2 2020-06-03 19:53:03.984 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Local network consume: 8 KB 2020-06-03 19:53:03.984 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Run upload task with cmd: 840 2020-06-03 19:53:03.984 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Integrate security to HTTP headers (pid=23645 | tid=25036) 2020-06-03 19:53:03.985 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Util] Zip 1464 bytes data with type Gzip 2020-06-03 19:53:03.993 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] deleted t_lr data 1 2020-06-03 19:53:03.995 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] insert t_lr success. 2020-06-03 19:53:03.998 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Uploading(ID:1001) time: 2020-06-03 19:53:03 2020-06-03 19:53:03.998 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Send 946 bytes 2020-06-03 19:53:04.000 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Upload to http://android.bugly.qq.com/rqd/async?aid=63a84f85-ef40-4f70-9e7a-f0e76daf5151 with cmd 840 (pid=23645 | tid=25036). 2020-06-03 19:53:04.000 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: request: http://android.bugly.qq.com/rqd/async?aid=63a84f85-ef40-4f70-9e7a-f0e76daf5151, send: 946 (pid=23645 | tid=25036) 2020-06-03 19:53:04.016 23645-25036/com.tencent.bugly.hotfix.easy D/StrictMode: StrictMode policy violation: android.os.strictmode.UntaggedSocketViolation: Untagged socket detected; use TrafficStats.setThreadSocketTag() to track all network usage at android.os.StrictMode.onUntaggedSocket(StrictMode.java:2124) at com.android.server.NetworkManagementSocketTagger.tag(NetworkManagementSocketTagger.java:98) at libcore.io.BlockGuardOs.tagSocket(BlockGuardOs.java:52) at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:372) at libcore.io.ForwardingOs.socket(ForwardingOs.java:217) at libcore.io.IoBridge.socket(IoBridge.java:658) at java.net.PlainSocketImpl.socketCreate(PlainSocketImpl.java:128) at java.net.AbstractPlainSocketImpl.create(AbstractPlainSocketImpl.java:128) at java.net.Socket.createImpl(Socket.java:489) at java.net.Socket.getImpl(Socket.java:552) at java.net.Socket.setSoTimeout(Socket.java:1180) at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:143) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262) at com.tencent.bugly.proguard.ai.a(Unknown Source:100) at com.tencent.bugly.proguard.ai.a(Unknown Source:152) at com.tencent.bugly.proguard.al.run(Unknown Source:432) at com.tencent.bugly.proguard.ak$1.run(Unknown Source:2) at java.lang.Thread.run(Thread.java:929) 2020-06-03 19:53:04.129 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Bugly version from headers is: bugly/1.0 2020-06-03 19:53:04.131 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Status from server is 0 (pid=23645 | tid=25036). 2020-06-03 19:53:04.132 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Received 146 bytes 2020-06-03 19:53:04.141 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Util] Unzip 130 bytes data with type Gzip 2020-06-03 19:53:04.147 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Upload] Response cmd is: 0, length of sBuffer is: 0 2020-06-03 19:53:04.148 23645-25036/com.tencent.bugly.hotfix.easy I/CrashReport: [Upload] Success: userinfo 2020-06-03 19:53:04.153 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Local network consume: 8 KB 2020-06-03 19:53:04.157 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] deleted t_lr data 1 2020-06-03 19:53:04.161 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] insert t_lr success. 2020-06-03 19:53:04.162 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UploadManager] Network total consume: 9 KB 2020-06-03 19:53:04.162 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [UserInfo] Successfully uploaded user info. 2020-06-03 19:53:04.168 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] insert t_ui success. 2020-06-03 19:53:04.168 23645-25036/com.tencent.bugly.hotfix.easy D/CrashReport: [Database] insert t_ui success with ID: 5 2020-06-03 19:58:08.735 23645-26127/com.tencent.bugly.hotfix.easy I/Tinker.TinkerResultService: TinkerResultService receive result: PatchResult: isSuccess:false rawPatchFilePath:/data/user/0/com.tencent.bugly.hotfix.easy/app_tmpPatch/tmpPatch.apk costTime:600004 patchVersion:3fc16891688ea3146a5dd2407e58816b 2020-06-03 19:58:08.737 23645-26127/com.tencent.bugly.hotfix.easy I/Process: Sending signal. PID: 23751 SIG: 9 2020-06-03 19:58:08.740 23645-23645/com.tencent.bugly.hotfix.easy I/CrashReport: Tinker patch failure, result: PatchResult: isSuccess:false rawPatchFilePath:/data/user/0/com.tencent.bugly.hotfix.easy/app_tmpPatch/tmpPatch.apk costTime:600004 patchVersion:3fc16891688ea3146a5dd2407e58816b `

复现路径

我出现的问题是:基准包(异常包)已经安装到设备上去了,现在我也是有 tinker-support 已经把补丁打包好了也上传上去了,如图: 目标版本 补丁 已激活 已下发 / 设定下发数量 规则 备注 1.0.3_bugly 1 0 2/ 全量设备 全量设备 修改 str null 指针问题 现在我一点击 “手动合成补丁” 就需要等到好长一点时间出现: 2020-06-03 19:58:08.740 23645-23645/com.tencent.bugly.hotfix.easy I/CrashReport: Tinker patch failure, result: PatchResult: isSuccess:false rawPatchFilePath:/data/user/0/com.tencent.bugly.hotfix.easy/app_tmpPatch/tmpPatch.apk costTime:600004 patchVersion:3fc16891688ea3146a5dd2407e58816b