Hi guys, I've noticed the same issue. I've been using cornestone for years but with small images it's hard to detect thememory leak.
See original GitHub issueHi guys, I’ve noticed the same issue. I’ve been using cornestone for years but with small images it’s hard to detect thememory leak.
I ran into it a few days ago while playing with the official cornerstone multiframe example.
Instead using the data provided in the example (80kb, 2 frames), change url and use this one. It’s an anonymized cardiac angiogram (https://www.medicalconnections.co.uk/Sample-Images/)
As you can see, the memory increases (400mb) every time the frame changes.
It’s not cornerstone tool, the playClip tool simply calls loadImage
.
It’s not cornestone imagecache (you can set the cache to 0 manually with imageCache.setMaximumSizeBytes(0)
).
It seems that every time loadImage is called old typed arrays are still in memory and/or garbage collector is not able to clean the old arrays.
Any suggestion? Thanks!
_Originally posted by @daron1337 in https://github.com/cornerstonejs/cornerstoneWADOImageLoader/issues/156#issuecomment-794628050_
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top GitHub Comments
Google translate: Replace it with a compression algorithm with a higher compression rate. I used 91 before, but now it is 70, and there has been no problem for the time being (I don’t want to translate, hehe)