You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to convert a large number of files with beet convert -d <dest>, and eventually got an error:
error: convert: couldn't invoke 'ffmpeg -i <SOURCEFILE> -y -vn -acodec libopus -ab 96k <DESTFILE>': [Errno 24] Too many open files
So far I'm on my third invocation of beet convert (existing files get skipped, so it eventually completes). Looking at lsof, it seems that many hundreds of file handles are kept open in /tmp/beets/util_artresizer/, which can run up against default OS limits pretty easily.
I don't think the art resizer should need to keep file handles open, it could just keep the path to the file in case it is needed again.
Setup
OS: Ubuntu 22.04.4
Python version: 3.10.12
beets version: 2.2.0
Turning off plugins made problem go away (yes/no): n/a (problem affects a plugin)
Problem
I was trying to convert a large number of files with
beet convert -d <dest>
, and eventually got an error:So far I'm on my third invocation of
beet convert
(existing files get skipped, so it eventually completes). Looking atlsof
, it seems that many hundreds of file handles are kept open in/tmp/beets/util_artresizer/
, which can run up against default OS limits pretty easily.I don't think the art resizer should need to keep file handles open, it could just keep the path to the file in case it is needed again.
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: