-
Notifications
You must be signed in to change notification settings - Fork 49
Eventual error when converting svs to tiff #539
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
Comments
Hi @Tomaster134,
Windows has a limit of 1024 open files, perhaps you've somehow hit that? Restarting your python session should reset it. |
I've tried killing the terminal window, deleting and rebuilding the venv, and resetting my whole computer, all to no avail. Is there something else that I'm missing that would be worth trying? |
Oh dear :( Maybe the file is corrupt? Have you tried a known-good SVS? For example: https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1.svs |
I'd remove |
Hmm. I just ran it on the CMU-1.svs, and it didn't throw any errors, but it converted to grayscale? Also removed the |
What are you using to view the TIFF file? It'll need to be something like QuPath or vipsdisp that has a fancy OME-TIFF loader. |
Oops! I was being lazy and going off the thumbnail, it comes out perfectly in QuPath. I guess my .svs was just corrupted in some way? I'm curious as to why it didn't start throwing error messages until a few hours in, but oh well. It also doesn't seem to throw the error messages if I'm not using the |
I could have a look at the file if you have somewhere to upload it. |
I can definitely do that, but I'd have to remove identifying information from the slide label. Would it still be useful if it's been changed in that way? |
Sure, but you may not be able to anonymise it if the file has been truncated :( |
Uh oh!
There was an error while loading. Please reload this page.
Windows 10
Python 3.12.2
libvips 8.16 [all]
64gb RAM
Using John's method detailed here, I was successfully converting a 469MB .svs file into a .tiff format. I was fiddling with settings and continuously deleting and running the same snippet of code to see if I could get it to where I wanted it, when suddenly it started converting to grayscale, and then after a few more tries it started tossing out these errors. I haven't been able to determine what the cause is. Am I missing something obvious here?
Code
Error
The text was updated successfully, but these errors were encountered: