Too many open files #255

Closed
opened 2024-08-02 20:29:23 +01:00 by kae · 1 comment
Owner

After playing 78 tracks:

Traceback (most recent call last):
  File "/home/kae/git/musicmuster/app/classes.py", line 108, in run
  File "/home/kae/git/musicmuster/app/classes.py", line 126, in __init__
  File "/home/kae/git/musicmuster/app/helpers.py", line 101, in get_audio_segment
    return AudioSegment.from_file(path, "flac")  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/audio_segment.py", line 728, in from_file
    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/utils.py", line 274, in mediainfo_json
    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1800, in _execute_child
    errpipe_read, errpipe_write = os.pipe()
                                  ^^^^^^^^^
OSError: [Errno 24] Too many open files

Stackprinter failed while formatting <FrameInfo /home/kae/git/musicmuster/app/classes.py, line 108, scope run>:
  File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/stackprinter/frame_formatting.py", line 225, in select_scope
    raise Exception("Picked an invalid source context: %s" % info)
Exception: Picked an invalid source context: [108], [91, 92, 93, 94, 95, 96, 97], dict_keys([91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102])

So here is your original traceback at least:

Traceback (most recent call last):
  File "/home/kae/git/musicmuster/app/classes.py", line 108, in run
  File "/home/kae/git/musicmuster/app/classes.py", line 126, in __init__
  File "/home/kae/git/musicmuster/app/helpers.py", line 101, in get_audio_segment
    return AudioSegment.from_file(path, "flac")  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/audio_segment.py", line 728, in from_file
    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/utils.py", line 274, in mediainfo_json
    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1800, in _execute_child
    errpipe_read, errpipe_write = os.pipe()
                                  ^^^^^^^^^
OSError: [Errno 24] Too many open files

After playing 78 tracks: ``` Traceback (most recent call last): File "/home/kae/git/musicmuster/app/classes.py", line 108, in run File "/home/kae/git/musicmuster/app/classes.py", line 126, in __init__ File "/home/kae/git/musicmuster/app/helpers.py", line 101, in get_audio_segment return AudioSegment.from_file(path, "flac") # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/audio_segment.py", line 728, in from_file info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/utils.py", line 274, in mediainfo_json res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1800, in _execute_child errpipe_read, errpipe_write = os.pipe() ^^^^^^^^^ OSError: [Errno 24] Too many open files Stackprinter failed while formatting <FrameInfo /home/kae/git/musicmuster/app/classes.py, line 108, scope run>: File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/stackprinter/frame_formatting.py", line 225, in select_scope raise Exception("Picked an invalid source context: %s" % info) Exception: Picked an invalid source context: [108], [91, 92, 93, 94, 95, 96, 97], dict_keys([91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102]) So here is your original traceback at least: Traceback (most recent call last): File "/home/kae/git/musicmuster/app/classes.py", line 108, in run File "/home/kae/git/musicmuster/app/classes.py", line 126, in __init__ File "/home/kae/git/musicmuster/app/helpers.py", line 101, in get_audio_segment return AudioSegment.from_file(path, "flac") # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/audio_segment.py", line 728, in from_file info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kae/.cache/pypoetry/virtualenvs/musicmuster-oWgGw1IG-py3.11/lib/python3.11/site-packages/pydub/utils.py", line 274, in mediainfo_json res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1800, in _execute_child errpipe_read, errpipe_write = os.pipe() ^^^^^^^^^ OSError: [Errno 24] Too many open files ```
kae added the
bug
label 2024-08-02 20:29:23 +01:00
Author
Owner

Fixed in 27012a9

Fixed in 27012a9
kae closed this issue 2024-08-04 17:24:18 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kae/musicmuster#255
No description provided.