Open SkyLeite opened 1 year ago
Since it seems like the error happens in stream_handle_add_buffer
in pipewire.cpp:430
, this issue might be related to https://github.com/obsproject/obs-studio/issues/8170 which is (apparently) solved by https://github.com/obsproject/obs-studio/pull/8293 and https://github.com/emersion/xdg-desktop-portal-wlr/pull/258. Unfortunately I'm not knowledgeable in C++ or Pipewire's internals to submit a PR
Seems related to #775
I got a journal log showing the crash events with my testing.
@SkyLeite You may want to retry with the recently released xdg-desktop-portal-wlr 0.7.0. The issue of mine in OBS that you linked is resolved for me by that update.
@SkyLeite Can you try to start the gamescope with gamescope -H 1080 -W 1920 -e
command and limit the resolution to 1080p on the client side to see if it works?
From my own setup I see that trying to start a stream with a lower resolution (or aspect ratio) than what gamescope uses seems to crush it. Maybe the same thing is happening to you too.
New find here. Using the SteamDeck pipewire I still get the same result but maybe there is a clue in the gamescope output:
wlserver: Updating mode for xwayland server #1: 3840x2160@60
pipewire: format changed (size: 3840x2160, requested 0x0, format 23, stride 3840, size: 12441600, dmabuf: 0)
pipewire: stream state changed: streaming
pipewire: format changed (size: 3840x2160, requested 1920x1080, format 23, stride 3840, size: 12441600, dmabuf: 0)
vulkan: Unable to acquire screenshot texture. Out of textures.
gamescope: ../src/pipewire.cpp:477: void stream_handle_add_buffer(void*, pw_buffer*): Assertion `buffer->texture != nullptr' failed.
(EE) failed to read Wayland events: Broken pipe
(EE) failed to read Wayland events: Broken pipe
Seems that the vulkan texture is failing.
Steps to reproduce
gamescope -f -e -- /nix/store/b2rdnhppw9snx77mkywbyj3pfpywfq12-steam/bin/steam -tenfoot -steamos -fulldesktopres
Coredump
Notes
-e
)System Information
Attached: tmp.WBDY7bOJHJ.txt
Ps.: This is taken from Steam itself. Unfortunately Github wouldn't let me paste it directly, saying it's too long.
System Information summary
Computer Information: Manufacturer: Gigabyte Technology Co., Ltd. Model: B450 AORUS M Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 9 5900X 12-Core Processor CPU Family: 0x19 CPU Model: 0x21 CPU Stepping: 0x2 CPU Type: 0x0 Speed: 4950 Mhz 24 logical processors 12 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "NixOS 23.05 (Stoat)" (64 bit) Kernel Name: Linux Kernel Version: 6.2.7-zen1 X Server Vendor: The X.Org Foundation X Server Release: 12201008 X Window Manager: wlroots wm Steam Runtime Version: steam-runtime_0.20230118.0 Video Card: Driver: AMD AMD Radeon RX 7900 XTX (gfx1100, LLVM 15.0.7, DRM 3.49, 6.2.7-zen1) Driver Version: 4.6 (Compatibility Profile) Mesa 23.1.0-devel OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 239 Hz VendorID: 0x1002 DeviceID: 0x744c Revision Not Detected Number of Monitors: 3 Number of Logical Video Cards: 1 Primary Display Resolution: 5120 x 1440 Desktop Resolution: 5120 x 2520 Primary Display Size: 46.85" x 13.39" (48.70" diag) 119.0cm x 34.0cm (123.7cm diag) Primary VRAM: 24576 MB Sound card: Audio device: ATI R6xx HDMI Memory: RAM: 48103 MB VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 929810 MB Largest Free Hard Disk Block: 615670 MB Storage: Number of SSDs: 3 SSD sizes: 2000G,1000G,1000G Number of HDDs: 0Logs: