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

Samsung s23使用PAGView可以正常加载,PAGImageView无法加载 #2278

Open
Yetland opened this issue May 3, 2024 · 1 comment
Open
Assignees

Comments

@Yetland
Copy link

Yetland commented May 3, 2024

【版本信息】

4.3.47

【平台信息】

Android 原生

【预期的表现】

PAGView和PAGImageView都能正常显示

【实际的情况】

PAGView正常,PAGImageView不正常

【Demo及附件】

https://developer.samsung.com/remotetestlab/devices/125/galaxy-s 选择s23-fe运行安装apk就可以复现

@kevingpqi123
Copy link
Collaborator

针对三星部分手机 PAGImageView 渲染空白的问题,我们分析了下原因,结论如下:
出现问题的原因是三星部分机型 HardwareBuffer 相关实现可能存在一些问题,对于 PAGImageView 而言,pag 在播放动画的过程中,创建了一个 Bitmap,该 Bitmap 通过 Bitmap.wrapHardwareBuffer 的方式创建,Bitmap 占用的内存来源于创建的 HardwareBuffer,播放的过程中会不断将渲染的数据 copy 至创建的HardwareBuffer,然后将 Bitmap 渲染出来,但是在三星的部分机型上 Bitmap 的宽高可以正常读取,却无法正常显示,目前已拉群将该问题反馈至三星

对于 pag 而言,如果这里做处理就要加机型判断,我们倾向于等待三星的问题修复,问题修复后会第一时间知会大家

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

2 participants