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

How to handle ThreadPoolBuildError when calling cavif command #57

Open
Dzhami-Jame-ALI opened this issue Apr 22, 2022 · 1 comment
Open

Comments

@Dzhami-Jame-ALI
Copy link

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?

@kornelski
Copy link
Owner

@Szpadel can you help with this?

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