beetbox / beetbox/audioread

Fingerprinting: Too Many Open Files

Open
#153 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
538
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Maybe this is not a standard use case, but if you run `fingerprint_file` for approximately 500 files in a row, you can end up with an OSError.

```
File "/usr/local/lib/python3.10/dist-packages/audioread/__init__.py", line 127, in audio_open
return BackendClass(path)
File "/usr/local/lib/python3.10/dist-packages/audioread/rawread.py", line 59, in __init__
self._fh = open(filename, 'rb')
OSError: [Errno 24] Too many open files: '/home/dlu/Music/PathOfAnMp3ThatMakesMeSeemHipAndCool.mp3'
```

Running on Ubuntu 22.04.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with fingerprint_file over approximately 500 files on Ubuntu 22.04, then trace how each file is opened through audioread. Done means the same sequential workload no longer raises OSError 24; the payload does not name a repository file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.