Memory Leak With Setdataurl(Testcase Attached)

Recommended Posts



I'm writing an application which involves lot of dynamic adding/removing FusionChart objects. Apparently, invoking dispose() function does not help cleaning up memory in IE.


I managed to solve the problem by implementing additional clean up code after dispose() function call. However, the problem persisted until I replaced setDataURL() function call with code which modifies flashVars.dataURL property directly as a workaround.


Attached a testcase which demonstrates the above problem.


Steps to reproduce :


  1. Unzip the attached archive file to some web server - It's NOT reproducible when loaded from local file system.
  2. Load test.html with Sieve.
  3. Press 'Add Chart' button to load a MSColumn2D chart. Then press 'Remove' button to remove the chart. You can see both the client memory and node count does not drop to the initial point. Leaked OBJECT tag can be seen from 'Show In Use' window.
  4. Close and reload test.html with Sieve.
  5. This time, press 'Add Chart(with Workaround)' to load the same chart, with data xml specified by setting flashvars.dataURL instead of invoking setDataURL() function.
  6. Press 'Remove(Workaround)' button to call dispose() and perform additional clean up tasks. This time, memory and node count drops to the initial point and there's no leaked OBJECT tag listed in 'Show in Use' window.
  7. Repeat (4), (5) then press 'Remove' button to see the effect of the additional clean up code. Memory leak will occur, as it only invokes dispose() without any manual cleanup.


Hope this might be fixed soon. My application is mostly based on Ajax update so it does not do page refresh or URL change while displaying and disposing many FusionCharts objects. Currently, IE eats up all the memory pretty fast without such workaround.


Thanks in advance! :)


Share this post

Link to post
Share on other sites



Thanks for the mail.


Please note that we have released yet another version of FusionCharts XT, FusionCharts XT Service Release 3 on 13th of March, 2012.


It contains a number of bug fixes and improvements like:

>> Support for JavaScript Pie 3D and Doughnut 3D charts

>> Ability to control number formatting for Indian and East Asian thousand/lac separation formats

>> Support for recursive number scaling to display the chart data better


Also, a few improvements like:

>> Considerable reduction of memory leaks upon resize, data-update and dispose of charts

>> Text-selection (I-beam) cursor does not appear now when hovered over text

>> JavaScript Bubble charts now correctly clip all out-of-canvas data-points using the clipBubbles attribute

>> JavaScript Pie and Doughnut charts now support dashed plot borders


Enhancements in JavaScript Zoom Line chart which includes:

>>Pin Mode

>>Better management of x-axis data labels

>>Icons for Zoom-Out, Reset and Pin Mode


Read more : http://www.fusioncharts.com/products/suite/fusioncharts-xt/fusioncharts-version-history.html


Being a Service Release, the update in not available as an "Upgrade" from PUC. Existing customers need to re-download from PUC to update to this release.

The trial version of FusionCharts XT-SR3 is available at : http://www.fusioncharts.com/download


Could you please download the latest version and let us know if the memory leak issue had been considerably reduced?


Hope this helps. :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now