This repository has been archived by the owner on Sep 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
EOFException on NCDump data #1342
Comments
Mikhail-Aoun
pushed a commit
to Mikhail-Aoun/thredds
that referenced
this issue
Oct 22, 2020
…ter we met a HeapObject.id equals to 0. Otherwise, we could be at the end of the file and a EOFException will be raised. Addresses the github issue Unidata#1342.
This was referenced Oct 22, 2020
lesserwhirls
added a commit
that referenced
this issue
Oct 23, 2020
…a_#1342 Fix for EOFException on NCDump data #1342
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
We've found an issue when trying to read data from some particular netcdf files. We met an EOFException in the ucar.nc2.iosp.hdf5.H5header$GlobalHeap instantiation algorithm.
The bug can be reproduced with ToolsUI latest maintenance release (Version 4.6.15) and this attached netcdf file as example :
SGA1-RO_-00-SRC_C_EUMT_20200704124757_G_O_20200704124200_20200704124459_O_N____.zip
When you open this file and try to NCDump tm_packets data, it will raise the following exception :
The data can be read with the netcdf-C or python library. If we regenerate the netcdf file with the netcdf-C library, the generated netcdfile (with exactly the same data) will work with the java library.
Analysis and correction :
The bug seems to be linked to the ucar.nc2.iosp.hdf5.H5header$GlobalHeap instantiation algorithm which doesn't handle correctly some particular file byte structures.
After debugging, we've managed to find a fix which work with our tests and ToolsUI. I will submit the associated Pull request.
This bug happens also with Tools UI latest stable release (Version 5.3.3). I will create the associated Issue and Pull request on the other repository (Unidata/netcdf-java).
The text was updated successfully, but these errors were encountered: