protonscr

Steam crashes after starting Steam Remote Play with GPU acceleration enabled

steamopen StreamingDistro Family: ArchWeb Component
ValveSoftware/steam-for-linux#11466 · opened 2024-11-14 by Davidekiller1999 · updated 2024-11-26 · 4 comments · github
DDavidekiller1999 2024-11-14 github

Your system information

  • Steam client version: 1731433018
  • Distribution: Manjaro
  • Opted into Steam client beta?: no
  • Have you checked for system updates?: yes
  • GPU: Nvidia rtx 3070

Please describe your issue in as much detail as possible:

After activating hardware acceleration for Steam Remote Play, Steam crashes and restarts, thus preventing you from playing.
Hardware acceleration is essential in games that use Vulkan (Steam Play/Proton) for performance reasons. without hardware acceleration the streaming happens, however, the fps are very low (20-25).
I tried both with the previous nvidia drivers and with the recent ones. nothing helped.

I analyzed the logs and report what happens before the crash:
CLIENT: Got control packet k_EStreamControlSetCursor
CLIENT: Got control packet k_EStreamControlSetActivity
CLIENT: Got control packet k_EStreamControlSetCursorImage
CLIENT: Queued 114 ms, clearing audio stream
CLIENT: Got control packet k_EStreamControlControllerConfigMsg
CLIENT: Got control packet k_EStreamControlControllerConfigMsg
CLIENT: Got control packet k_EStreamControlControllerConfigMsg
CLIENT: Got control packet k_EStreamControlControllerConfigMsg
CLIENT: Got control packet k_EStreamControlControllerPersonalizationUpdate
CLIENT: Got control packet k_EStreamControlTouchConfigActive
CLIENT: Got control packet k_EStreamControlTouchConfigActive
CLIENT: Got control packet k_EStreamControlTouchActionSetActive
CLIENT: Got control packet k_EStreamControlControllerConfigMsg
Created encoder NVENC for codec 4
Video Encoder Changed
>>> Capture method set to Desktop OpenGL NV12 + NVENC H264
>>> Capture resolution set to 1920x1080
>>> Capture colorspace set to BT.601 limited range
NVENC - Submitting frame for encoding failed: 20
Encoder stage failed [type=2, codec=4]
CLIENT: Texture rect: 2400x1080 at 0,0
CLIENT: Video rect: 2400x1080 at 0,0
CLIENT: Warning: Couldn't find actionset 0 in config for app 769, defaulting to the first one
CLIENT: Got control packet k_EStreamControlSetTouchConfigData
CLIENT: Ignoring duplicate controller configuration for 769, revision 22
CLIENT: Got control packet k_EStreamControlSetTouchConfigData
>>> Client video decoder set to Android texture hardware decoding
CLIENT: Android texture hardware decoding
CLIENT: Got control packet k_EStreamControlStartVideoData
CLIENT: Got control packet k_EStreamControlVideoEncoderInfo
CLIENT: Got control packet k_EStreamControlSetCursorScale
CLIENT: Got control packet k_EStreamControlTouchConfigActive
Building new pipeline
Trying to create an encoder for streaming: [hardware_enabled=true][hardware_suppressed=false]
Failed encoders: 2/4
Created encoder VAAPI for codec 4
CGameStreamVideoStageVAAPI: Reinitializing 1920x1080 at 15000 Kbit/s and 60.00 FPS with quality 0
ffmpeg verbose: libva: VA-API version 1.22.0
ffmpeg verbose: libva: Trying to open /usr/lib32/dri/nvidia_drv_video.so
ffmpeg verbose: libva: Found init function __vaDriverInit_1_22
crash_20241114184219_39.dmp[14864]: Uploading dump (out-of-process)
/tmp/dumps/crash_20241114184219_39.dmp
/home/davide/.local/share/Steam/steam.sh: riga 906: 14309 Errore di segmentazione (core dump creato) "$STEAMROOT/$STEAMEXEPATH" "$@"

in the last line, it is written in Italian:
Segmentation fault (core dump created).

Steps for reproducing this issue:

  1. start streaming from a device with hardware acceleration enabled
  2. Steam crashes
  3. Steam restarts
NNocrex 2024-11-23 github

Do you have lib32-libva-vdpau-driver installed? That package is not maintained anymore and the regular one (libva-vdpau-driver) has already been removed from the repositories.
Try uninstalling that and if it works steam should fall back on x264 software encoding
Hardware accelerated streaming on nvidia seems to be broken currently (#10984 )

DDavidekiller1999 2024-11-23 github

Do you have lib32-libva-vdpau-driver installed? That package is not maintained anymore and the regular one (libva-vdpau-driver) has already been removed from the repositories. Try uninstalling that and if it works steam should fall back on x264 software encoding Hardware accelerated streaming on nvidia seems to be broken currently (#10984 )

this is the problem: hardware acceleration is necessary to have acceptable performance with an nvidia video card on linux. I already have the package, it doesn't work; Removing it doesn't solve the problem.

NNocrex 2024-11-23 github

Well for hardware encoding steam would need to use NVENC, but currently that is broken (see issue #10984)
The vdpau driver for vaapi is unmainained and causes many programs to crash, so you should uninstall it anyways

Ttnbp 2024-11-26 github

This is correct--VAAPI does not work for encoding with NVIDIA GPUs. elFarto's driver works, but it doesn't do encoding. The old driver is broken.

Nothing extracted yet.