Tencent / libpag

The official rendering library for PAG (Portable Animated Graphics) files that renders After Effects animations natively across multiple platforms.

Home Page:https://pag.art

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

高概率出现首次加载PAGImageView失败

tgitpushping opened this issue · comments

【版本信息】

4.3.51

【平台信息】

iOS 原生

【预期的表现】

预期表现为正常

【实际的情况】

高概率出现错误
PAGDecoder::readFrame() Failed to write frame to SequenceFile!

建议用多个图片,比如16~20个小图动画播放,看日志情况
PAGDecoder.cpp

auto success = sequenceFile->readFrame(index, bitmap);
if (!success) {
success = renderFrame(composition, index, bitmap);
if (success) {
success = sequenceFile->writeFrame(index, bitmap);
if (!success) {
LOGE("PAGDecoder::readFrame() Failed to write frame to SequenceFile!");
}
}
}

输出的参数:
index = 0 (std::string) path = "/private/var/containers/Bundle/Application/59BA9675-D226-4B57-9BFD-D0AD322C77A4/PAGViewer.app/list/2.pag"

另外,看这个问题也是PAG的历史问题,以前其他同学的bug单:
#1717

【Demo及附件】

直接用主线或者release版本

pag 的 官方 demo 中有加载多个 PAGImageView 的范例,看下能否在官方 demo 中复现