-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
can't identify what's causing memory leak #188
Comments
There is a |
It still doesn't fix the huge leaks happening, I think it's from Cornerstone3D itself, not the tools. The leaks are usually huge like 400MB+ , and If I keep mounting and unmounting the component the leaks keep getting bigger and bigger until it crashes. |
it seems to me that ctVolume.load() is what causes the problem, whatever resources that allocates, don't seem to get cleaned up. Is there something like ctVolume.unload() that I can use? if not then how do I go about clearing this manually? |
Yes it seems like there is a leak. the load just start the loading, |
This might be related |
Hello,
I'm using cornerstone3D for a project I'm working on, and I have a viewer component that uses it, I'm trying to clear memory when I unmount the component, here's the unmount function I use:
However, even with this function running when the component is unmounted, there's massive memory leak. Is there something I'm missing? am I not clearing memory the right way? if there's a function I should call that I'm not, please point that out to me as I can't figure out what to do.
I'm using old cornerstone in other components, and the cornerstone.imageCache.purgeCache(); does the job there, I don't know why it's not doing it's job in cornerstone3D
The text was updated successfully, but these errors were encountered: