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

Too many open files #136

Closed
milankl opened this issue Jan 13, 2021 · 2 comments
Closed

Too many open files #136

milankl opened this issue Jan 13, 2021 · 2 comments

Comments

@milankl
Copy link
Contributor

milankl commented Jan 13, 2021

Despite using NetCDF.jl v0.11 I just got this error

NetCDF error code 24:
	Too many open files

Stacktrace:
 [1] check at /home/kloewer/.julia/packages/NetCDF/2DiO1/src/netcdf_helpers.jl:22 [inlined]
 [2] nc_open(::String, ::UInt16, ::Array{Int32,1}) at /home/kloewer/.julia/packages/NetCDF/2DiO1/src/netcdf_c.jl:234
 [3] nc_open at /home/kloewer/.julia/packages/NetCDF/2DiO1/src/netcdf_helpers.jl:103 [inlined]
 [4] open(::String; mode::UInt16, readdimvar::Bool, add_finalizer::Bool) at /home/kloewer/.julia/packages/NetCDF/2DiO1/src/NetCDF.jl:911
 [5] open(::String) at /home/kloewer/.julia/packages/NetCDF/2DiO1/src/NetCDF.jl:911

while looping over several hundreds of those

ncfile = NetCDF.open(joinpath(path,"member$ie","ensemble.t.member$ie.step$s.ll.nc"))
t[ie,it] = ncfile.vars["t"][x0,y0,1]

How can there be too many open files when NetCDF.close is deprecated?

@visr
Copy link
Member

visr commented Jan 13, 2021

Too many open issues ;)
Duplicate of #135

@visr visr closed this as completed Jan 13, 2021
@milankl
Copy link
Contributor Author

milankl commented Jan 13, 2021

Weird, how did that happen =)

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

No branches or pull requests

2 participants