VTKHDF file unloading on Paraview 5.13 & 6.0

I am writing my own VTKHDF files. After a file is read into Paraview and later the display model is deleted from the display, I cannot write to the same VTKHDF file unit again until Paraview is completely shutdown. So, the running instance of Paraview is “holding on the HDF5 file pointer” or some similar operation.

The write error is:

HDF5-DIAG: Error detected in HDF5 (1.14.1-2) thread 0:
  #000: /.../src/H5F.c line 660 in H5Fcreate(): unable to synchronously create file
    major: File accessibility
    minor: Unable to create file
... SNIP ...

If I delete the file after unloading it from Paraview, I am able to again write the without any HDF5 issues.

Hello @Greg_Burgreen,

Indeed, that’s because the reader doesn’t close the vtkhdf file after we read it so the writer can’t override the file.

Could you please open an issue on VTK as it’s probably an issue in the vtkHDFReader : https://gitlab.kitware.com/vtk/vtk/-/issues ?

Thanks!