"H5Gget_objinfo(): can't get info for object" error when updating from 1.14.3 to 1.14.5
- Dominant language
- C
- Stars
- 988
- Forks
- 355
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Description
**Describe the bug**
A "H5Gget_objinfo(): can't get info for object" error is emitted when using the GDAL HDF5 driver with package mingw-w64-x86_64-hdf5-1.14.5-1, specifically on a file using the H5T_STD_U8BE datatype . Cf https://github.com/msys2/MINGW-packages/pull/22342#issuecomment-2449287466
**Expected behavior**
This error shouldn't be emitted. Things worked fine with mingw-w64-x86_64-hdf5-1.14.3-2
**Platform**
- HDF5 version: mingw-w64-x86_64-hdf5-1.14.5-1 (from https://github.com/msys2/MINGW-packages/pull/22342)
- OS and version: Windows 10
- Compiler and version: unsure what msys2 mingw uses
- Build system (e.g. CMake, Autotools) and version: CMake
- Any configure options you specified: cf https://github.com/mmuetzel/MINGW-packages/blob/ca81a25c69338697bab6d71376f4fb89c566e1b8/mingw-w64-hdf5/PKGBUILD
- MPI library and version (parallel HDF5): I don't know
**Additional context**
With file https://github.com/OSGeo/gdal/raw/refs/heads/master/autotest/gdrivers/data/hdf5/u8be.h5 and GDAL:
```
$ gdalmdiminfo u8be.h5
{
"type": "group",
"driver": "HDF5",
"name": "/"HDF5-DIAG: Error detected in HDF5 (1.14.5):
#000: C:/M/B/src/hdf5-1.14.5/src/H5Gdeprec.c line 971 in H5Gget_objinfo(): can't get info for object: 'TestArray'
major: Symbol table
minor: Can't get value
#001: C:/M/B/src/hdf5-1.14.5/src/H5VLcallback.c line 4648 in H5VL_group_optional(): unable to execute group optional callback
major: Virtual Object Layer
minor: Can't operate on object
#002: C:/M/B/src/hdf5-1.14.5/src/H5VLcallback.c line 4616 in H5VL__group_optional(): unable to execute group optional callback
major: Virtual Object Layer
minor: Can't operate on object
```
h5dump itself is happy:
```
HDF5 "u8be.h5" {
GROUP "/" {
DATASET "TestArray" {
DATATYPE H5T_STD_U8BE
DATASPACE SIMPLE { ( 6, 5 ) / ( 6, 5 ) }
DATA {
(0,0): 0, 1, 2, 3, 4,
(1,0): 1, 2, 3, 4, 5,
(2,0): 2, 3, 4, 5, 6,
(3,0): 3, 4, 5, 6, 7,
(4,0): 4, 5, 6, 7, 8,
(5,0): 5, 6, 7, 8, 9
}
}
}
}
```
but h5stat fails:
```
$ h5stat u8be.h5
Filename: u8be.h5
h5stat error: unable to traverse objects/links in file "u8be.h5"
```
There seems to be something Windows and/or msys2 specific, as this works fine on fedora:rawhide with hdf5==1.14.5-1.fc42
Contributor guide
Assessment
This issue has not been assessed yet.