Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_Data_get_filenames reports errors in HDF5 threads #527

Open
sadielbartholomew opened this issue Dec 14, 2022 · 5 comments
Open

test_Data_get_filenames reports errors in HDF5 threads #527

sadielbartholomew opened this issue Dec 14, 2022 · 5 comments
Labels
testing Issues related to units tests and their coverage

Comments

@sadielbartholomew
Copy link
Member

Some CI jobs have produced output indicating errors in HDF5 threads when test_Data_get_filenamesruns: see report in #520 (comment) (with further detail in #520 (comment)). As deduced by @davidhassell in #520 (comment), this is probably not an issue with the cf-python code, rather HDF5 and netCDF-C, but I'm opening this Issue because I/we don't have time to look into it now and we should confirm it is indeed 'not our problem' (and find a way to prevent the errors showing up regardless).

@sadielbartholomew sadielbartholomew added the testing Issues related to units tests and their coverage label Dec 14, 2022
@davidhassell
Copy link
Collaborator

I wonder if #531 has fixed this?

@sadielbartholomew
Copy link
Member Author

Thanks for the heads up David, I'll look into it once I've tackled higher-priority work...

@sadielbartholomew
Copy link
Member Author

Still seeing this now with the current main branch. Specifically, running test_Field.py shows (highly repeatedly) the following across multiple test methods, including the initial one, test_Field__add__:

HDF5-DIAG: Error detected in HDF5 (1.14.0) thread 1:
  #000: H5A.c line 679 in H5Aopen_by_name(): unable to synchronously open attribute
    major: Attribute
    minor: Can't open object
  #001: H5A.c line 641 in H5A__open_by_name_api_common(): unable to open attribute: '_QuantizeBitRoundNumberOfSignificantBits'
    major: Attribute
    minor: Can't open object
  #002: H5A.c line 464 in H5A__open_common(): unable to open attribute: '_QuantizeBitRoundNumberOfSignificantBits'
    major: Attribute
    minor: Can't open object
  #003: H5VLcallback.c line 1138 in H5VL_attr_open(): attribute open failed
    major: Virtual Object Layer
    minor: Can't open object
  #004: H5VLcallback.c line 1105 in H5VL__attr_open(): attribute open failed
    major: Virtual Object Layer
    minor: Can't open object
  #005: H5VLnative_attr.c line 161 in H5VL__native_attr_open(): can't open attribute
    major: Attribute
    minor: Can't open object
  #006: H5Aint.c line 658 in H5A__open_by_name(): unable to load attribute info from object header
    major: Attribute
    minor: Unable to initialize object
  #007: H5Oattribute.c line 502 in H5O__attr_open_by_name(): can't locate attribute: '_QuantizeBitRoundNumberOfSignificantBits'
    major: Attribute
    minor: Object not found

@davidhassell
Copy link
Collaborator

Which version of netcdf4-python are you using?

@sadielbartholomew
Copy link
Member Author

I am using 1.6.3, specifically with:

$ conda list | grep netcdf
libnetcdf                 4.9.2           nompi_hf3f8848_103    conda-forge
netcdf-flattener          1.2.0              pyh9f0ad1d_0    conda-forge
netcdf-fortran            4.6.0           nompi_h3142581_105    conda-forge
netcdf4                   1.6.3           nompi_py38hd31e641_102    conda-forge

which appears to be the latest version having checked over on https://github.com/Unidata/netcdf4-python. What version are you using and are you seeing this kind of message crop up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issues related to units tests and their coverage
Projects
None yet
Development

No branches or pull requests

2 participants