高概率出现首次加载PAGImageView失败
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.