Why does the "h5info" function stay busy without returning anything in MATLAB R2022a on Linux OS?

When I run my "h5info" function in MATLAB R2022a on Linux OS, it does not return anything and stays busy. There is neither an error message nor a crash.

 Accepted Answer

1. Try other HDF5 commands on this file. For example, please try opening one of the problematic files with the "H5F.open" function.
% open read-only >> fileID = H5F.open("XX.h1", "H5F_ACC_RDONLY", "H5P_DEFAULT") >> H5F.close(fileID) % open read-write >> fileID = H5F.open("XX.h1", "H5F_ACC_RDWR", "H5P_DEFAULT") >> H5F.close(fileID)
2. If "H5F.open" works fine, please try setting up a breakpoint in "h5info" and stepping through line by line to see exactly where the hang happens. The issue is likely to come from the file.
3. If "H5F.open" hangs too, please try the following code to avoid the hang issue.
>> faplID = H5P.create("H5P_FILE_ACCESS"); >> H5P.set_fapl_sec2(faplID); >> fileID = H5F.open("cas_2_h1_40187003_avg.h1", "H5F_ACC_RDONLY", faplID); >> H5F.close(fileID) 

More Answers (0)

Products

Release

R2022a

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!