It looks like this is either a memory leak in libffmpeg or a memory leak in libva:
https://www.ffmpeg.org/doxygen/3.3/vaapi__decode_8c_source.html lines 100-112
I am also running into this issue, perhaps we could file a bug report with ffmpeg?
My only Nvidia card is in a windows machine so I am unable to test Nvidia drivers, but this crash does not occur while using intel drivers.
I'm hitting this issue on two Arch Linux systems.
Here is one of the leaks reported by valgrind (the backtrace is always the same):
7,421,240 (386,368 direct, 7,034,872 indirect) bytes in 6,037 blocks are definitely lost in loss record 3,154 of 3,156
at 0x483A595: calloc (vg_replace_malloc.c:760)
by 0x44102EBD: vlVaCreateBuffer (buffer.c:49)
by 0x584266C: vaCreateBuffer (va.c:1367)
by 0x4D39C5D: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4D3B13C: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4C1EE70: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4B9025D: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4B90E36: avcodec_send_packet (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x37C9B9: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x3801E4: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x3394D7: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x339555: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
I compiled ffmpeg 3.4.2 and everything works like a charm, no leaks, so it seems the issue has already been fixed upstream.
I wonder, is there a source code for the ffmpeg libraries shipped with Steam?
How would I do this on my system? Just install ffmpeg or overwrite the
libraries in steam?
On Tue, Sep 29, 2020, 1:16 PM Nikola Forró [email protected] wrote:
I'm hitting this issue on two Arch Linux systems.
Here is one of the leaks reported by valgrind (the backtrace is always the
same):7,421,240 (386,368 direct, 7,034,872 indirect) bytes in 6,037 blocks are definitely lost in loss record 3,154 of 3,156
at 0x483A595: calloc (vg_replace_malloc.c:760)
by 0x44102EBD: vlVaCreateBuffer (buffer.c:49)
by 0x584266C: vaCreateBuffer (va.c:1367)
by 0x4D39C5D: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4D3B13C: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4C1EE70: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4B9025D: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x4B90E36: avcodec_send_packet (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/libavcodec.so.57)
by 0x37C9B9: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x3801E4: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x3394D7: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)
by 0x339555: ??? (in /home/turbotraktor/.local/share/Steam/ubuntu12_32/streaming_client)I compiled ffmpeg 3.4.2 and everything works like a charm, no leaks, so it
seems the issue has already been fixed upstream.I wonder, is there a source code for the ffmpeg libraries shipped with
Steam?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/steam-for-linux/issues/6765#issuecomment-700857742,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH52BU46YKWE3CFXAUZLCITSIII7HANCNFSM4J2XQWWA
.
How would I do this on my system? Just install ffmpeg or overwrite the libraries in steam?
I cross-compiled ffmpeg 3.4.2 (you need 32-bit build, and you need version 3.X), installed it in /usr/lib32 and deleted the libraries shipped with Steam. But beware that Steam detects they are missing and puts them back on every launch.
Hmmm alright. A symlink might work or maybe running the native version
could work. Thank you! Sounds like steam needs to update its runtime ffmpeg
libraries.
On Tue, Sep 29, 2020, 1:41 PM Nikola Forró [email protected] wrote:
How would I do this on my system? Just install ffmpeg or overwrite the
libraries in steam?I cross-compiled ffmpeg 3.4.2 (you need 32-bit build, and you need version
3.X), installed it in /usr/lib32 and deleted the libraries shipped with
Steam. But beware that Steam detects they are missing and puts them back on
every launch.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/steam-for-linux/issues/6765#issuecomment-700872309,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH52BU64Y2X3QFFHVFOFAR3SIIL4NANCNFSM4J2XQWWA
.
So on my Fedora system (cause I blew up my Arch system sadly), I installed ffmpeg-libs from RPMFusion for both i686 and x86_64 and deleted libavcodec57.so from both steam ubuntu lib folders. Seems great so far using the native ffmpeg-libs. @kisak-valve Is it possible to request that Valve updates the ffmpeg-libs that are bundled to a newer version? This would easily fix the hardware decoding leak for users using AMD. Also noticed vaapi doesn't work on Wayland but that's a separate issue.
I am also having this problem. Seems like rpmfusion no longer has ffmpeg 3.x, only 4.x which no longer provides libavcodec.so.57, it has been updated to libavcodec.so.58.
A lot of packages now require 4.x so 3.x cannot be installed.
Your system information
Please describe your issue in as much detail as possible:
Everytime I play games using Remote Play Together as a client, the game crashes after 20 minutes or so. Steam says 'The streaming client exited unexpectedly (2)'. According to this guide from Valve I should be able to find a log at
/tmp/streaming_client.logbut I have never been able to see such a file. However I have found useful information at/tmp/dumps/<user>_stdout.log:At the beginning of the playing session/streaming I can find:
and everything works perfectly, I play for around 22 minutes (it is always about the same length) and then the screen goes to black and after some time the game crashes (sometimes I can still hear the music and control the character for a while). The host keeps working normally with one less player. The log says:
it keeps like this for a whiles till:
The host is also playing in Manjaro and we have seen this behavior in Wizard of Legend and Towerfall. Interestingly, when playing Towerfall 3 people: the host, a Manjaro client and a Windows client; only the linux one ended up crashing.
My specs:
CPU: AMD Ryzen 3600
GPU: AMD Radeon RX 5700
Manjaro linux up to date (14 Dec 2019)
Kernel: Linux 5.4
Mesa 19.2
Steps for reproducing this issue: