Skip to content

UnableToOpenBlob : Too many open files #963

@omaryangtw

Description

@omaryangtw

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

files = readdir()
imgs = Any[]
for i in 1:1000
    io = open(files[i])
    push!(imgs, copy(load(io)))
    close(io)
end

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions