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

Playa crashes if a directory contains too many files. #11

Open
gavinlaking opened this issue Aug 11, 2014 · 0 comments
Open

Playa crashes if a directory contains too many files. #11

gavinlaking opened this issue Aug 11, 2014 · 0 comments

Comments

@gavinlaking
Copy link
Owner

Playa sequentially opens each file in the directory to extract the ID3 tag information for the track collection database. With large directories this causes Playa to fail with Errno::EMFILE Too many open files @ rb_sysopen.

Need to look into:

  • Not opening so many files, or closing them before we run out of filehandles.
  • Caching the list of files in a directory.
  • Caching their ID3 tags in a SQLite database maybe?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant