Skip to content

android适配问题 4.3.51 PAGImageView加载报错PAGDecoder: Failed to open SequenceFile #2242

Answered by kevingpqi123
zengke328 asked this question in Q&A
Discussion options

You must be logged in to vote

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

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

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@zengke328
Comment options

@Yetland
Comment options

@b376787348
Comment options

@kevingpqi123
Comment options

Answer selected by kevingpqi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants