Crash when running most games inside gamescope
I'm using the GE-Proton version of the AppImage (continuous build from commit 7ee1fce)
I'm trying to run a game inside gamescope with the following command:
env WINEPREFIX="/var/mnt/Games/ROMs/windows/wine" gamescope -f -- "../wine-staging_ge-proton.AppImage" "./Sonic and the Fallen Star.exe"
Which fails with the following messages in the console:
ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ATTENTION: default value of option vk_khr_present_wait overridden by environment. ../subprojects/vkroots/vkroots.h:16579: void vkroots::tables::CreateDispatchTable(PFN_vkGetInstanceProcAddr, PFN_GetPhysicalDeviceProcAddr, VkInstance): Assertion `res == VK_SUCCESS' failed. 0548:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception. gamescope: children shut down! gamescope: ../src/backend.cpp:60: virtual gamescope::CBaseBackendFb::~CBaseBackendFb(): Assertion `!HasLiveReferences()' failed. (EE) failed to read Wayland events: Broken pipe ./Sonic and the Fallen Star.sh: line 6: 42584 Aborted (core dumped) env WINEPREFIX="/var/mnt/Games/ROMs/windows/wine" gamescope -f -- "../wine-staging_ge-proton.AppImage" "./Sonic and the Fallen Star.exe"
This happens with most games I've tried, but not all (I haven't been able to identify a common factor). The same games work fine doing this with either system wine or bottles-cli, but trying to accomplish this with the Wine AppImage consistently leads to a crash.
Only issue I've had so far with these AppImages, so I hope it can eventually be resolved! More than happy to respond to questions or help with debugging.
EDIT: This issue seems absent in the base wine-staging AppImage, so it's probably exclusive to the GE-Proton one.
Thing is wine-ge-custom not updated anymore from GE since feb so it is missing lot of fixes.