Tencent / Tencent/libpag

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

Open
#2,288 1 comment 1 reaction 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since May 10, 2024.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

【版本信息】

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单:
https://github.com/Tencent/libpag/issues/1717

【Demo及附件】

直接用主线或者release版本

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.