xtk/X

Too much dynamic memory usage leading to crash

mohanishgupta opened this issue · 1 comments

I edited XTK Lesson 13 to load a series of DICOM images from my local system (Windows 7). It is causing a lot of memory leaks, having increasing ramp like graph.

I have created a fiddle which reproduces the exact issue. Pardon me if I've coded it in a bad manner, I'm new to XTK and javascript. Please suggest what is/might be going wrong in this scenario.

Step to reproduce:

  1. Please open the above link in Chrome/Opera and use "Choose file" to select the folder having only DICOM images of a particular series.
  2. After successfully loading, just wait for some time without doing anything. You can check the increasing dynamic memory consumption through any memory profiler tool.

The following graph shows an example case of 1 image in a series (It is happening for any number of images though)
crash

Thanks,
Mohanish

While further digging up, I combined Lesson 13 and Lesson 15 and created a fiddle which does what I exactly want to achieve. And it is showing memory usage fluctuation like above in both Chrome and Firefox, but differently. Although, in chrome fluctuation is much higher than in firefox.