You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "nandafandi (via GitHub)" <gi...@apache.org> on 2025/02/12 02:06:27 UTC

[I] [Bug] Memory Leak in ECharts Example [echarts]

nandafandi opened a new issue, #20751:
URL: https://github.com/apache/echarts/issues/20751

   ### Version
   
   5.6
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=line-stack&code=PYBwLglsB2AEC8sDeBYAULTtJgDYFMAuZdLM7fADzGIHIAVCXMAW3zHwCdaAaU8zAQBmNWLQDG-aB279MAXz4YsYYMGYQQxVMoFhOEAOaGudAIaUIAZ15zyVgBbAA7sX0BXfHcV2z0CCxmkDDEQma4VvhKZKrqAEbAlNp2ZEL4Qe6cRCS6AlhWZgBu-ACCVgCSgSbasI4uoeGRsD65ebAAJkFmAGoQ-K7ItU4DYRH4zSlY8t7RWAQm0O3JrVidYGbEANqTAgxMYLAAjLxijMywAEwne-cAzNdnBwAsD_uwAKyv5wBsXwcA7H9YAAOE47cg3A4ATiBhwADLDjjxTm9DldkZCjvcMY8ji8cajPgTzodfuCALqzATAAxSUS0YqcSDicK2FaCfAiOgGQwOMBstqqLRiSTSLi0GZ2QwGJY5No8vnENFwyW5SglSxWZaCgCeIGytEgbAFeSsIFwEDAABkINBskghvVsJxPM0qeQLNYrWY4vhcNq2lghDTAmAZHQkAAJSPyQhIFgsWNIKxWeS0WAAegzsHoDmssBYRj5sDt-HasDM7QAVu4rKw6bAIEJsAFxsHOKHINBDI2rNBDbBnDSANa2wzglptBLuRZmTg6gDiZmFo0iqrIOo11gDAmgZjYdAAIvhpfhxgAKAANAEoTXo9QbCuFPHf7ObLTa7TU6gMPONJ3kgRJLATxwnC7pkIW0DEAAtE8EFYHubBWsALLBNBYiFu07QEK-ZBIfgABKwDrBwxBQuB4IEUuwrvJR7IVpq3q-v6gw_m4Lr_qqkS0lqsDbLkOi6vqdAWnaeGIfuBq4ki4I_gAyjqLAJKxf4IZgVgsGoYAOBxnjq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TKrRt2lDEbsR126bdL1PDt3qjvTj-jP8vnL_nVK7BkaclpZxKx7ZBnvoFe8nOtkkIOokzj9tVf2gcaUB0Z4HJm2tyU6wUqHDkSPmuYXDgb1TEd5BGy5tH87MUTa5jinzq7ZsF3m0FhiIWxlk8PThmZVOttfri1HSBDOvf0pS77_bZA-eTS55A3LZ2mf85NpA4r6BSu5HK5Vz7JJMGy5bfL5Xiui6weM4C0z7W-0Q6607y3w69f9bhQj93SLo0opR3ws3bnWkV6Xdbijvm13-Yd3Rpbu7SfGvJ3Xzb0eOeit2-4_34_ttB5NtPtnAeRUuK5-4qPD8Y9gKjoEoXWARdoDFx9d7uQqsNVq793O_2DP55V4XtX-CNcmvINZqvsL26Dbr2QE3qP0cW8x5NuRtNlRnJH3tugPgxkPgepFmPpvhPoslHNskvrPt7qKq_IcEgddlvq-ibMshvgdvARHHdlcnvpgAfkfqJCfvhGntVu8nYHVlfgrgDnng1gXt2gaijODmClrpCq5H1u_pUp_sesjg6q5k6m3gAVbtjjbrjr3gTgtoAs7qGq7jAZ7igYHpPlHFysgXAXPmgVoSHlgGHjgQ1DzhloQbHqYQ9gBtKonugOgDAongANxAA
   
   ### Steps to Reproduce
   
   Hi everyone,
   
   I'm working with an ECharts for a dynamic graph and have noticed a leak issue. 
   
   The chart runs fine initially, but over time, it appears to stack the memory usage as if the previously called ones is still there. 
   
   This happens even when data updates are handled properly, and I suspect there might be an issue with how series or event listeners are being managed.
   
   I've shared the minimal in the link to minimal reproduction.
   
   The way I use it is all the same with that minimal reproduction but I call it at every second with the maximum of 50 points of data per plot.
   
   When the array size or string size isn't going up at all (only changing numbers every time) the array buffer goes bigger and bigger until it eventually stop.
   
   ![Image](https://github.com/user-attachments/assets/1d198413-18a4-4c71-9964-5b4d9145c611)
   
   I would really appreciate any guidance on debugging and fixing this memory issue. 
   
   1. Are there common pitfalls in ECharts that could cause memory leaks?
   2. Is there a recommended way to clean up or optimize dynamic updates in large datasets?
   3. Any tools or techniques for profiling and identifying the root cause?
   
   Thanks in advance for your time and help! 
   
   ### Current Behavior
   
   The memory still leaking every minutes passing and eventually comes to a stop.
   
   
   ### Expected Behavior
   
   Old called reference should be automatically deleted and not pilling up.
   
   ### Environment
   
   ```markdown
   - OS: Windows 10
   - Browser: Mozilla Firefox
   - Framework: Javascript
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Memory Leak in ECharts Example [echarts]

Posted by "CoderLeiShuo (via GitHub)" <gi...@apache.org>.
CoderLeiShuo commented on issue #20751:
URL: https://github.com/apache/echarts/issues/20751#issuecomment-2655732158

   是的。我用streamlit做的成绩分析系统,里面用了很多echarts的图表,刷新页面时,内存在不断上升。不知道如何解决?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Memory Leak in ECharts Example [echarts]

Posted by "CoderLeiShuo (via GitHub)" <gi...@apache.org>.
CoderLeiShuo commented on issue #20751:
URL: https://github.com/apache/echarts/issues/20751#issuecomment-2658232540

   您好!我看到邮件后会立即联系您!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Memory Leak in ECharts Example [echarts]

Posted by "nandafandi (via GitHub)" <gi...@apache.org>.
nandafandi commented on issue #20751:
URL: https://github.com/apache/echarts/issues/20751#issuecomment-2658404571

   > Minimal Reproduction is a static chart.
   
   Should I use this example:
   
   https://echarts.apache.org/examples/en/editor.html?c=dynamic-data2
   
   And edit from there?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] Memory Leak in ECharts Example [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20751:
URL: https://github.com/apache/echarts/issues/20751#issuecomment-2658232022

   Minimal Reproduction is a static chart.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org