We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
类似问题:#4796
复现方法:timingKeyframe 容器设置 iterationCount: Infinity 即可
iterationCount: Infinity
截图展示了运行一段时间后的三次内存信息,可以看出一直在增长:
原因是存在大量未被销毁的 Path 对象。应该是形变动画结束后,没有调用 path.destroy() 销毁。
path.destroy()
The text was updated successfully, but these errors were encountered:
这里组件会有相同的问题吗?比如组件的文本。
Sorry, something went wrong.
该问题 @antv/g@5.16.13 已修复,G2 不需要做任何修改。目前只需要将图形从画布中移除就可以得到及时回收:
@antv/g@5.16.13
shape.remove();
下图为一个无限执行的动画效果验证,相邻两个 memory snapshots 间隔 30s。可以看出内存已经能够及时得到回收:
这个内存泄漏的原因是什么?
shape 从场景树移除但是没有调用 shape.destroy 的时候没有销毁。
xiaoiver
pearmini
No branches or pull requests
类似问题:#4796
复现方法:timingKeyframe 容器设置
iterationCount: Infinity
即可截图展示了运行一段时间后的三次内存信息,可以看出一直在增长:
原因是存在大量未被销毁的 Path 对象。应该是形变动画结束后,没有调用
path.destroy()
销毁。The text was updated successfully, but these errors were encountered: