xtk / X

The X Toolkit
http://www.goXTK.com
Other
795 stars 266 forks source link

Too much dynamic memory usage leading to crash #182

Open mohanishgupta opened 9 years ago

mohanishgupta commented 9 years ago

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

mohanishgupta commented 9 years ago

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.