-
Notifications
You must be signed in to change notification settings - Fork 262
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
HDF error on reading back NC_VLEN variable with fill value and chunking #2212
Comments
Thank you Dennis! It does look potentially related to the mentioned known bug about NC_VLEN and fill values in #2179, although I am not sure what kind of failures were observed there (errors/crash, on reading/writing, etc). Another issue possibly related to the same NC_VLEN/FillValue problem is how the crash in #2181 persists even when the data was "zeroed out" if a fill value was used. But it is good to know that this looks like a bug, and we will keep monitoring it. |
My current hypothesis is that HDF5 is not doing a deep copy in some place |
It sounds a little bit similar to #1985 too... |
Hi Dennis! Just wanted to check - is this still an active issue? I know there were a bunch of NC_VLEN fixes in v4.9.0, but I think you mentioned above that this specific scenario might not be addressed... |
There has been no progress on this. |
Hi Dennis! Just checking in - any recent work on this? |
Hi, Sorry, just checking in again - are there any plans to possibly address this (admittedly low-frequency) issue in the future? |
No progress. And it is unlikely to get solved since I believe it is an HDF5 error. |
Thank you for a prompt response, @DennisHeimbigner ! I have reached out to The HDF Group about this issue in case it is something that can be addressed from their side. If needed, hopefully you would be able to help with narrowing down how to reproduce the issue with HDF5 code, outside of netCDF? I imagine here it would be especially relevant to know how exactly netCDF is using HDF5 functionality to store NC_VLEN data and to access it back. |
I tried to do that when I first encountered the error -- even debugging down into the HDF5 code, |
Thanks, Dennis! Ah, it's too bad that creating HDF5 stand alone code turned out not as straightforward as simply converting the above reproduction steps to calls to the underlying HDF5 APIs... We will see what The HDF Group says. |
Frankly, I hope that the HDF5 people can show that the problem is in netcdf-c, because then I can eventually find a fix. |
We are using netcdf-c 4.8.1 and seeing an HDF error when using nc_get_var on an NC_VLEN variable that has (1) a fill value set, (2) not all elements filled, and (3) some chunking applied.
Not sure if this is expected behavior and the applied chunking or some other part of the process is incorrect (but then shouldn't it error out on writing, not reading?). Or does this look like a bug?
Here is some simplistic reproduction code. Here I have an NC_VLEN (of NC_DOUBLEs) variable with one dimension of size 4, and I am only writing the first 2 elements of it. There is fill value (set as {0, 101}) and chunking (set to 1).
Here is the output (this was run on macOS 11.2.3, but we see the issue on other OS's too):
I see that ncdump also errors out on the produced file:
The text was updated successfully, but these errors were encountered: