Open tzcrawford opened 3 years ago
I'm having the same issue, with an rx 580, and on plasma wayland and gamescope 3.8.4
Can you collect logs with WAYLAND_DEBUG=server
?
Can you collect logs with
WAYLAND_DEBUG=server
?
This is what happens when I run:
WAYLAND_DEBUG=server gamescope -w 640 -h 480 -W 640 -h 480 -- gedit 2>&1 | tee logfile.txt
There's a couple of gedit errors on the last couple of lines for whatever reason. linux 5.12.10, mesa 21.1.2, xorg-server 1.20.11
For completeness, here's a log from me running WAYLAND_DEBUG=server gamescope -- vkcube
logfile.txt
I'm having this issue as well.
██████████████████ ████████ ████@████
██████████████████ ████████ OS: Manjaro 21.1.0 Pahvo
██████████████████ ████████ Kernel: x86_64 Linux 5.10.52-1-MANJARO
██████████████████ ████████ Uptime: 20m
████████ ████████ Packages: 1682
████████ ████████ ████████ Shell: bash 5.1.8
████████ ████████ ████████ Resolution: 3120x1920
████████ ████████ ████████ DE: KDE 5.84.0 / Plasma 5.22.3
████████ ████████ ████████ WM: KWin
████████ ████████ ████████ GTK Theme: [GTK2/3]
████████ ████████ ████████ Icon Theme: breeze
████████ ████████ ████████ Disk: 1.3T / 3.8T (34%)
████████ ████████ ████████ CPU: Intel Core i7-4770K @ 8x 3.9GHz [43.0°C]
████████ ████████ ████████ GPU: Radeon RX 590 Series (POLARIS10, DRM 3.40.0, 5.10.52-1-MANJARO, LLVM 12.0.1)
RAM: 3407MiB / 11912MiB
Some notes:
stable
and git
versions of mesa packages, both failed.So, it could perhaps be an issue on Polaris based cards -- though I haven't had any issues with dxvk or other vulkan programs prior to trying gamescope.
Ah, digging into this more, I found that the CVulkanTexture::BInit
function was missing a error log in one of the failure conditions. Adding
diff --git a/src/rendervulkan.cpp b/src/rendervulkan.cpp
index 9fa26fc..586d6c9 100644
--- a/src/rendervulkan.cpp
+++ b/src/rendervulkan.cpp
@@ -508,6 +508,7 @@ bool CVulkanTexture::BInit( uint32_t width, uint32_t height, VkFormat format, cr
}
if (vkAllocateMemory(device, &allocInfo, nullptr, &m_vkImageMemory) != VK_SUCCESS) {
+ fprintf( stderr, "vkAllocateMemory failed\n" );
return false;
}
Let me see that allocating memory has failed. I might dig into this more on my system...
Edit:
The specific error code I'm receiving is VK_ERROR_INVALID_EXTERNAL_HANDLE
.
I think I'm having the same issue as well. Using an RX580 on EndeavorOS (Arch), Kernel 5.13.9, Mesa 21.1.6.1
vkAllocateMemory failed
gamescope: ../gamescope/src/steamcompmgr.cpp:599: bool import_commit(wlr_buffer*, wlr_dmabuf_attributes*, commit_t&): Assertion `commit.vulkanTex != 0' failed.
(EE) failed to write to XWayland fd: Broken pipe
X connection to :2 broken (explicit kill or server shutdown).
Crash log file attached.
I think I'm having the same issue, getting the same error as @ademlabs when I attempt to use gamescope. Arch Linux, Kernel 5.13.11-TkG CacULE, MESA 21.3.0-devel (git-dab97fe227), RX 5600XT. Should note both OpenGL and Vulkan applications work just fine even those running under DXVK.
I no longer have this issue since reinstallation.
My best guess is that somewhere I had leftover AMDGPU Pro vulkan driver libraries that were causing invalid vulkan calls. If you're someone who has installed any AMDGPU Pro libraries in the past (in my case, it was for OpenCL use), make sure that those drivers aren't installed, along with their additional modules and test again.
I have updated gamescope to the latest version and seems to work for me as well now, without a reinstall or touching any amdgpu pro drivers
I have updated gamescope to the latest version and seems to work for me as well now, without a reinstall or touching any amdgpu pro drivers
It wasn't working for me initially with regular updates but I uninstalled & re-installed some of the graphics packages and now it appears to be working... Not sure, but may have been related to vdpau/libva because I seem to remember some system update made me uninstall that at some point and I never reinstalled. Now if I uninstall vdpau/libva packages it still works. Not sure.
This is what my setup looks like at this point: (AMD RX 580 and Ryzen 7 2700X)
gamescope 3.8.4-1
linux-zen 5.13.10.zen1-1
vulkan-radeon 21.1.6-1
lib32-vulkan-radeon 21.1.6-1
mesa 21.1.6-1
lib32-mesa 21.1.6-1
xf86-video-amdgpu 21.0.0-1
libva-mesa-driver 21.1.6-1
lib32-libva-mesa-driver 21.1.6-1
mesa-vdpau 21.1.6-1
lib32-mesa-vdpau 21.1.6-1
xorg-server 1.20.13-2
Having the same issue (AMD RX480 and R5 3600) running glxgears:
gamescope: ../src/steamcompmgr.cpp:599: bool import_commit(wlr_buffer*, wlr_dmabuf_attributes*, commit_t&): Assertion `commit.vulkanTex != 0' failed.
I fixed this issue by uninstalling amdvlk and installing vulkan-radeon on arch linux.
ok yep, uninstalled amdvlk and it started working. Kinda odd that even when using the VK_ICD_FILENAMES to define radeon_icd instead of amd it would still crash. Really a shame because there's some things that either don't perform as well or won't work without amdvlk like AMF support in OBS for recording.
You can also install vulkan-radeon alongside amdvlk and run gamescope with the following by specifying which vulkan driver to use:
AMD_VULKAN_ICD=RADV gamescope glxgears
You can also install vulkan-radeon alongside amdvlk and run gamescope with the following by specifying which vulkan driver to use:
AMD_VULKAN_ICD=RADV gamescope glxgears
VK_ICD_FILENAMES does the same thing as AMD_VULKAN_ICD except you're defining the exact json files. Defining it to use RADV instead of AMDVLK still results in a crash with gamescope for me unless I completely remove AMDVLK.
I fixed this issue by uninstalling amdvlk and installing vulkan-radeon on arch linux.
This was my issue as well, except it was xf86-video-amdgpu
.
After some system update, gamescope immediately crashes after spawning, regardless of which game I am trying to run.
I have listed a log below of the stdout and stderr from during one of these crashes while launching a game/application. This in particular was produced with
gamescope -w 640 -h 480 -W 640 -h 480 -- gedit 2>&1 | tee logfile.txt
.I think this must be the important line?
A vulkan API problem??
This system is an Arch Linux install. Linux 5.12.1, mesa 21.1.0-1 I'm using only Xorg, not Wayland.