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

HDF5 already closed error when NetCDF forcing is used #481

Closed
mattw-nws opened this issue Nov 23, 2022 · 0 comments · Fixed by #485
Closed

HDF5 already closed error when NetCDF forcing is used #481

mattw-nws opened this issue Nov 23, 2022 · 0 comments · Fixed by #485
Assignees

Comments

@mattw-nws
Copy link
Contributor

The HDF5 error below occurs at the very end of every ngen execution when NetCDF lumped forcing is used. Looks like some kind of double-free error? Possibly a static variable destruction order problem like we with the Python interpreter recently? Does not seem to cause any larger issues at the moment but is concerning.

Current behavior

HDF5-DIAG: Error detected in HDF5 (1.12.2) thread 0:
  #000: H5D.c line 326 in H5Dclose(): can't decrement count on dataset ID
    major: Dataset
    minor: Unable to decrement reference count
  #001: H5Iint.c line 1074 in H5I_dec_app_ref_always_close(): can't decrement ID ref count
    major: Object atom
    minor: Unable to decrement reference count
  #002: H5Iint.c line 916 in H5I_remove(): can't remove ID node
    major: Object atom
    minor: Can't delete message
  #003: H5Iint.c line 865 in H5I__remove_common(): can't remove ID node from hash table
    major: Object atom
    minor: Can't delete message
  #004: H5Iint.c line 1018 in H5I_dec_app_ref(): can't decrement ID ref count
    major: Object atom
    minor: Unable to decrement reference count
  #005: H5Iint.c line 949 in H5I_dec_ref(): can't locate ID
    major: Object atom
    minor: Unable to find atom information (already closed?)
NetCDF: HDF error

Expected behavior

Error should not appear.

Steps to replicate behavior (include URLs)

  1. Run any simulation with ngen with NetCDF forcing (requires NETCDF_ACTIVE to be "on" for build). See example_bmi_multi_realization_config_w_netcdf.json for instance, which is expected to produce the above output.

Screenshots

@mattw-nws mattw-nws assigned mattw-nws and stcui007 and unassigned mattw-nws Nov 23, 2022
@mattw-nws mattw-nws linked a pull request Dec 21, 2022 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants