-
Notifications
You must be signed in to change notification settings - Fork 263
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
netCDF::exceptions::NcHdfErr after calling getVar too often #2241
Comments
Thanks, I'll take a look and see what's going on. What version of HDF5 are you working with? |
Thank you for your help. We are using HDF5 1.8.13 |
Shouldn't this be in the netcdf-cxx project? |
Hi @WardF @edwardhartnett is there any update on this issue? Thanks again Regards |
Update:
|
Hi everybody,
working here on an ns2 simulator, which is using netCDF 4.7.3 (tried also 4.8.1) / netcdf-cxx4-4.3.1, and we encounter a limitation on reading our HDF5 files. The database is called on every transmission. So the amount is quite large. After calling it around 570000 times during the run netCDF crashes with following exception:
terminate called after throwing an instance of 'netCDF::exceptions::NcHdfErr'
what(): NetCDF: HDF error
file: ncVar.cpp line:1537
Heres a small c++ example which can reproduce the behaviour. i tried different nc Files, getting the same result.
#include
#include <netcdf.h>
#include <ncFile.h>
#include <ncVar.h>
std::string path_;
netCDF::NcFile *netcdf_db;
netCDF::NcVar netcdf_LocMat;
netCDF::NcVar netcdf_ValueMat;
bool openNetCdfDb();
void closeNetCdfDb();
int main() {
}
bool openNetCdfDb() {
if (netcdf_db == NULL) {
}
void closeNetCdfDb() {
if (netcdf_db != NULL) {
delete netcdf_db;
netcdf_db = NULL;
std::cout << "closed" << std::endl;
}
}
The text was updated successfully, but these errors were encountered: