Skip to content

dynamic chart memory leak #10130

Open
Open

Description

@MyCupOfTeaOo

Version

4.2.0-rc.2

Reproduction link

https://mycupofteaoo.github.io/echartHtmlDemo/

Steps to reproduce

online
Code is here

What is expected?

normal

What is actually happening?

Memory continues to rise
This is a screenshot of about 30 minutes.
image

Activity

  1. echarts-bot commented on Mar 19, 2019

    @echarts-bot

    Hi! We've received your issue and please be patient to get responded. 🎉
    The average response time is expected to be within one day for weekdays.

    In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

    Have a nice day! 🍵

  2. added
    en
    pending
    on Mar 19, 2019
  3. Ovilia commented on Mar 22, 2019

    @Ovilia
    Contributor

    Please check if this has something to do with React. And provide a demo without React if not.

  4. MyCupOfTeaOo commented on Mar 22, 2019

    @MyCupOfTeaOo
    Author

    @Ovilia this is Pure HTML url
    Memory rose by 6 M in an hour
    image

  5. Ovilia commented on Mar 22, 2019

    @Ovilia
    Contributor

    @tz310200 Thanks!

  6. ergouser commented on May 20, 2019

    @ergouser

    Is this a duplicate of/related to #7002?

  7. ergouser commented on May 20, 2019

    @ergouser

    A quick search suggests #9437 and #8988 are possibly related issues.

  8. ergouser commented on Jan 7, 2020

    @ergouser

    Is there an update or a milestone release for resolution of this issue (and the three related reports)?

    This is not a "performance" issue, it's a critical issue that prevents production deployment of applications. Could we please mark it as such?

    This issue is critical to all deployments of echarts. The only work-around is to periodically close out a browser completely, or reboot the whole computer system. It's most obvious in any application that dynamically refreshes charts and which is expected to run constantly, but ALL echarts applications are suffering because of these memory leaks. We committed to echarts expecting such a critical issue to be resolved fairly quickly, but #7002 was reported more than 2 years ago and there seems to be no progress.

  9. pissang commented on Jan 8, 2020

    @pissang
    Contributor

    Hi @ergouser Can you create a new issue and provide your reproducible demo to us? We can't reproduce the memory leak issue from the code in #7002 and the link in this issue has been broken

  10. MyCupOfTeaOo commented on Jan 8, 2020

    @MyCupOfTeaOo
    Author

    您好@ergouser您可以创建一个新期刊并向我们提供可复制的演示吗?我们无法从#7002中的代码重现内存泄漏问题,并且此问题中的链接已损坏
    sorry,I modified the username after posting this issues
    I have updated the new link address

  11. maneetgoyal commented on Feb 12, 2021

    @maneetgoyal

    @MyCupOfTeaOo Are you running into this issue in ECharts 5.x as well?

  12. h4de5 commented on Apr 16, 2021

    @h4de5

    we do see a similar issue running echarts 5.0.2 in angular

  13. maneetgoyal commented on Apr 16, 2021

    @maneetgoyal

    We also experimented a bit with a line chart whose data changed dynamically every few seconds or so. Recorded the heap for 60-70 minutes. Heap size grew a bit initially but later decreased down too, so memory leaks (if any) didn't seem to be very worrisome. The same test with Vega library weren't encouraging, however.


    cc @sumitnegi7 @saikat-samanta

  14. stereokai commented on Apr 5, 2022

    @stereokai

    Not only, but I can report that with line chart, even after refreshing the page, the old data doesn't get garbage collected. Calling instance.dispose() doesn't help either. I'm on v5.4

  15. oldRabbitForz commented on Oct 26, 2022

    @oldRabbitForz

    Hi @ergouser Can you create a new issue and provide your reproducible demo to us? We can't reproduce the memory leak issue from the code in #7002 and the link in this issue has been broken
    你不是在要demo,就是在要demo的路上

  16. ergouser commented on Oct 26, 2022

    @ergouser

    The full html is in #7002. That issue was reported 5 years ago against 3.x so may, or may not still exist. I haven't tested against later versions.

  17. 0xAskar commented on Mar 9, 2023

    @0xAskar

    Any updates on the memory leaks? After many hours, my code will crash and it will give the typical "Javascript memory heap out of memory" error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enpendingperformancepriority: highwaiting-for: community

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions