[兼容性问题] 6.0 设备上启动宿主 Activity 崩溃
发布于 2 年前 作者 bin.shao 2801 次浏览 来自 问答

问题描述

bugly 收集到的 crash ,应该是偶现的问题,全部是 6.0 及以上设备

  • 小米5/5s
  • 小米 REDMI NOTE 4
  • 一加 A3000
  • 荣耀 KNT AL10
  • 荣耀 KIW-AL10
  • 华为 ALE-TL00
  • 乐视 X600
  • 乐视 LE X520
  • 三星 SM-N9100
  • 其他的一些 6.0 设备

apkplug version 3.2

分析 crash stacktrace ,应该是 宿主 启动 宿主 中的扫描二维码 Activity com.qrcode.activity.MipcaActivityCapture挂了

crash stacktrace

java.lang.NullPointerException
Attempt to read from field 'java.lang.String android.content.pm.PackageItemInfo.packageName' on a null object reference
}
1 java.lang.RuntimeException:Unable to start activity ComponentInfo{com.wlqq/com.qrcode.activity.MipcaActivityCapture}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.content.pm.PackageItemInfo.packageName' on a null object reference
2 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2479)
3 ......
4 cause by:
5 java.lang.NullPointerException:Attempt to read from field 'java.lang.String android.content.pm.PackageItemInfo.packageName' on a null object reference
6 org.tengxin.bf.aZ(Unknown Source)
7 org.tengxin.bf.aM(Unknown Source)
8 org.tengxin.e.callActivityOnCreate(Unknown Source)
9 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
10 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
11 android.app.ActivityThread.access$900(ActivityThread.java:168)
12 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
13 android.os.Handler.dispatchMessage(Handler.java:102)
14 android.os.Looper.loop(Looper.java:150)
15 android.app.ActivityThread.main(ActivityThread.java:5665)
16 java.lang.reflect.Method.invoke(Native Method)
17 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
18 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

logcat 日志

3311-01 19:16:16.989 7511 7511 I System.out: start:com.qrcode.activity.MipcaActivityCapture
3411-01 19:16:16.997 7511 7511 W System.err: java.lang.ArithmeticException: error:0f06707b:elliptic curve routines:EC_GROUP_new_by_curve_name:UNKNOWN_GROUP
3511-01 19:16:16.997 7511 7511 W System.err: at java.math.NativeBN.BN_new(Native Method)
3611-01 19:16:16.997 7511 7511 W System.err: at java.math.BigInt.makeValid(BigInt.java:51)
3711-01 19:16:16.997 7511 7511 W System.err: at java.math.BigInt.putBigEndianTwosComplement(BigInt.java:181)
3811-01 19:16:16.997 7511 7511 W System.err: at java.math.BigInteger.<init>(BigInteger.java:304)
3911-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Integer.toIntValue(ASN1Integer.java:100)
4011-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.x509.TBSCertificate$1.getDecodedObject(TBSCertificate.java:253)
4111-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:45)
4211-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554)
4311-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105)
4411-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40)
4511-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.BerInputStream.decodeValueCollection(BerInputStream.java:626)
4611-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.BerInputStream.readSetOf(BerInputStream.java:606)
4711-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.DerInputStream.readSetOf(DerInputStream.java:115)
4811-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1SetOf.decode(ASN1SetOf.java:40)
4911-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Implicit.decode(ASN1Implicit.java:116)
5011-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.BerInputStream.readSequence(BerInputStream.java:554)
5111-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.DerInputStream.readSequence(DerInputStream.java:105)
5211-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:40)
5311-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Type.decode(ASN1Type.java:82)
5411-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.pkcs7.ContentInfo$1.getDecodedObject(ContentInfo.java:146)
5511-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:45)
5611-01 19:16:16.997 7511 7511 W System.err: at org.apache.harmony.security.utils.JarUtils.verifySignature(JarUtils.java:72)
5711-01 19:16:16.997 7511 7511 W System.err: at java.util.jar.JarVerifier.verifyCertificate(JarVerifier.java:294)
5811-01 19:16:16.997 7511 7511 W System.err: at java.util.jar.JarVerifier.readCertificates(JarVerifier.java:268)
5911-01 19:16:16.997 7511 7511 W System.err: at java.util.jar.StrictJarFile.<init>(StrictJarFile.java:77)
6011-01 19:16:16.997 7511 7511 W System.err: at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1147)
6111-01 19:16:16.997 7511 7511 W System.err: at android.content.pm.PackageParser.collectCertificates(PackageParser.java:1132)
6211-01 19:16:16.997 7511 7511 W System.err: at android.content.pm.PackageManager.getPackageArchiveInfo(PackageManager.java:3557)
6311-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.ag.a(Unknown Source)
6411-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.ag.b(Unknown Source)
6511-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.dx.t(Unknown Source)
6611-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.dx.u(Unknown Source)
6711-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.bf.aQ(Unknown Source)
6811-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.bf.aZ(Unknown Source)
6911-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.bf.aM(Unknown Source)
7011-01 19:16:16.997 7511 7511 W System.err: at org.tengxin.e.callActivityOnCreate(Unknown Source)
7111-01 19:16:16.997 7511 7511 W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
7211-01 19:16:16.997 7511 7511 W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
7311-01 19:16:16.997 7511 7511 W System.err: at android.app.ActivityThread.access$900(ActivityThread.java:168)
7411-01 19:16:16.997 7511 7511 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
7511-01 19:16:16.997 7511 7511 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
7611-01 19:16:16.997 7511 7511 W System.err: at android.os.Looper.loop(Looper.java:150)
7711-01 19:16:16.997 7511 7511 W System.err: at android.app.ActivityThread.main(ActivityThread.java:5665)
7811-01 19:16:16.997 7511 7511 W System.err: at java.lang.reflect.Method.invoke(Native Method)
7911-01 19:16:16.997 7511 7511 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
8011-01 19:16:16.997 7511 7511 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
8111-01 19:16:17.009 7511 7511 W System.err: java.lang.NoSuchMethodException: generatePackageInfo [class android.content.pm.PackageParser$Package, class [I, int, long, long, class android.util.ArraySet, class android.content.pm.PackageUserState, int]
8211-01 19:16:17.009 7511 7511 W System.err: at java.lang.Class.getMethod(Class.java:624)
8311-01 19:16:17.009 7511 7511 W System.err: at java.lang.Class.getDeclaredMethod(Class.java:586)
8411-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.ag.b(Unknown Source)
8511-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.dx.t(Unknown Source)
8611-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.dx.u(Unknown Source)
8711-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.bf.aQ(Unknown Source)
8811-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.bf.aZ(Unknown Source)
8911-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.bf.aM(Unknown Source)
9011-01 19:16:17.009 7511 7511 W System.err: at org.tengxin.e.callActivityOnCreate(Unknown Source)
9111-01 19:16:17.009 7511 7511 W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
9211-01 19:16:17.009 7511 7511 W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
9311-01 19:16:17.009 7511 7511 W System.err: at android.app.ActivityThread.access$900(ActivityThread.java:168)
9411-01 19:16:17.009 7511 7511 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
9511-01 19:16:17.009 7511 7511 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
9611-01 19:16:17.009 7511 7511 W System.err: at android.os.Looper.loop(Looper.java:150)
9711-01 19:16:17.009 7511 7511 W System.err: at android.app.ActivityThread.main(ActivityThread.java:5665)
9811-01 19:16:17.009 7511 7511 W System.err: at java.lang.reflect.Method.invoke(Native Method)
9911-01 19:16:17.009 7511 7511 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
10011-01 19:16:17.009 7511 7511 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
10111-01 19:16:17.009 7511 7511 E PackageInfo: ApplicationInfo is null
10211-01 19:16:17.010 7511 7511 W System.err: Unable to read ApplicationInfo
10311-01 19:16:17.010 7511 7511 W System.err: java.lang.NullPointerException: Attempt to read from field 'android.content.pm.ApplicationInfo android.content.pm.PackageInfo.applicationInfo' on a null object reference
10411-01 19:16:17.010 7511 7511 W System.err: at org.tengxin.dx.u(Unknown Source)
10511-01 19:16:17.010 7511 7511 W System.err: at org.tengxin.bf.aQ(Unknown Source)
10611-01 19:16:17.010 7511 7511 W System.err: at org.tengxin.bf.aZ(Unknown Source)
10711-01 19:16:17.010 7511 7511 W System.err: at org.tengxin.bf.aM(Unknown Source)
10811-01 19:16:17.010 7511 7511 W System.err: at org.tengxin.e.callActivityOnCreate(Unknown Source)
10911-01 19:16:17.010 7511 7511 W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
11011-01 19:16:17.010 7511 7511 W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
11111-01 19:16:17.010 7511 7511 W System.err: at android.app.ActivityThread.access$900(ActivityThread.java:168)
11211-01 19:16:17.010 7511 7511 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
11311-01 19:16:17.010 7511 7511 W System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
11411-01 19:16:17.010 7511 7511 W System.err: at android.os.Looper.loop(Looper.java:150)
11511-01 19:16:17.010 7511 7511 W System.err: at android.app.ActivityThread.main(ActivityThread.java:5665)
11611-01 19:16:17.010 7511 7511 W System.err: at java.lang.reflect.Method.invoke(Native Method)
11711-01 19:16:17.010 7511 7511 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
11811-01 19:16:17.010 7511 7511 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
11911-01 19:16:17.010 7511 7511 E CrashHandler: In thread: Thread[main,5,main]
12011-01 19:16:17.010 7511 7511 E CrashHandler: UncaughtException detected: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wlqq/com.qrcode.activity.MipcaActivityCapture}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.content.pm.PackageItemInfo.packageName' on a null object reference
12111-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2479)
12211-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
12311-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread.access$900(ActivityThread.java:168)
12411-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
12511-01 19:16:17.010 7511 7511 E CrashHandler: at android.os.Handler.dispatchMessage(Handler.java:102)
12611-01 19:16:17.010 7511 7511 E CrashHandler: at android.os.Looper.loop(Looper.java:150)
12711-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread.main(ActivityThread.java:5665)
12811-01 19:16:17.010 7511 7511 E CrashHandler: at java.lang.reflect.Method.invoke(Native Method)
12911-01 19:16:17.010 7511 7511 E CrashHandler: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
13011-01 19:16:17.010 7511 7511 E CrashHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
13111-01 19:16:17.010 7511 7511 E CrashHandler: Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.content.pm.PackageItemInfo.packageName' on a null object reference
13211-01 19:16:17.010 7511 7511 E CrashHandler: at org.tengxin.bf.aZ(Unknown Source)
13311-01 19:16:17.010 7511 7511 E CrashHandler: at org.tengxin.bf.aM(Unknown Source)
13411-01 19:16:17.010 7511 7511 E CrashHandler: at org.tengxin.e.callActivityOnCreate(Unknown Source)
13511-01 19:16:17.010 7511 7511 E CrashHandler: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2432)
13611-01 19:16:17.010 7511 7511 E CrashHandler: ... 9 more
2 回复

升级最新版3.9.2可以解决

@apkplug 嗯,好的,我们试试

回到顶部