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

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

Open
tgitpushping opened this issue May 10, 2024 · 1 comment
Open

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

tgitpushping opened this issue May 10, 2024 · 1 comment
Assignees

Comments

@tgitpushping
Copy link

【版本信息】

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版本

@kevingpqi123
Copy link
Collaborator

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

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