-
Notifications
You must be signed in to change notification settings - Fork 143
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
UnableToOpenBlob : Too many open files #963
Comments
Could you provide more verbose information for diagnosing? For example, the complete error message, and the result of This is very likely not an Images.jl issue. And, you can simply load an image file by using |
And yes, normally I can just load file with load(file) , but my filename contains unicode, so I tried to load files in this way. |
This might be a windows specific issue related to the filesystems. There's nothing we can help fix on the Images.jl side so I'm closing it. To help further diagnosing, you can try this even simpler example with only rst = []
for i in 1:1000
open(files[i]) do io
push!(rst, read(io, UInt8))
end
end If not, then it's perhaps an image io backend issue (in this case it's ImageMagick), you can try if A possible workaround to this very specific issue is to call map(enumerate(files)) do i, fn
i%100 == 0 && Base.Sys.iswindows() && GC.gc()
open(fn) do io
load(io)
end
end |
If it's really an ImageMagick issue, another possible solution is to call for a Julia wrapper for libjpeg-turbo so that we can pass jpeg files to libjpeg-turbo instead of imagemagick #960. |
See also: JuliaIO/ImageMagick.jl#145 The handle leak problem has been fixed in JuliaIO/ImageMagick.jl#144, but I have not checked the path encoding problem. So, perhaps we should cherry-pick JuliaIO/ImageMagick.jl@69206af first. |
What was the resolution here? I don't think the related ImageMagick prs were merged? I run into too many files opening while trying to train ImageNet with Flux on multiple GPUs. |
What kind of files are you loading? PNG or JPEG, or others? Maybe related to JuliaIO/FileIO.jl#352 |
After load() a number of images, Julia throw a Fatal error says 'Too many open files' and cannot load() any file at all
To represent the issue, try to load some images
in my case, this issue occurs at 510th images loaded
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: AMD Ryzen 7 5800X 8-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, generic)
The text was updated successfully, but these errors were encountered: