Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Memory Leak in igDataChart (infragistics.dv.core.js version 13.2.20132.2157)
posted

Hi,

Using Chrome, we were able to see a large amount of DOM nodes being created and not released when using the igDataChart.

In our scenario, we are creating about 50 charts and then removing them. We noticed that each time we create 50 charts, we have a memory leak of about 10 MB. 

We tried using igDataChart("destroy"), but this did not resolve the issue.

Looking at Chrome's Canary HEAP SNAPSHOT, we were able to see an increase under jQuery.fn.init. Looking a bit closer, we noticed that the issue might be that infragistics.dv.core.js is creating a HTML button "ui-chart-opd-button" for a control we are not using. Not sure why this is being created. 

Help would be appreciated.

Parents
  • 15320
    Offline posted

    Hello stephanebi,

    Thank you for contacting our community.

    I've made a sample based on your scenario and tested it under Chrome using Chrome Profiler for analyzing memory leaks, following the steps provided in this article: http://addyosmani.com/blog/taming-the-unicorn-easing-javascript-memory-profiling-in-devtools/

    However it seems that after destroying all charts on the page, all objects allocated between the two actions (creating and destroying) have been released without memory leaks.

    For your reference I'm attaching you the sample that I've used to experiment with. Please test it on your side and let me know if you're able to reproduce the issue on it.

    Otherwise if this sample is not an accurate demonstration of what you're trying to do, please send me an isolated sample that demonstrates this behavior and I can test on my side.

    If you need further assistance, do not hesitate to contact me.

    Sincerely,

    Tsanna

    igDataChartMemoryLeak.zip
Reply Children