ublue-os / bazzite

Bazzite is a cloud native image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
4.12k stars 251 forks source link

AMD RX6700XT causes Gamescope crashes when attempting to launch games #1298

Open Xe opened 5 months ago

Xe commented 5 months ago

Describe the bug

Launching a game kills gamescope

What did you expect to happen?

The game to launch

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:testing
                   Digest: sha256:2c2ecb25275361e33a78037c0fe2159126375bd549569f4a6a7c9c47701d9afd
                  Version: 40.20240630.0 (2024-06-30T07:53:52Z)
          LayeredPackages: gettext joystick-support meson python3-distutils-extra
                           python3-matplotlib-gtk3 python3-scipy
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"' 

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:testing
                   Digest: sha256:2c2ecb25275361e33a78037c0fe2159126375bd549569f4a6a7c9c47701d9afd
                  Version: 40.20240630.0 (2024-06-30T07:53:52Z)
          LayeredPackages: gettext joystick-support meson python3-distutils-extra
                           python3-matplotlib-gtk3
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"'

Hardware

Home theatre PC with 32 GB ram, Ryzen 5 3600, and an AMD RX6700XT

Extra information or context

Stacktraces for gamescope and gldriverquery are attached gamescope.txt gldriverquery.txt

santoshganti commented 2 months ago

I have an RX7900XT and this happens on game launches too, actually this happens more often on any arch based distros as well. Key factor I noticed is if Steam Game Recording is enabled, gamescope crashes and recovers and this behavior intermittently happens.

Steam logs show "Driver Deadlock Detected" and hard crashes the session, also in the same logs inside Steam Folder I noticed some thread deadlock on Pipewire's end, Usually noticed when closing a game, entire sessions becomes unresponsive at times.

I can provide more logs if needed, not sure if this is a known bug, but consistently can reproduce

I have the following specs

OS: Bazzite 40 (FROM Fedora Kinoite) KERNEL: 6.9.12-205.fsync.fc40.x86_64 CPU: AMD Ryzen 9 5900X 12-Core GPU: AMD Radeon RX 7900 XT (radeonsi, navi31, LLVM 18.1.6, DRM 3.57, 6.9.12-205.fsync.fc40.x86_64) GPU DRIVER: 4.6 Mesa 24.1.7 RAM: 64 GB