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

Monitored collection fails under OSX with too many open files #519

Open
virtuald opened this issue Jun 25, 2018 · 1 comment
Open

Monitored collection fails under OSX with too many open files #519

virtuald opened this issue Jun 25, 2018 · 1 comment
Milestone

Comments

@virtuald
Copy link
Member

Steps to Reproduce (for bugs)

  1. Enable 'monitored' on a collection

Expected Behavior

Current Behavior

Lots of these:

00:36:09,572:ERROR   : Unhandled exception while walking dirs on <__gi__.GLocalFile object at 0x11784c280 (GLocalFile at 0x7fd7b98f12c0)>, None, None (xl.common)
Traceback (most recent call last):
  File "exaile/exaile/xl/common.py", line 600, in walk_directories
Error: g-io-error-quark: Error opening directory '/path/to/music': Too many open files (31)

Not quite clear why this is occurring since it never used to happen... at least, not with my custom built OSX environment. I tried disabling monitoring and everything works fine.

I took a look at lsof and the exaile process has a ton of handles open to the various directories in my collection. Just for giggles, I tried scanning a collection with monitoring disabled and that was fine too, so I'm guessing that monitoring takes a file handle for each directory on OSX?

Environment

  • Operating System and version: OSX 12, Gtk installed from homebrew
  • Versions: GStreamer: 1.14.1
    GTK+: 3.22.30
    Locale: en_US UTF-8
    Mutagen: 1.40.0
    PyGObject: 3.28.3
    Python: 2.7.15
@virtuald virtuald added this to the Someday milestone Jun 25, 2018
@genodeftest
Copy link
Member

Is it possible that we trigger something like inotify just by reading (accessing) the files and folders? This may be platform-dependent code in glib/gio.

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

2 participants