antvis/G6

v4 版本存在内存泄露 #5970

cccRaim posted onGitHub

https://github.com/antvis/G6/blob/ab461c1e27681c7a9db0966470f0ba172f93a474/packages/core/src/behavior/behaviorOption.ts#L58 image

卸载后没有移除事件监听,this一直存在对Graph的引用,导致内存泄露。 影响:在图很大的时候,反复卸载会导致内存持续上升,如页面内存占用3G+等,内存GC会造成CPU负担,导致整体页面性能下降。

期望:

  • 在unmount的时候移除该监听器

有兴趣提个 PR 修复该问题吗

posted by Aarebecca 10 months ago

有兴趣提个 PR 修复该问题吗

应该提到哪个分支?

posted by cccRaim 10 months ago

有兴趣提个 PR 修复该问题吗

应该提到哪个分支?

提到 master 分支即可~

posted by Aarebecca 10 months ago

有兴趣提个 PR 修复该问题吗

应该提到哪个分支?

提到 master 分支即可~

看了一下,Behavior影响的地方有点多,不敢乱改

posted by cccRaim 9 months ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 5 months ago

Fund this Issue

$0.00
Funded

Pull requests