Replies: 3 comments
-
|
你试一下销毁后将canvas也销毁,就不会泄露了。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
请用最新版本确认下该问题是否还存在,若存在请描述下复现场景和路径 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
该问题长时间未更新,暂时先关闭,后续有补充可以重新打开。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
【版本信息】
libpag SDK 版本:4.2.84
ffavc SDK:1.0.2
chrome:108.0.5359.215
electron: 22.3.27
试了好几种方案都存在内存泄露,页面白屏,求解 [抱拳]
方案一:根据官方的 demo ,每次切换 setComposition 前先 pause 和 stop,再 setComposition(newPagFile), 会有内存泄露
方案二:每次播放完毕,掉用 PAGView 的 destroy 去销毁,等待 1s 后(希望他释放内存,但是没用),下次播放再次初始化新的 PAGView ,播放新 PAG ,还是会有内存泄露
应用刚打开内存 200MB

疯狂播放 PAG 后到 800MB => 1000MB ,超出 1G 后内存泄露白屏
链接:https://pica.zhimg.com/v2-51541d7799dd1bbde755bbe845ca07df.png

视频链接:https://zhstatic.zhihu.com/vip-fe/live/06cdabf5b00c5329e882f568b00732a2.mov
方案一 代码,也是上图使用代码
Beta Was this translation helpful? Give feedback.
All reactions