Help debugging for a new user


#1

We have written a data collector using HDF5 for the data storage. All of our unit tests pass and we can read the files created with the unit test. However, the actual application writes a tone of data to the file (as seen with the ls -l), but when we’re done, we get unable to open the file. Every utility we have tried gives an error trying to open the file: h5dump, h5ld, h5debug, h5clear.

Are there any other tools that we can use to figure out what is wrong with the file? From that we should be able to figure out what is wrong in our code.


#2

What’s the output of

od -N 6 -c your-file.h5

?

Should be something like

0000000 211   H   D   F  \r  \n
0000006

What about

strings your-file.h5

?

Should be something like

TREE
HEAP
mount_point
TREE
HEAP
SNOD
...

Can you tell us a little more about your environment, HDF5 version, unit tests, application?

G.