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

Caused by java.lang.ClassNotFoundException Didn't find class "android.hardware.HardwareBuffer" #1569

Closed
peter100u opened this issue Jul 19, 2023 · 12 comments
Assignees

Comments

@peter100u
Copy link

【版本信息】

4.2.100

【平台信息】

Android 原生 , 海外googleplay市场

【预期的表现】

不闪退

【实际的情况】

更新到4.2.100,线上出现大量crash, 无法必现

【Demo及附件】

Caused by java.lang.ClassNotFoundException: Didn't find class "android.hardware.HardwareBuffer" on path: DexPathList[[zip file "/data/app/com.ohla.socialapps-1/base.apk", zip file "/data/app/com.ohla.socialapps-1/split_config.armeabi_v7a.apk", zip file "/data/app/com.ohla.socialapps-1/split_config.mdpi.apk"],nativeLibraryDirectories=[/data/app/com.ohla.socialapps-1/lib/arm, /data/app/com.ohla.socialapps-1/base.apk!/lib/armeabi-v7a, /data/app/com.ohla.socialapps-1/split_config.armeabi_v7a.apk!/lib/armeabi-v7a, /data/app/com.ohla.socialapps-1/split_config.mdpi.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at org.libpag.PAGImageView.a(SourceFile:36)
at org.libpag.PAGImageView.flush(SourceFile:8)
at org.libpag.PAGImageView.onAnimationUpdate(SourceFile:4)
at org.libpag.PAGAnimator.onAnimationUpdate(SourceFile:2)

@peter100u peter100u changed the title Caused by java.lang.ClassNotFoundException Didn't find class "android.hardware.HardwareBuffer" on path: DexPathList[[zip file "/data/app/com.ohla.socialapps-1/base.apk", zip file "/data/app/com.ohla.socialapps-1/split_config.armeabi_v7a.apk", zip file "/data/app/com.ohla.socialapps-1/split_config.mdpi.apk"],nativeLibraryDirectories=[/data/app/com.ohla.socialapps-1/lib/arm, /data/app/com.ohla.socialapps-1/base.apk!/lib/armeabi-v7a, /data/app/com.ohla.socialapps-1/split_config.armeabi_v7a.apk!/lib/armeabi-v7a, Caused by java.lang.ClassNotFoundException Didn't find class "android.hardware.HardwareBuffer" Jul 19, 2023
@h3r3x3
Copy link
Contributor

h3r3x3 commented Jul 19, 2023

具体是哪些手机会报错? 系统是什么版本? 可以发一些上来,我们复测下

@peter100u
Copy link
Author

image

@h3r3x3
Copy link
Contributor

h3r3x3 commented Jul 19, 2023

我用demo复测了一些7.0的机型,并不会crash,另外7.0的版本并不会开启HardwareBuffer。另外我也下载了你们的ohla,大概点了一会,在7.0上也没有crash。
这里的话,建议你们也找一下相应的机型,看下具体是在哪个页面,怎么调用api的场景crash的。看起来比较奇怪。

@peter100u
Copy link
Author

嗯,我们也在看,之前没出现过的闪退,升级后出现

@peter100u
Copy link
Author

还是无法重现,实在不行,就降级看看

@h3r3x3
Copy link
Contributor

h3r3x3 commented Jul 20, 2023

最好能找到一个crash的设备,然后模拟从老版本升级到新版本,然后看下crash具体在操作什么的时候出现的,整体还原下用户的操作,如果有必现的路径就好分析了

@peter100u
Copy link
Author

最好能找到一个crash的设备,然后模拟从老版本升级到新版本,然后看下crash具体在操作什么的时候出现的,整体还原下用户的操作,如果有必现的路径就好分析了

已经降到'com.tencent.tav:libpag:4.2.92' 已经没有闪退了, 但是4.3.3这个问题还是存在,很难重现

@spardas
Copy link

spardas commented Jul 26, 2023

我这里有台设备稳定复现
image

@peter100u
Copy link
Author

可以啊,老哥,具体机型发出来,方便他们查问题

@spardas
Copy link

spardas commented Jul 27, 2023

image

@h3r3x3
Copy link
Contributor

h3r3x3 commented Jul 28, 2023

在官方的demo里面可以复测吗? 还是要有特定的流程调用,我这边没有这台测试机。 可以在官方demo测试,然后抓一下全量的log吗 @spardas

@h3r3x3
Copy link
Contributor

h3r3x3 commented Aug 3, 2023

这个问题已经定位到了

  1. 4.2的版本是没有这个问题的,如果用4.2就用最新的就好
  2. 4.3的版本复现到了这个问题,这个已经修复了,更新到4.3.8就可以了 fix hardwarebuffer crash in low android version #1630

@h3r3x3 h3r3x3 closed this as completed Aug 3, 2023
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

4 participants