mih icon indicating copy to clipboard operation
mih copied to clipboard

Error about HDF5

Open SikaStar opened this issue 7 years ago • 1 comments

Hi, when I run your demo to test data lsh_64_sift_1B.mat ,the errors are: Loading codes... HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5F.c line 586 in H5Fopen(): unable to open file major: File accessibilty minor: Unable to open file #001: H5Fint.c line 1384 in H5F_open(): unable to read superblock major: File accessibilty minor: Read failed #002: H5Fsuper.c line 530 in H5F__super_read(): truncated file: eof = 7541358080, sblock->base_addr = 512, stored_eof = 7939335155 major: File accessibilty minor: File has been truncated HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 284 in H5Dopen2(): not a location major: Invalid arguments to routine minor: Inappropriate type #001: H5Gloc.c line 251 in H5G_loc(): invalid object ID major: Invalid arguments to routine minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 373 in H5Dget_space(): not a dataset major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5S.c line 955 in H5Sget_simple_extent_dims(): not a dataspace major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5Shyper.c line 6889 in H5Sselect_hyperslab(): not a data space major: Invalid arguments to routine minor: Inappropriate type status -1 start0: 0, B: 8, N: 100000 HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5Dio.c line 138 in H5Dread(): not a dataset major: Invalid arguments to routine minor: Inappropriate type status -1 HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5S.c line 431 in H5Sclose(): not a dataspace major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 332 in H5Dclose(): not a dataset major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5F.c line 762 in H5Fclose(): not a file ID major: Invalid arguments to routine minor: Inappropriate type done. Loading queries... HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5F.c line 586 in H5Fopen(): unable to open file major: File accessibilty minor: Unable to open file #001: H5Fint.c line 1384 in H5F_open(): unable to read superblock major: File accessibilty minor: Read failed #002: H5Fsuper.c line 530 in H5F__super_read(): truncated file: eof = 7541358080, sblock->base_addr = 512, stored_eof = 7939335155 major: File accessibilty minor: File has been truncated HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 284 in H5Dopen2(): not a location major: Invalid arguments to routine minor: Inappropriate type #001: H5Gloc.c line 251 in H5G_loc(): invalid object ID major: Invalid arguments to routine minor: Bad value HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 373 in H5Dget_space(): not a dataset major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5S.c line 955 in H5Sget_simple_extent_dims(): not a dataspace major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5Shyper.c line 6889 in H5Sselect_hyperslab(): not a data space major: Invalid arguments to routine minor: Inappropriate type status -1 start0: 0, B: 8, N: 1000 HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5Dio.c line 138 in H5Dread(): not a dataset major: Invalid arguments to routine minor: Inappropriate type status -1 HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5S.c line 431 in H5Sclose(): not a dataspace major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5D.c line 332 in H5Dclose(): not a dataset major: Invalid arguments to routine minor: Inappropriate type HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 139870215686080: #000: H5F.c line 762 in H5Fclose(): not a file ID major: Invalid arguments to routine minor: Inappropriate type done. N = 1e+05 | NQ = 1000, range [0 1000) | B = 64 | K = 100 | m = 5 | R = 0 Populating 5 hashtables with 1e+05 entries... done. | cpu 0m0s | wall 0m0s query... done | cpu 0.001s | wall 0.001s | VM 0.0gb | RSS 0.0gb Writing results to file mih_64_1B.h5... Creating the file mih_64_1B.h5 Writing /refs/mih0.res with size [1000, 100] Writing /refs/mih0.nres with size [1000, 65] Writing /refs/mih0.stats with size [1000, 6] done. could you help me, thanks.

SikaStar avatar May 15 '18 03:05 SikaStar

I met the similar error when build the project:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_LIB
    linked by target "linscan" in directory /home/yangwenzhe/mih
    linked by target "mih" in directory /home/yangwenzhe/mih

how to set the hdf5 path? I have apt-get install libhdf5-dev.

ywz978020607 avatar May 07 '22 11:05 ywz978020607