hdfview 2.11 locks SWMR files

Jan Kotanski jan.kotanski at desy.de
Fri Feb 16 09:04:17 UTC 2018


Dear HDFView Maintainers,

I've just accounted problems in reading SWMR files with hdfview 2.11 on debian stretch.

The hdfview 2.11 not only cannot read the SWMR files but it breaks them, i.e. set a lock inside the files,
and the files are no more readable.

For example I create a file 

    http://www.desy.de/~jkotan/swmr/swmr.h5

with:

    http://www.desy.de/~jkotan/swmr/writer2dattr.py

Normally, I can read it on stretch with:

    http://www.desy.de/~jkotan/swmr/reader2d.py


But after I run:

jkotan at stretch-jk:~/sources/lavue/nxstest$ hdfview swmr.h5

I get:

jkotan at stretch-jk:~/sources/lavue/nxstest$ python reader2d.py 
Traceback (most recent call last):
  File "reader2d.py", line 4, in <module>
    f = h5py.File("swmr.h5", 'r', libver='latest', swmr=True)
  File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 271, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 101, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/build/h5py-b1xqNM/h5py-2.7.0/h5py/_objects.c:2842)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/build/h5py-b1xqNM/h5py-2.7.0/h5py/_objects.c:2800)
  File "h5py/h5f.pyx", line 78, in h5py.h5f.open (/build/h5py-b1xqNM/h5py-2.7.0/h5py/h5f.c:2127)
IOError: Unable to open file (File is not already open for swmr writing)


Thus, the hdfview breaks the file and the SWMR file is not more readable.


Is it possible to provide backports for the hdfview package with the version which fix the above problem
   (hope the newer version, e.g. 3.0.0 fix this problem)?


Best regards,
Jan



More information about the debian-science-maintainers mailing list