Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)

Derek Magee D.R.Magee at leeds.ac.uk
Wed Aug 19 09:31:37 EDT 2020


Disclaimer: I'm nothing to do with openslide development

I had a quick look at this image and it doesn't seem formatted like a regular svs file . It only contains 2 images in the TIFF (presumably full resolution and thumbnail). It <sort of> reads ok in imagescope but is very blurred until you get to native resolution (which fits with absence of levels 4 and 16). If it was me I'd get this file rescanned.

Derek
________________________________
From: openslide-users <openslide-users-bounces+d.r.magee=leeds.ac.uk at lists.andrew.cmu.edu> on behalf of shawn <499646194 at 163.com>
Sent: 19 August 2020 03:49
To: openslide-users at lists.andrew.cmu.edu <openslide-users at lists.andrew.cmu.edu>
Subject: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each)


Context

Issue type** (bug report):
Operating system** (Windows 10):
Platform** (64-bit x86,):
OpenSlide Python version** (py3.6.10):
OpenSlide version** (openslide.__library_version__):
Slide format (SVS,):

Details:

  *   Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
C:\Users\sk\Desktop\python\openslide-python-master\examples\deepzoom\slide\ftv0fno1ontsv4ce2d1cpaj0_0.svs: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each).
TIFFReadDirectory: Failed to read directory at offset 858581370.
C:\Users\sk\Desktop\python\openslide-python-master\examples\deepzoom\slide\ftv0fno1ontsv4ce2d1cpaj0_0.svs: Failed to allocate memory for to read TIFF directory (0 elements of 12 bytes each).
TIFFReadDirectory: Failed to read directory at offset 858581370.
127.0.0.1 - - [18/Aug/2020 12:28:57] "�[37mGET /ftv0fno1ontsv4ce2d1cpaj0_0.svs HTTP/1.1�[0m" 200 -
127.0.0.1 - - [18/Aug/2020 12:28:57] "�[37mGET /ftv0fno1ontsv4ce2d1cpaj0_0.svs.dzi HTTP/1.1�[0m" 200 -
[2020-08-18 12:29:15,583] ERROR in app: Exception on /ftv0fno1ontsv4ce2d1cpaj0_0.svs_files/8/0_0.jpeg [GET]
Traceback (most recent call last):
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint<https://github.com/openslide/openslide-python/issues/**req.view_args>
File "deepzoom_multiserver.py", line 160, in tile
tile = slide.get_tile(level, (col, row))
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\openslide\deepzoom.py", line 150, in get_tile
tile = self.osr.read_region(*args)
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\openslide_init.py", line 223, in read_region
level, size[0], size[1])
File "C:\Users\sk\anaconda3\envs\pviewer\lib\site-packages\openslide\lowlevel.py", line 258, in read_region
buf = (w * h * c_uint32)()
MemoryError
  *   aperio open is ok[https://user-images.githubusercontent.com/37448773/90471766-9a90c180-e151-11ea-87ce-c6f1dfd12e7e.png]
  *   openslide open : TIFFReadDirectory: Failed to read directory at offset 858581370
  *   and Memory up to 90%[https://user-images.githubusercontent.com/37448773/90472280-b6489780-e152-11ea-8732-71c83ea03c61.png]
  *   fail to open .svs  file download url:      https://slice-telepathcloud.oss-cn-shanghai.aliyuncs.com/ybl2ossmove/202008/17/92_b5c63040533829f93b6b43f0a71b2486/ftv0fno1ontsv4ce2d1cpaj0_0.svs




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20200819/f26d605d/attachment-0001.html>


More information about the openslide-users mailing list