Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some images use too much memory when getting the thumbnail #226

Closed
manthey opened this issue Jun 17, 2024 · 4 comments · Fixed by #227 or #224
Closed

Some images use too much memory when getting the thumbnail #226

manthey opened this issue Jun 17, 2024 · 4 comments · Fixed by #227 or #224

Comments

@manthey
Copy link
Contributor

manthey commented Jun 17, 2024

For instance, TCGA-5P-A9KA-01Z-00-DX1.6F4914E0-AB5D-4D5F-8BF6-FB862AA63A87.svs has only one tiled layer that is 373 Gb. This ends up entirely in memory. We need a guard that if the number of pixels is greater than some large value we don't use the current technique to generate a thumbnail. For now, this should just gracefully fail and we should make an issue to come back to handle these cases.

As a reference, the large_image library works around this but this is very slow (since you still have to decode the entire image to generate a thumbnail).

@naglepuff
Copy link
Collaborator

I will try setting the limit to 1 gigapixel

@dgutman
Copy link

dgutman commented Jun 25, 2024 via email

@manthey
Copy link
Contributor Author

manthey commented Jun 25, 2024

@dgutman This code base is different than DSA; if you actually have any images that cause memory issues in DSA, can you file a bug there and share the image? In general, we should gracefully (if slowly) handle badly encoded images in the DSA.

@dgutman
Copy link

dgutman commented Jun 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants