EnesYildirim / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

RuntimeError when opening dataset #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm getting a RuntimeError when trying to netCDF4.Datasaet(anything).

The kicker is that it does not fail every time and is nearly impossible to 
recreate outside of the application it is failing in.

The application makes heavy use of the multiprocessing module and many python 
processes are opening/reading/closing the same file with access controlled 
using locks.  It is quite possible that one of the locks is off, but I would 
expect a different exception if the problem was due to simultaneous file 
access.  I've also written testing scripts that open the same file dozens of 
times simultaneously and can not reproduce the problem.

Another interested fact is that once this exception is raised, all subsequent 
requests to netCDF4.Dataset(anything) inside of the same process raises an 
identical exception.

Traceback (most recent call last):
  nc = netCDF4.Dataset(ncfile)
  File "netCDF4.pyx", line 1375, in netCDF4.Dataset.__init__ (netCDF4.c:16538)\n', 'RuntimeError: NetCDF: Invalid argument

What version of the product are you using? On what operating system?
Linux x86_64, tested with 0.9.8 and 1.0.2

Out of my league here, any tips/pointers/ideas are welcome, thanks.

Original issue reported on code.google.com by wilcox.k...@gmail.com on 30 Nov 2012 at 9:17

GoogleCodeExporter commented 8 years ago
Sorry - but I can't help unless I can reproduce the problem.  

Original comment by whitaker.jeffrey@gmail.com on 13 Dec 2012 at 1:38

GoogleCodeExporter commented 8 years ago

Original comment by whitaker.jeffrey@gmail.com on 26 Feb 2014 at 2:04