question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

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.

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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
wangtiechuancommented, Feb 9, 2022

image

0reactions
dereklukacscommented, Apr 12, 2022

I have also encountered this problem recently. The memory of the browser has been rising due to the ultrasonic multi frame data (200K, 100 frames). What is the solution?

更换为压缩率高一点的压缩算法,我原先用的91,现在是70,就暂时没出过问题了(不想翻译了,嘿嘿)

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory Leak on loadImage() · Issue #156 - GitHub
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....
Read more >
MYSTERY MEMORY LEAK: WHERE DID MY MEMORY GO?!
First, when looking in task manager and at the memory usage by processes to view memory usage, ensure you also look in the...
Read more >
Memory Leaks in iOS: Find, Diagnose, & Fix (2022) - YouTube
In this video we will cover memory leaks in iOS apps. We will first do an example to leak some memory and then...
Read more >
Detect All Memory Leaks With LeakCanary - Realm Academy
We've all been bitten by memory leaks that cause OutOfMemoryError crashes in our apps at some point, sometimes even in production.
Read more >
Leading Blog: A Leadership Blog - LeadershipNow.com
Gallo writes, “I've been in many situations where I thought, ... it's very hard for them to do the same amount of work...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found