Bug 2224167

Summary: [abrt] python3-streamlink: read(): ffmpegmux.py:220:read:ValueError: read of closed file
Product: [Fedora] Fedora Reporter: han yang , cheng <cinxiafortis>
Component: python-streamlinkAssignee: Mohamed El Morabity <pikachu.2014>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: cinxiafortis, pikachu.2014
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/15cce0c6defa96eebf4fd5ab6ef022a62397422
Whiteboard: abrt_hash:167a1e8258a6e6b7e416288beeee2a119c633442;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:33:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

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

Comment 8 Aoife Moloney 2024-05-28 13:33:23 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.