Bug 2224167 - [abrt] python3-streamlink: read(): ffmpegmux.py:220:read:ValueError: read of closed file
Summary: [abrt] python3-streamlink: read(): ffmpegmux.py:220:read:ValueError: read of ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-streamlink
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mohamed El Morabity
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:167a1e8258a6e6b7e416288beee...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-20 05:12 UTC by han yang , cheng
Modified: 2023-07-20 05:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: environ (4.81 KB, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: mountinfo (3.74 KB, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: open_fds (567 bytes, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: backtrace (1.19 KB, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details
File: cpuinfo (2.85 KB, text/plain)
2023-07-20 05:12 UTC, han yang , cheng
no flags Details

Description han yang , cheng 2023-07-20 05:12:09 UTC
Description of problem:
Abort the stream then it crashed.

Version-Release number of selected component:
python3-streamlink-5.3.1-1.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.3.12-200.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/streamlink -a '--file-caching 9999 --network-caching 9999' --player-http https://www.youtube.com/watch?v=T3TP8LRNl7A best
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-03f185b0-8b6b-4601-b50b-ad6d7828962a.scope
uid:            1000
reason:         ffmpegmux.py:220:read:ValueError: read of closed file
executable:     /usr/bin/streamlink
type:           Python3
package:        python3-streamlink-5.3.1-1.fc38
runlevel:       N 5
exception_type: ValueError
crash_function: read
interpreter:    python3-3.11.4-1.fc38.x86_64
comment:        Abort the stream then it crashed.

Truncated backtrace:
ffmpegmux.py:220:read:ValueError: read of closed file

Traceback (most recent call last):
  File "/usr/bin/streamlink", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.11/site-packages/streamlink_cli/main.py", line 927, in main
    handle_url()
  File "/usr/lib/python3.11/site-packages/streamlink_cli/main.py", line 566, in handle_url
    handle_stream(plugin, streams, stream_name)
  File "/usr/lib/python3.11/site-packages/streamlink_cli/main.py", line 434, in handle_stream
    success = output_stream(stream, formatter)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/streamlink_cli/main.py", line 370, in output_stream
    stream_runner.run(prebuffer)
  File "/usr/lib/python3.11/site-packages/streamlink_cli/streamrunner.py", line 129, in run
    data = read(chunk_size)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/streamlink/stream/ffmpegmux.py", line 220, in read
    return self.process.stdout.read(size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: read of closed file

Local variables in innermost frame:
self: <streamlink.stream.ffmpegmux.FFMPEGMuxer object at 0x7f0e70a45510>
size: 8192

Comment 1 han yang , cheng 2023-07-20 05:12:12 UTC
Created attachment 1976642 [details]
File: os_info

Comment 2 han yang , cheng 2023-07-20 05:12:14 UTC
Created attachment 1976643 [details]
File: environ

Comment 3 han yang , cheng 2023-07-20 05:12:15 UTC
Created attachment 1976644 [details]
File: mountinfo

Comment 4 han yang , cheng 2023-07-20 05:12:16 UTC
Created attachment 1976645 [details]
File: open_fds

Comment 5 han yang , cheng 2023-07-20 05:12:17 UTC
Created attachment 1976646 [details]
File: namespaces

Comment 6 han yang , cheng 2023-07-20 05:12:19 UTC
Created attachment 1976647 [details]
File: backtrace

Comment 7 han yang , cheng 2023-07-20 05:12:20 UTC
Created attachment 1976648 [details]
File: cpuinfo


Note You need to log in before you can comment on or make changes to this bug.