Skip to content

How to handle ThreadPoolBuildError when calling cavif command #57

@Dzhami-Jame-ALI

Description

@Dzhami-Jame-ALI

Hi, I am using a multiprocess script to call cavif command (I am not using option --threads). I found that when I increase the process number, some errors appear like:

thread 'main' panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) }'
thread 'main' panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }) }'
...

Such error won't appear if I use single-process program or 2~3 multi-processes program.
I have tried both pre-built version and self cargo installed version. Is there a way to prevent this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions