Skip to content
New issue

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

动态环图当页面切换到后台后会内存泄露,导致页面崩溃,chrome测试 #16

Closed
chanbaihai opened this issue Sep 20, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@chanbaihai
Copy link

Bug report

出现Bug的组件?

动态环图

组件配置数据?

无特殊配置

控制台错误输出?

期望情况?

不会产生内存泄露

实际情况?

实测切换后台后内存占用一直上升,最终导致网站崩溃
实测datav文档官网也存在相同问题,切换到动态环图文档,打开chrome devtool,memory选项,切换到其他tab页,js heap size一直在上升,若长时间后台则网页会崩溃

其他相关信息

  • DataV版本
  • 浏览器版本
    chrome
  • 其他
    image

image

@jiaming743
Copy link
Member

情况确实,引起内存泄露的不是组件本身,而是因为依赖项charts本身缺陷,尽快修复

@jiaming743 jiaming743 added the bug Something isn't working label Sep 20, 2019
@jiaming743
Copy link
Member

由于过于频繁的刷新图表状态,CRender插件动画池的动画数据持续增长(绘制速度赶不上消耗速度)导致内存堆积,已经做了相关优化(每次刷新图表强制清空动画池),请更新至@jiaminghi/datav@2.4.6,另外图表组件请勿过于频繁的刷新状态(刷新间隔小于3S),后期将针对性的优化插件,以取得更少的内存占用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants