HDF5 Attribute errors
Created by: stevenwalton
When writing attributes using the HDF5 engine I am getting errors. I do not get these same errors when running with the other engines.
I believe that this error is happening at the close of the file. I cannot be too sure because I am not calling a proper close, but this error happens when my writer goes out of scope (and when the Close function would be called).
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 247 in H5Acreate2(): not a location
major: Invalid arguments to routine
minor: Inappropriate type
#001: ../../../src/H5Gloc.c line 173 in H5G_loc(): invalid file ID
major: Invalid arguments to routine
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 591 in H5Awrite(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5A.c line 1602 in H5Aclose(): not an attribute
major: Invalid arguments to routine
minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 0:
#000: ../../../src/H5F.c line 781 in H5Fclose(): invalid file identifier
major: Invalid arguments to routine
minor: Inappropriate type
If I understand the problem correctly it is from my attribute writes. Are these happening upon file closure? I am including an example of that below. It is not occurring during the BeginStep and EndStep process, which is where this code is defined.
m_IO.DefineAttribute<std::string>("adios2_schema/version_major",
std::to_string(ADIOS2_VERSION_MAJOR));
m_IO.DefineAttribute<std::string>("adios2_schema/version_minor",
std::to_string(ADIOS2_VERSION_MINOR));
m_IO.DefineAttribute<std::string>("/adios2_schema/mesh/type",
"explicit");
m_IO.DefineAttribute<std::int64_t>("adios2_schema/mesh/dimension0",
m_globalDims[0]);
m_IO.DefineAttribute<std::int64_t>("adios2_schema/mesh/dimension1",
m_globalDims[1]);
m_IO.DefineAttribute<std::int64_t>("adios2_schema/mesh/dimension2",
m_globalDims[2]);
m_IO.DefineAttribute<std::int64_t>("adios2_schema/mesh/dimension3",
m_globalDims[3]);
m_IO.DefineAttribute<std::int64_t>("adios2_schema/mesh/dimension-num",
m_globalDims.size());
I will try to make another simpler case that can replicate the results but I am getting this error when running my version of Ascent. https://github.com/stevenwalton/ascent I am running the clover leaf example in there. The ascent-actions.json file needs to be altered so that "transport" has the keyword "hdf5".