flathub / org.freedesktop.Platform.VulkanLayer.gamescope

https://flathub.org/apps/details/org.freedesktop.Platform.VulkanLayer.gamescope
16 stars 4 forks source link

Game does not open using most recent two versions of gamescope (flatpak). #146

Open watermelvin opened 6 months ago

watermelvin commented 6 months ago

This issue was copied from https://github.com/flathub/com.valvesoftware.Steam.Utility.gamescope/issues/152: Issue: Game doesn't launch (at least on openSUSE) while gamescope is enabled. Successfully able to launch without gamescope. Running in terminal outputs:

wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x55fd0c907420 (res 0x55fd0cc213c0)
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x55fd0c907780 (res 0x55fd0c8dcd60)
[Gamescope WSI] Creating Gamescope surface: xid: 0xa00034
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
[Gamescope WSI] Atom of T was wrong type. Expected XCB_ATOM_CARDINAL.
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x55fd0c907be0 (res 0x55fd0c8dd290)
[Gamescope WSI] Made gamescope surface for xid: 0xa00034
[Gamescope WSI] Surface state:
  steam app id:                  0
  window xid:                    0xa00034
  wayland surface res id:        5
  layer client flags:            0x0
  server hdr output enabled:     false
  hdr formats exposed to client: false
xwm: got the same buffer committed twice, ignoring.
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_R8G8B8A8_SRGB
info:    Color space:  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info:    Present mode: VK_PRESENT_MODE_MAILBOX_KHR (dynamic: no)
info:    Buffer size:  1024x720
info:    Image count:  4
info:    Exclusive FS: 1
[Gamescope WSI] Creating swapchain for xid: 0xa00034 - minImageCount: 4 - format: VK_FORMAT_R8G8B8A8_SRGB - colorspace: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - flip: true
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
[Gamescope WSI] Created swapchain for xid: 0xa00034 - imageCount: 4
warn:  DXGI: MakeWindowAssociation: Ignoring flags
xwm: Unhandled NET_WM_STATE property change: _KDE_NET_WM_STATE_SKIP_SWITCHER
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ
xwm: Unhandled NET_WM_STATE property change: _KDE_NET_WM_STATE_SKIP_SWITCHER
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_ABOVE
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_VERT
xwm: Unhandled NET_WM_STATE property change: _NET_WM_STATE_MAXIMIZED_HORZ
013c:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
013c:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
00f8:fixme:imm:ImeSetActiveContext himc 0000000000010026, flag 0 stub!
013c:fixme:uiautomation:msaa_fragment_get_FragmentRoot 0000000000BADFB8, 0000000001D9FAB0: stub!
013c:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
013c:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
013c:fixme:uiautomation:uia_element_GetCurrentPropertyValueEx Default property values currently unimplemented
013c:fixme:uiautomation:uia_element_GetCurrentPropertyValueEx Default property values currently unimplemented
013c:fixme:uiautomation:msaa_provider_GetPatternProvider Unimplemented patternId 10002
013c:fixme:uiautomation:nc_provider_GetPatternProvider 0000000000BAE150, 10002, 0000000001D9ECC0: stub
013c:fixme:uiautomation:base_hwnd_provider_GetPatternProvider 0000000000BAE0C0, 10002, 0000000001D9ECC0: stub
013c:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
013c:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
013c:fixme:uiautomation:msaa_fragment_get_FragmentRoot 0000000000BB0898, 0000000001D9FAB0: stub!
(EE) failed to read Wayland events: Broken pipe
X connection to :3 broken (explicit kill or server shutdown).
X connection to :3 broken (explicit kill or server shutdown).
X connection to :3 broken (explicit kill or server shutdown).
X connection to :3 broken (explicit kill or server shutdown).
gamemodeauto:

Visually, this looks like a black window (presumably gamescope) opening and immediately closing. I've verified to the best of my ability that this isn't from any stale wine servers or anything like that by making sure to close any processes called gamescope or containing wine in the name.

I initially attempted reverting to a previous build of gamescope:

flatpak update
 --commit=41c6815aa89df76d362e8ea641d1ed369ebce145092743c0b5e58bd61da6db56
 runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

but this still gave me the same error.

Reverting to the build before this:

flatpak update
 --commit=0b3543a920d07271426945f9ebde207de89232475d6f6ba8bf98ff7cb3f2590e
 runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

magically made it work.

zastrixarundell commented 4 months ago

That version work with prism and heroic, but can't make it launch on Steam