ValveSoftware / gamescope

SteamOS session compositing window manager
Other
2.99k stars 198 forks source link

`glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible` (on X11/NVIDIA) #708

Open CyberShadow opened 1 year ago

CyberShadow commented 1 year ago

This is on a Lenovo T580 with an NVIDIA MX150 (10de:1d10) running Linux 6.0 / nvidia 525.60.11 / Xorg 21.1.4 / mesa 22.2.3. Trying to start anything does not create any windows and prints errors to the terminal.

Output when running glxgears ```console $ gamescope -- glxgears No CAP_SYS_NICE, falling back to regular-priority compute and threads. Performance will be affected. wlserver: [backend/headless/backend.c:82] Creating headless backend vulkan: selecting physical device 'NVIDIA GeForce MX150': queue family 2 vulkan: physical device supports DRM format modifiers vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0) vulkan: supported DRM formats for sampling usage: vulkan: 0x34325241 vulkan: 0x34325258 wlserver: Running compositor on wayland display 'gamescope-0' wlserver: [backend/headless/backend.c:18] Starting headless backend wlserver: [xwayland/server.c:92] Starting Xwayland on :1 wlserver: [types/wlr_surface.c:748] New wlr_surface 0x55657d345510 (res 0x55657d346f50) wlserver: [xwayland/server.c:250] Xserver is ready pipewire: stream state changed: connecting pipewire: stream state changed: paused pipewire: stream available on node ID: 79 pipewire: renegotiating stream params (size: 1280x720) (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x46922) [0x5576f2abf922] (EE) 7: Xwayland (0x5576f2a79000+0xd1167) [0x5576f2b4a167] (EE) 8: Xwayland (0x5576f2a79000+0xd2dfc) [0x5576f2b4bdfc] (EE) 9: Xwayland (0x5576f2a79000+0xd38a5) [0x5576f2b4c8a5] (EE) 10: Xwayland (0x5576f2a79000+0xcc3fa) [0x5576f2b453fa] (EE) 11: Xwayland (0x5576f2a79000+0x1ada11) [0x5576f2c26a11] (EE) 12: Xwayland (0x5576f2a79000+0x9a900) [0x5576f2b13900] (EE) 13: Xwayland (0x5576f2a79000+0xa39d8) [0x5576f2b1c9d8] (EE) 14: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 15: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 16: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 17: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. wlserver: [types/wlr_surface.c:748] New wlr_surface 0x55657cf56420 (res 0x55657d34eb30) (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x46922) [0x5576f2abf922] (EE) 7: Xwayland (0x5576f2a79000+0x3a651) [0x5576f2ab3651] (EE) 8: Xwayland (0x5576f2a79000+0xa2f20) [0x5576f2b1bf20] (EE) 9: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 10: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 12: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. Error getting buffer (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x4729c) [0x5576f2ac029c] (EE) 7: Xwayland (0x5576f2a79000+0x16d660) [0x5576f2be6660] (EE) 8: Xwayland (0x5576f2a79000+0x16f35e) [0x5576f2be835e] (EE) 9: Xwayland (0x5576f2a79000+0xa39d8) [0x5576f2b1c9d8] (EE) 10: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 11: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 13: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x4729c) [0x5576f2ac029c] (EE) 7: Xwayland (0x5576f2a79000+0x16d660) [0x5576f2be6660] (EE) 8: Xwayland (0x5576f2a79000+0x16f35e) [0x5576f2be835e] (EE) 9: Xwayland (0x5576f2a79000+0xa39d8) [0x5576f2b1c9d8] (EE) 10: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 11: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 13: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x4729c) [0x5576f2ac029c] (EE) 7: Xwayland (0x5576f2a79000+0x16d660) [0x5576f2be6660] (EE) 8: Xwayland (0x5576f2a79000+0x16f35e) [0x5576f2be835e] (EE) 9: Xwayland (0x5576f2a79000+0xa39d8) [0x5576f2b1c9d8] (EE) 10: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 11: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 13: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5576f2a79000+0x164153) [0x5576f2bdd153] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11050b7) [0x7f7fed3050b7] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x1105233) [0x7f7fed305233] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x110541a) [0x7f7fed30541a] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.60.11 (0x7f7fec200000+0x11ebe1a) [0x7f7fed3ebe1a] (EE) 5: Xwayland (0x5576f2a79000+0x464d3) [0x5576f2abf4d3] (EE) 6: Xwayland (0x5576f2a79000+0x4729c) [0x5576f2ac029c] (EE) 7: Xwayland (0x5576f2a79000+0x16d660) [0x5576f2be6660] (EE) 8: Xwayland (0x5576f2a79000+0x16f35e) [0x5576f2be835e] (EE) 9: Xwayland (0x5576f2a79000+0xa39d8) [0x5576f2b1c9d8] (EE) 10: Xwayland (0x5576f2a79000+0x301fe) [0x5576f2aa91fe] (EE) 11: /usr/lib/libc.so.6 (0x7f7fefe51000+0x23290) [0x7f7fefe74290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7f7fefe7434a] (EE) 13: Xwayland (0x5576f2a79000+0x31a95) [0x5576f2aaaa95] (EE) XXX fail to create fbo. Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. ^Cgamescope: received kill signal, terminating! xwm: Lost connection to the X11 server 0 xwm: X11 I/O error ```
xorg.conf ``` Section "Files" ModulePath "/usr/lib/nvidia" ModulePath "/usr/lib32/nvidia" ModulePath "/usr/lib32/nvidia/xorg/modules" ModulePath "/usr/lib32/xorg/modules" ModulePath "/usr/lib64/nvidia/xorg/modules" ModulePath "/usr/lib64/nvidia/xorg" ModulePath "/usr/lib64/xorg/modules" EndSection Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:2:0:0" EndSection Section "Screen" Identifier "nvidia" Device "nvidia" # Option "AllowEmptyInitialConfiguration" "Yes" # Option "UseDisplayDevice" "none" EndSection Section "Device" Identifier "intel" Driver "modesetting" Option "AccelMethod" "none" EndSection Section "Screen" Identifier "intel" Device "intel" EndSection ```
Kernel parameters ```console $ cat /proc/cmdline root=/dev/mapper/laptop2019-lvol0 rw rootflags=subvol=@arch log_buf_len=1M consoleblank=120 cryptdevice=UUID=a21df6f8-f44a-40f7-80ab-680f796cec9a:cryptroot:allow-discards nvidia-drm.modeset=1 initrd=/intel-ucode.img initrd=/initramfs-linux.img ```

The workaround from #498 (running DRI_PRIME=1 MESA_VK_DEVICE_SELECT=10de:1d10 __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia gamescope -- glxgears) produces the same effect.

TimVosch commented 1 year ago

Hey, I am having the same issue unfortunately. Here are my specs and logs:

Dell XPS 15 (9520) CPU: 12th Gen Intel(R) Core(TM) i7-12700H iGPU: Intel Alder Lake-P Integrated Graphics Controller dGPU: Nvidia GA107M [GeForce RTX 3050 Ti Mobile]

I tried building gamescope from git and gamescope-plus from AUR, both result in the same issue. I also tried running Xorg instead of wayland, even with a dedicated X session for gamescope but no luck.

Running Arch Linux with SDDM, Wayland, KDE Plasma

pacman -Q | grep -iE '(nvidia|nouveau|xf86|gamescope|wayland|plasma)' ``` egl-wayland 2:1.1.11-2 gamescope 3.11.51-1 kdeplasma-addons 5.26.5-1 kwayland 5.102.0-1 kwayland-integration 5.26.5-1 lib32-libxxf86vm 1.1.5-1 lib32-nvidia-utils 525.78.01-1 lib32-wayland 1.21.0-1 libxxf86vm 1.1.5-1 nvidia 525.78.01-6 nvidia-prime 1.0-4 nvidia-settings 525.78.01-1 nvidia-utils 525.78.01-1 plasma-browser-integration 5.26.5-1 plasma-desktop 5.26.5-1 plasma-disks 5.26.5-1 plasma-firewall 5.26.5-1 plasma-framework 5.102.0-1 plasma-integration 5.26.5-1 plasma-nm 5.26.5-1 plasma-pa 5.26.5-1 plasma-sdk 5.26.5-1 plasma-systemmonitor 5.26.5-1 plasma-thunderbolt 5.26.5-1 plasma-vault 5.26.5-1 plasma-wayland-session 5.26.5-2 plasma-workspace 5.26.5-2 plasma-workspace-wallpapers 5.26.5-1 qt5-wayland 5.15.8+kde+r57-1 wayland 1.21.0-2 wayland-protocols 1.31-1 wayland-utils 1.1.0-1 xf86-input-libinput 1.2.1-1 xf86-video-vesa 2.6.0-1 xorg-xwayland 22.1.7-1 ```
`lsmod` output ``` Module Size Used by uinput 20480 0 uhid 20480 1 xt_MASQUERADE 20480 2 xt_mark 16384 6 ip6table_nat 16384 1 iptable_nat 16384 1 nf_nat 57344 3 ip6table_nat,iptable_nat,xt_MASQUERADE nf_conntrack 184320 2 nf_nat,xt_MASQUERADE nf_defrag_ipv6 24576 1 nf_conntrack nf_defrag_ipv4 16384 1 nf_conntrack libcrc32c 16384 2 nf_conntrack,nf_nat ip6table_filter 16384 1 ip6_tables 36864 2 ip6table_filter,ip6table_nat iptable_filter 16384 1 tun 61440 2 dm_mod 192512 0 rfcomm 90112 12 ccm 20480 6 hid_sensor_als 20480 0 hid_sensor_trigger 20480 2 hid_sensor_als industrialio_triggered_buffer 16384 1 hid_sensor_trigger kfifo_buf 16384 1 industrialio_triggered_buffer hid_sensor_iio_common 20480 2 hid_sensor_trigger,hid_sensor_als industrialio 110592 4 industrialio_triggered_buffer,hid_sensor_trigger,kfifo_buf,hid_sensor_als hid_sensor_custom 28672 0 joydev 28672 0 hid_sensor_hub 32768 4 hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_als,hid_sensor_custom mousedev 24576 0 cmac 16384 2 algif_hash 16384 1 algif_skcipher 16384 1 iTCO_wdt 16384 0 hid_multitouch 32768 0 af_alg 36864 6 algif_hash,algif_skcipher intel_pmc_bxt 16384 1 iTCO_wdt iTCO_vendor_support 16384 1 iTCO_wdt bnep 32768 2 intel_ishtp_hid 28672 0 mei_pxp 20480 0 mei_hdcp 24576 0 intel_rapl_msr 20480 0 dell_laptop 32768 0 intel_tcc_cooling 16384 0 x86_pkg_temp_thermal 20480 0 intel_powerclamp 20480 0 coretemp 20480 0 kvm_intel 393216 0 kvm 1146880 1 kvm_intel irqbypass 16384 1 kvm crct10dif_pclmul 16384 1 crc32_pclmul 16384 0 polyval_clmulni 16384 0 polyval_generic 16384 1 polyval_clmulni gf128mul 16384 1 polyval_generic ghash_clmulni_intel 16384 0 sha512_ssse3 53248 0 aesni_intel 393216 7 crypto_simd 16384 1 aesni_intel cryptd 24576 3 crypto_simd,ghash_clmulni_intel rapl 16384 0 intel_cstate 20480 0 intel_uncore 217088 0 pcspkr 16384 0 psmouse 212992 0 dell_wmi_sysman 57344 0 firmware_attributes_class 16384 1 dell_wmi_sysman dell_wmi 28672 1 dell_laptop dell_smbios 32768 2 dell_wmi,dell_laptop dcdbas 20480 1 dell_smbios dell_wmi_descriptor 20480 2 dell_wmi,dell_smbios wmi_bmof 16384 0 snd_hda_codec_hdmi 86016 1 snd_ctl_led 24576 0 snd_hda_codec_realtek 172032 1 snd_hda_codec_generic 98304 1 snd_hda_codec_realtek ledtrig_audio 16384 4 snd_ctl_led,snd_hda_codec_generic,dell_wmi,dell_laptop snd_sof_pci_intel_tgl 16384 0 snd_sof_intel_hda_common 221184 1 snd_sof_pci_intel_tgl soundwire_intel 57344 1 snd_sof_intel_hda_common soundwire_generic_allocation 16384 1 soundwire_intel soundwire_cadence 45056 1 soundwire_intel snd_sof_intel_hda 20480 1 snd_sof_intel_hda_common snd_sof_pci 24576 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl snd_sof_xtensa_dsp 20480 1 snd_sof_intel_hda_common snd_sof 339968 2 snd_sof_pci,snd_sof_intel_hda_common snd_sof_utils 20480 1 snd_sof snd_soc_hdac_hda 28672 1 snd_sof_intel_hda_common snd_hda_ext_core 36864 2 snd_sof_intel_hda_common,snd_soc_hdac_hda snd_soc_acpi_intel_match 69632 2 snd_sof_intel_hda_common,snd_sof_pci_intel_tgl snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common soundwire_bus 126976 3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence snd_soc_core 393216 4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda snd_compress 28672 1 snd_soc_core ac97_bus 16384 1 snd_soc_core snd_pcm_dmaengine 16384 1 snd_soc_core snd_hda_intel 61440 5 snd_intel_dspcfg 36864 3 snd_hda_intel,snd_sof,snd_sof_intel_hda_common snd_intel_sdw_acpi 20480 2 snd_sof_intel_hda_common,snd_intel_dspcfg iwlmvm 532480 0 snd_hda_codec 188416 6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda snd_hda_core 118784 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda mac80211 1314816 1 iwlmvm snd_hwdep 16384 1 snd_hda_codec snd_pcm 172032 12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine snd_timer 49152 1 snd_pcm spi_nor 118784 0 libarc4 16384 1 mac80211 mtd 94208 3 spi_nor snd 131072 21 snd_ctl_led,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm i2c_i801 45056 0 i2c_smbus 20480 1 i2c_i801 soundcore 16384 2 snd_ctl_led,snd uvcvideo 163840 0 mei_me 57344 2 iwlwifi 491520 1 iwlmvm mei 176128 5 mei_hdcp,mei_pxp,mei_me videobuf2_vmalloc 20480 1 uvcvideo intel_lpss_pci 28672 0 videobuf2_memops 20480 1 videobuf2_vmalloc intel_lpss 16384 1 intel_lpss_pci btusb 65536 0 videobuf2_v4l2 40960 1 uvcvideo idma64 20480 0 btrtl 28672 1 btusb videobuf2_common 86016 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops cfg80211 1126400 3 iwlmvm,iwlwifi,mac80211 btbcm 24576 1 btusb btintel 45056 1 btusb videodev 319488 3 videobuf2_v4l2,uvcvideo,videobuf2_common btmtk 16384 1 btusb mc 77824 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common bluetooth 937984 42 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm intel_ish_ipc 32768 0 ecdh_generic 16384 1 bluetooth i915 3477504 46 thunderbolt 401408 0 intel_ishtp 69632 2 intel_ishtp_hid,intel_ish_ipc drm_buddy 20480 1 i915 processor_thermal_device_pci 16384 0 ttm 94208 1 i915 processor_thermal_device 20480 1 processor_thermal_device_pci processor_thermal_rfim 16384 1 processor_thermal_device ucsi_acpi 16384 0 drm_display_helper 217088 1 i915 processor_thermal_mbox 16384 2 processor_thermal_rfim,processor_thermal_device typec_ucsi 53248 1 ucsi_acpi processor_thermal_rapl 20480 1 processor_thermal_device cec 81920 2 drm_display_helper,i915 typec 90112 1 typec_ucsi intel_rapl_common 32768 2 intel_rapl_msr,processor_thermal_rapl intel_gtt 28672 1 i915 igen6_edac 32768 0 roles 16384 1 typec_ucsi i2c_hid_acpi 16384 0 i2c_hid 40960 1 i2c_hid_acpi dptf_power 16384 0 int3403_thermal 20480 0 int340x_thermal_zone 20480 2 int3403_thermal,processor_thermal_device intel_hid 28672 0 int3400_thermal 20480 0 sparse_keymap 16384 2 intel_hid,dell_wmi acpi_thermal_rel 16384 1 int3400_thermal acpi_tad 20480 0 acpi_pad 24576 0 rfkill 32768 11 iwlmvm,bluetooth,dell_laptop,cfg80211 vfat 24576 1 fat 98304 1 vfat mac_hid 16384 0 crypto_user 24576 0 fuse 176128 3 bpf_preload 24576 0 ip_tables 36864 2 iptable_filter,iptable_nat x_tables 57344 8 ip6table_filter,iptable_filter,ip6table_nat,ip6_tables,ip_tables,iptable_nat,xt_MASQUERADE,xt_mark ext4 1024000 1 crc32c_generic 16384 0 crc16 16384 2 bluetooth,ext4 mbcache 16384 1 ext4 jbd2 188416 1 ext4 nvme 61440 3 nvme_core 208896 5 nvme nvme_common 24576 1 nvme_core rtsx_pci_sdmmc 32768 0 mmc_core 233472 1 rtsx_pci_sdmmc serio_raw 20480 0 atkbd 36864 0 libps2 20480 2 atkbd,psmouse crc32c_intel 24576 3 spi_intel_pci 16384 0 vivaldi_fmap 16384 1 atkbd xhci_pci 20480 0 rtsx_pci 114688 1 rtsx_pci_sdmmc vmd 24576 0 spi_intel 32768 1 spi_intel_pci xhci_pci_renesas 24576 1 xhci_pci i8042 49152 1 dell_laptop serio 28672 6 serio_raw,atkbd,psmouse,i8042 nvidia_drm 73728 2 nvidia_uvm 2908160 0 nvidia_modeset 1515520 1 nvidia_drm video 65536 4 dell_wmi,dell_laptop,i915,nvidia_modeset wmi 45056 6 dell_wmi_sysman,video,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor nvidia 61444096 125 nvidia_uvm,nvidia_modeset ```
Gamescope output (`gamescope -- glxgears`) Same for `DRI_PRIME=1 MESA_VK_DEVICE_SELECT=10de:25a0 __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia gamescope -- glxgears` ``` No CAP_SYS_NICE, falling back to regular-priority compute and threads. Performance will be affected. wlserver: [backend/headless/backend.c:68] Creating headless backend vulkan: selecting physical device 'NVIDIA GeForce RTX 3050 Ti Laptop GPU': queue family 2 vulkan: physical device supports DRM format modifiers vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0) vulkan: supported DRM formats for sampling usage: vulkan: 0x34325241 vulkan: 0x34325258 wlserver: Running compositor on wayland display 'gamescope-0' wlserver: [backend/headless/backend.c:16] Starting headless backend wlserver: [xwayland/server.c:108] Starting Xwayland on :1 wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x557c312ee550 (res 0x557c312f3790) wlserver: [xwayland/server.c:273] Xserver is ready pipewire: stream state changed: connecting pipewire: stream state changed: paused pipewire: stream available on node ID: 47 pipewire: renegotiating stream params (size: 1280x720) (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x46932) [0x5562a4cd9932] (EE) 7: Xwayland (0x5562a4c93000+0xd1177) [0x5562a4d64177] (EE) 8: Xwayland (0x5562a4c93000+0xd2e0c) [0x5562a4d65e0c] (EE) 9: Xwayland (0x5562a4c93000+0xd38b5) [0x5562a4d668b5] (EE) 10: Xwayland (0x5562a4c93000+0xcc40a) [0x5562a4d5f40a] (EE) 11: Xwayland (0x5562a4c93000+0x1adac1) [0x5562a4e40ac1] (EE) 12: Xwayland (0x5562a4c93000+0x9a910) [0x5562a4d2d910] (EE) 13: Xwayland (0x5562a4c93000+0xa39e8) [0x5562a4d369e8] (EE) 14: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 15: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 16: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 17: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x557c31192f80 (res 0x557c312f6620) (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x46932) [0x5562a4cd9932] (EE) 7: Xwayland (0x5562a4c93000+0x3a661) [0x5562a4ccd661] (EE) 8: Xwayland (0x5562a4c93000+0xa2f30) [0x5562a4d35f30] (EE) 9: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 10: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 12: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. Error getting buffer (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x472ac) [0x5562a4cda2ac] (EE) 7: Xwayland (0x5562a4c93000+0x16d6f0) [0x5562a4e006f0] (EE) 8: Xwayland (0x5562a4c93000+0x16f3ee) [0x5562a4e023ee] (EE) 9: Xwayland (0x5562a4c93000+0xa39e8) [0x5562a4d369e8] (EE) 10: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 11: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 13: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x472ac) [0x5562a4cda2ac] (EE) 7: Xwayland (0x5562a4c93000+0x16d6f0) [0x5562a4e006f0] (EE) 8: Xwayland (0x5562a4c93000+0x16f3ee) [0x5562a4e023ee] (EE) 9: Xwayland (0x5562a4c93000+0xa39e8) [0x5562a4d369e8] (EE) 10: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 11: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 13: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x472ac) [0x5562a4cda2ac] (EE) 7: Xwayland (0x5562a4c93000+0x16d6f0) [0x5562a4e006f0] (EE) 8: Xwayland (0x5562a4c93000+0x16f3ee) [0x5562a4e023ee] (EE) 9: Xwayland (0x5562a4c93000+0xa39e8) [0x5562a4d369e8] (EE) 10: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 11: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 13: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. and are incompatible (EE) (EE) Backtrace: (EE) 0: Xwayland (0x5562a4c93000+0x1641e3) [0x5562a4df71e3] (EE) 1: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x1106577) [0x7fe676f06577] (EE) 2: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11066f3) [0x7fe676f066f3] (EE) 3: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11068da) [0x7fe676f068da] (EE) 4: /usr/lib/libnvidia-eglcore.so.525.78.01 (0x7fe675e00000+0x11ed34a) [0x7fe676fed34a] (EE) 5: Xwayland (0x5562a4c93000+0x464e3) [0x5562a4cd94e3] (EE) 6: Xwayland (0x5562a4c93000+0x472ac) [0x5562a4cda2ac] (EE) 7: Xwayland (0x5562a4c93000+0x16d6f0) [0x5562a4e006f0] (EE) 8: Xwayland (0x5562a4c93000+0x16f3ee) [0x5562a4e023ee] (EE) 9: Xwayland (0x5562a4c93000+0xa39e8) [0x5562a4d369e8] (EE) 10: Xwayland (0x5562a4c93000+0x3020e) [0x5562a4cc320e] (EE) 11: /usr/lib/libc.so.6 (0x7fe67990f000+0x23290) [0x7fe679932290] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7fe67993234a] (EE) 13: Xwayland (0x5562a4c93000+0x31aa5) [0x5562a4cc4aa5] (EE) XXX fail to create fbo. Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. 3708 frames in 5.0 seconds = 741.561 FPS xwm: Lost connection to the X11 server 0 xwm: X11 I/O error gamescope: received kill signal, terminating! ``` _For the record; the last log lines are me Interrupting the process (CTLR+C)_
kernel cmdline ``` BOOT_IMAGE=/vmlinuz-linux ibt=off root=UUID=eee299a9-9d00-4f0c-b0fd-8a91ac339b01 rw loglevel=3 quiet nvidia-drm.modeset=1 sysrq_always_enabled=1 ```
Ramen-LadyHKG commented 1 year ago

Same issue, neither Lutris nor Bottles able to start RiotClient

Surface Book 2 (15") [ i7-8650u, 16GB, Nvidia GTX1060] OS: Fedora 37 Workstation (6.1.6-1.surface.fc37.x86_64) DE: KDE plasma 5.26.5 (Wayland) Nvidia Driver: 525.85.05 Lutris: lutris-0.5.12 (Fedora repo) Bottles: 50.2 (Flatpak) Runner: lutris-ge-lol-7.0.5

Bottles error log:

(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x55b8f73f5000+0x184042) [0x55b8f7579042]
(EE) 1: /usr/lib/x86_64-linux-gnu/GL/nvidia-525-85-05/lib/libnvidia-eglcore.so.525.85.05 (0x7f05b9800000+0x1107037) [0x7f05ba907037]
(EE) 2: /usr/lib/x86_64-linux-gnu/GL/nvidia-525-85-05/lib/libnvidia-eglcore.so.525.85.05 (0x7f05b9800000+0x11071b3) [0x7f05ba9071b3]
(EE) 3: /usr/lib/x86_64-linux-gnu/GL/nvidia-525-85-05/lib/libnvidia-eglcore.so.525.85.05 (0x7f05b9800000+0x110739a) [0x7f05ba90739a]
(EE) 4: /usr/lib/x86_64-linux-gnu/GL/nvidia-525-85-05/lib/libnvidia-eglcore.so.525.85.05 (0x7f05b9800000+0x11ede0a) [0x7f05ba9ede0a]
(EE) 5: Xwayland (0x55b8f73f5000+0x46e41) [0x55b8f743be41]
(EE) 6: Xwayland (0x55b8f73f5000+0x4793d) [0x55b8f743c93d]
(EE) 7: Xwayland (0x55b8f73f5000+0xa872e) [0x55b8f749d72e]
(EE) 8: Xwayland (0x55b8f73f5000+0xad894) [0x55b8f74a2894]
(EE) 9: Xwayland (0x55b8f73f5000+0xb1ac2) [0x55b8f74a6ac2]
(EE) 10: /usr/lib/x86_64-linux-gnu/libc.so.6 (0x7f05c0000000+0x2954a) [0x7f05c002954a]
(EE) 11: /usr/lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x8b) [0x7f05c002960b]
(EE) 12: Xwayland (0x55b8f73f5000+0x373c5) [0x55b8f742c3c5]
(EE) 
XXX fail to create fbo.

I ran bottles with environment variables

flatpak run --env=GBM_BACKENDS_PATH=/usr/lib/x86_64-linux-gnu/GL/nvidia-525-85-05/extra/gbm com.usebottles.bottles  
wolfhechel commented 1 year ago

After much tinkering I'm stuck with the same error. It fails to create a frame, but I can definitely hear audio (i.e. steam startup sound).

Here's my output, the error message repeats over and over.

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:68] Creating headless backend
vulkan: selecting physical device 'NVIDIA GeForce GTX 1050': queue family 2
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/server.c:108] Starting Xwayland on :1
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0xbdcde7c5930 (res 0xbdcde7bd6a0)
wlserver: [xwayland/server.c:273] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 32
pipewire: renegotiating stream params (size: 1280x720)
steam.sh[26283]: Running Steam on arch rolling 64-bit
steam.sh[26283]: STEAM_RUNTIME is enabled automatically
setup.sh[26359]: Steam runtime environment up-to-date!
steam.sh[26283]: Steam client's requirements are satisfied
[2023-01-27 16:40:33] Startup - updater built Dec 15 2022 21:26:49
[2023-01-27 16:40:33] Startup - Steam Client launched with: '/home/jonet/.local/share/Steam/ubuntu12_32/steam' '-gamepadui'
/tmp/dumps insufficient permissions - delete and recreate
Installing breakpad exception handler for appid(steam)/version(1671236931)
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE)
(EE) Backtrace:
(EE) 0: Xwayland (0x210a57b3000+0x1641e3) [0x210a59171e3]
(EE) 1: /usr/lib/libnvidia-eglcore.so.525.85.05 (0x61b7a7600000+0x1107037) [0x61b7a8707037]
(EE) 2: /usr/lib/libnvidia-eglcore.so.525.85.05 (0x61b7a7600000+0x11071b3) [0x61b7a87071b3]
(EE) 3: /usr/lib/libnvidia-eglcore.so.525.85.05 (0x61b7a7600000+0x110739a) [0x61b7a870739a]
(EE) 4: /usr/lib/libnvidia-eglcore.so.525.85.05 (0x61b7a7600000+0x11ede0a) [0x61b7a87ede0a]
(EE) 5: Xwayland (0x210a57b3000+0x464e3) [0x210a57f94e3]
(EE) 6: Xwayland (0x210a57b3000+0x472ac) [0x210a57fa2ac]
(EE) 7: Xwayland (0x210a57b3000+0x16d6f0) [0x210a59206f0]
(EE) 8: Xwayland (0x210a57b3000+0x16f3ee) [0x210a59223ee]
(EE) 9: Xwayland (0x210a57b3000+0xa39e8) [0x210a58569e8]
(EE) 10: Xwayland (0x210a57b3000+0x3020e) [0x210a57e320e]
(EE) 11: /usr/lib/libc.so.6 (0x61b7add92000+0x23290) [0x61b7addb5290]
(EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x61b7addb534a]
(EE) 13: Xwayland (0x210a57b3000+0x31aa5) [0x210a57e4aa5]
(EE)
XXX fail to create fbo.

Gamescope is started with DRI_PRIME=1 MESA_VK_DEVICE_SELECT=8086:1901 __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_ONLY __GLX_VENDOR_LIBRARY_NAME=nvidia gamescope -f -w 1920 -h 1080 -r 60 -e --steam -gamepadui

I've also tried to disable GLAMOR by doing appending XWAYLAND_NO_GLAMOR=1 which of course removes the error, but instead my steam client doesn't even make a sound. I can see it load in the system tray, but subsequently i have terminate the process (-9) to be able to close it. Output from XWAYLAND_NO_GLAMOR=1:

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:68] Creating headless backend
vulkan: selecting physical device 'NVIDIA GeForce GTX 1050': queue family 2
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/server.c:108] Starting Xwayland on :1
Disabling glamor and dri3 support, XWAYLAND_NO_GLAMOR is set
Failed to initialize glamor, falling back to sw
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x5bb2f8e2ff0 (res 0x5bb2f8dad60)
wlserver: [xwayland/server.c:273] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 32
pipewire: renegotiating stream params (size: 1280x720)
steam.sh[226421]: Running Steam on arch rolling 64-bit
steam.sh[226421]: STEAM_RUNTIME is enabled automatically
setup.sh[226497]: Steam runtime environment up-to-date!
steam.sh[226421]: Steam client's requirements are satisfied
[2023-01-28 11:04:49] Startup - updater built Dec 15 2022 21:26:49
[2023-01-28 11:04:49] Startup - updater built Dec 15 2022 21:26:49
[2023-01-28 11:04:49] Startup - Steam Client launched with: '/home/x/.local/share/Steam/ubuntu12_32/steam' '-gamepadui'
/tmp/dumps insufficient permissions - delete and recreate
Installing breakpad exception handler for appid(steam)/version(1674790765)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-01-28 11:04:49] Loading cached metrics from disk (/home/x/.local/share/Steam/package/steam_client_metrics.bin)
[2023-01-28 11:04:49] Using the following download hosts for Public, Realm steamglobal
[2023-01-28 11:04:49] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-01-28 11:04:49] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-01-28 11:04:49] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1674790765)
[2023-01-28 11:04:49] Checking for update on startup
[2023-01-28 11:04:49] Checking for available updates...
[2023-01-28 11:04:49] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2023-01-28 11:04:49] Manifest download: send request
Installing breakpad exception handler for appid(steam)/version(1674790765)
[2023-01-28 11:04:50] Manifest download: waiting for download to finish
[2023-01-28 11:04:50] Manifest download: finished
[2023-01-28 11:04:50] Download skipped: /steam_client_ubuntu12 version 1674790765, installed version 1674790765, existing pending version 0
[2023-01-28 11:04:50] Nothing to do
[2023-01-28 11:04:50] Verifying installation...
[2023-01-28 11:04:50] Performing checksum verification of executable files
wlserver: [types/wlr_compositor.c:673] New wlr_surface 0x5bb2f8b1ce0 (res 0x5bb2f8df020)
[2023-01-28 11:04:52] Verification complete
Loaded SDL version 2.27.0-p7692409
XRRGetOutputInfo Workaround: initialized with override: 1 real: 0xea0f5db0
XRRGetCrtcInfo Workaround: initialized with override: 1 real: 0xea0f4500
ComputeStartupMode: forcing gamepadui via clisteamwebhelper.sh[226919]: Runtime for steamwebhelper: defaulting to /home/x/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[226919]: kernel.unprivileged_userns_clone=0, disabling sandbox
Installing breakpad exception handler for appid(steam)/version(1674790765)
steamwebhelper.sh[226919]: CEF sandbox already disabled
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
CAppInfoCacheReadFromDiskThread took 155 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Xlib: sequence lost (0x10000 > 0x5a) in reply type 0xc!

(steam:226650): Gtk-WARNING **: 11:04:54.397: gtk_disable_setlocale() must be called before gtk_init()
Installing breakpad exception handler for appid(steam)/version(1674790765)
local (potentially out of sync) copy of roaming config loaded - 43985 bytes.
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
roaming config store loaded successfully - 43985 bytes.
migrating temporary roaming config store
BRefreshApplicationsInLibrary 1: 3ms
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Failed to init SteamVR because it isn't installed
CDesktopCapturePipeWire: Opening DRM render node /dev/dri/renderD128
CDesktopCapturePipeWire: setting stream node ID: 32
ExecCommandLine: "'/home/x/.local/share/Steam/ubuntu12_32/steam' '-gamepadui'"
System startup time: 17.17 seconds
Xlib: sequence lost (0x10000 > 0x6a1) in reply type 0xc!
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
Installing breakpad exception handler for appid(steam)/version(1674790765)
^Cgamescope: received kill signal, terminating!
Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
^Cgamescope: received kill signal, terminating!
wolfhechel commented 1 year ago

Here's a bit more detail to the issue, recompiled Xwayland with libunwind and added debugging to GLAMOR.

vulkan: selecting physical device 'NVIDIA GeForce GTX 1050': queue family 2
vulkan: physical device supports DRM format modifiers
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x3231564E (VkResult: 0)
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x48344241 (VkResult: 0)
vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/server.c:108] Starting Xwayland on :1
Sync Extension 3.1
VidModeAddExtension
      glamor_poly_fill_rect_bail:   to 0xc6c6e53a940 (m)
[dix] Could not init font path element /usr/share/fonts/misc, removing from list!
[dix] Could not init font path element /usr/share/fonts/TTF, removing from list!
[dix] Could not init font path element /usr/share/fonts/OTF, removing from list!
[dix] Could not init font path element /usr/share/fonts/Type1, removing from list!
[dix] Could not init font path element /usr/share/fonts/100dpi, removing from list!
[dix] Could not init font path element /usr/share/fonts/75dpi, removing from list!
      glamor_poly_fill_rect_bail:   to 0xc6c6e5db5c0 (m)
      glamor_poly_fill_rect_bail:   to 0xc6c6e5430b0 (m)
Popen: `"/usr/bin/xkbcomp" -w 1 "-R/usr/share/X11/xkb" -xkm "-" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "/tmp/server-1.xkm"', fp = 0xc6c6e5de710
Pclose: fp = 0xc6c6e5de710
Loaded XKB keymap /tmp/server-1.xkm, defined=0x7f
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x94a5ebda890 (res 0x94a5ebdfd70)
client(0): Reserved pid(651221).
client(0): Reserved cmdname(Xwayland) and cmdargs(:1 -rootless -core -terminate -listenfd 50 -listenfd 51 -displayfd 55 -noTouchPointerEmulation).
wlserver: [xwayland/server.c:273] Xserver is ready
client(200000): Reserved pid(651212).
client(200000): Reserved cmdname(gamescope) and cmdargs(--xwayland-count 1 --disable-layers --prefer-vk-device 10de:1c8d-f -w 1920 -h 1080 -r 60 -O DP-1 --generate-drm-mode fixed -e -- vkcube).
AllocNewConnection: client index = 1, socket fd = 6
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 32
XF86VidModeLockModeSwitch
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE) 
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 0: /usr/lib/libnvidia-eglcore.so.525.85.05 (?+0x0) [0x620962b07037]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 1: /usr/lib/libnvidia-eglcore.so.525.85.05 (?+0x0) [0x620962b071b3]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /usr/lib/libnvidia-eglcore.so.525.85.05 (?+0x0) [0x620962b0739a]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 3: /usr/lib/libnvidia-eglcore.so.525.85.05 (?+0x0) [0x620962bede0a]
(EE) 4: Xwayland (xwl_glamor_gbm_create_pixmap_for_bo+0x1d3) [0xc6c5a672613]
(EE) 5: Xwayland (xwl_glamor_gbm_create_pixmap+0x152) [0xc6c5a672a62]
(EE) 6: Xwayland (ProcCreatePixmap+0x12e) [0xc6c5a6c75ee]
(EE) 7: Xwayland (Dispatch+0xce8) [0xc6c5a6cfcc8]
(EE) 8: Xwayland (main+0x182e) [0xc6c5a65c23e]
(EE) 9: /usr/lib/libc.so.6 (__libc_init_first+0x90) [0x620968161290]
(EE) 10: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x62096816134a]
(EE) 11: Xwayland (_start+0x25) [0xc6c5a65da85]
(EE) 
         glamor_pixmap_ensure_fb:   glamor: Failed to create fbo, incomplete attachment
XXX fail to create fbo.
wolfhechel commented 1 year ago

The call triggering the backtrace is glEGLImageTargetTexture2DOES within the function xwl_glamor_gbm_create_pixmap_for_bo in xwayland-glamor-gbm.c

That's as far as I go with my very limited (read zero) experience with dmabuf stuff.

Samsagax commented 1 year ago

Seems like a bug on libnvidia-eglcore.so Should report to Nvidia people.

wolfhechel commented 1 year ago

It sounds plausible. The only other reference I find to a similar error is from a developer of nvidia-vaapi-driver posting about a similar vague issue here, which really only clarifies that there are in fact unspecified limitations in the nvidia implementation.

Are there any other flags I would be able to use in order to get some more info out of this that I could include in the bugreport?

Invalid operation is very vague and only tells me that the GL was unable to specify a texture object based of the , not so much as to why. It's also unclear to me if this is a specific edge-case in gamescope or not.

I won't be able to investigate more on this for a few days, but one thing I would like to test next is to downgrade to 525.53 to see if 525.60.11 introduced a regression when they "Improved the performance of PRIME render-offloaded applications".

Kiskae commented 1 year ago

I've run into this issue with Gnome/Mutter as well so it is not specific to gamescope. It is however much easier to test gamescope in isolation.

Here is a gdb backtrace of the error with full debug symbols on Xwayland:

#0  xorg_backtrace () at ../os/backtrace.c:190
#1  0x0000000000427e5a in glamor_debug_output_callback (source=33350, type=33356, id=<optimized out>, severity=<optimized out>, length=75, 
    message=0x7fbf66242460 "GL_INVALID_OPERATION error generated. <image> and <target> are incompatible", userParam=0x21b5b80) at ../glamor/glamor.c:417
#2  0x00007fbf64b07037 in ?? () from /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05
#3  0x00007fbf64b071b3 in ?? () from /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05
#4  0x00007fbf64b0739a in ?? () from /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05
#5  0x00007fbf64bede0a in ?? () from /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05
#6  0x00000000004213ef in xwl_glamor_gbm_create_pixmap_for_bo (screen=screen@entry=0x21b5b80, bo=bo@entry=0x27defa0, depth=depth@entry=24)
    at ../hw/xwayland/xwayland-glamor-gbm.c:249
#7  0x00000000004225e2 in glamor_pixmap_from_fds (screen=0x21b5b80, num_fds=1 '\001', fds=0x7ffce22f30c0, width=<optimized out>, height=<optimized out>, strides=0x7ffce22f30d0, 
    offsets=0x7ffce22f30e0, depth=24 '\030', bpp=32 ' ', modifier=0) at ../hw/xwayland/xwayland-glamor-gbm.c:594
#8  0x0000000000580b8b in dri3_pixmap_from_fds (ppixmap=ppixmap@entry=0x7ffce22f30b8, screen=screen@entry=0x21b5b80, num_fds=<optimized out>, fds=fds@entry=0x7ffce22f30c0, 
    width=<optimized out>, height=<optimized out>, strides=0x7ffce22f30d0, offsets=0x7ffce22f30e0, depth=24 '\030', bpp=32 ' ', modifier=0) at ../dri3/dri3_screen.c:63
#9  0x000000000057f485 in proc_dri3_pixmap_from_buffers (client=0x262ca90) at ../dri3/dri3_request.c:465
#10 0x0000000000580741 in proc_dri3_dispatch (client=<optimized out>) at ../dri3/dri3_request.c:577
#11 0x000000000048713b in Dispatch () at ../dix/dispatch.c:551
#12 0x000000000048ab75 in dix_main (argc=10, argv=0x7ffce22f32b8, envp=<optimized out>) at ../dix/main.c:271
#13 0x0000000000427808 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../dix/stubmain.c:34

The actual offsets in libnvidia-eglcore are the exact same as @Ramen-LadyHKG:

(EE) 2: /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05 (0x7fbf63a00000+0x1107037) [0x7fbf64b07037]
(EE) 3: /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05 (0x7fbf63a00000+0x11071b3) [0x7fbf64b071b3]
(EE) 4: /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05 (0x7fbf63a00000+0x110739a) [0x7fbf64b0739a]
(EE) 5: /nix/store/z0sdkg18hxp4m7c4j2kp6w938nnrfjwv-nvidia-x11-525.85.05-6.1.10/lib/libnvidia-eglcore.so.525.85.05 (0x7fbf63a00000+0x11ede0a) [0x7fbf64bede0a]
Kiskae commented 1 year ago

I suspect this problem is being caused by a mismatch of gbm backend between Xwayland and the application itself. My particular testcase involves wine and dxvk/vkd3d, which allowed me to narrow down the issue:

  1. all tests are run through gamescope and the logs show it initializes using the NVIDIA dGPU as its EGL target.
  2. if both dxvk and vkd3d-proton are disabled, the issue did not occur.
  3. enabling dxvk triggers the error, and dxvk logs show the application was using the iGPU device as its vulkan output.
  4. enabling vkd3d triggers the error if the application uses D3D12, otherwise it works with some weird artifacting.
  5. enabling both results in the same error as just using dxvk,
  6. completely disabling the i915 driver (including disabling KMS with the i915.modeset=0 kernel parameter) results in everything working as intended.

This leads me to suspect the following problem is happening:

  1. Xwayland loads, binds to the "nvidia-drm" gbm backend and initializes EGL.
  2. The application loads the mesa intel GBM backend for some reason (or fails to load the nvidia backend and falls back on intel)
  3. the application creates a gbm buffer on the intel driver
  4. the application exports that buffer to a dmabuf and passes it to Xwayland
  5. Xwayland then imports the buffer using the "nvidia-drm" gbm backend, this should return a nullptr to indicate failure but it doesn't
  6. Instead it creates its egl image target and tries to bind the buffer it imported, this is where the failure occurs in glEGLImageTargetTexture2DOES.

I believe it might be possible to work around this issue by restricting the vulkan icd's that are available to the application running under Xwayland, but I've not yet tested this.

EDIT: can confirm that when this problem is triggered by using vulkan, using VK_ICD_FILESNAMES to allow only the nvidia drivers fixes the issue.

wolfhechel commented 1 year ago

@Kiskae could you elaborate a bit on which commands you ran in order to get it working? I did try with VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json prime-run gamescope -- steam which got me the exact same results as before, i.e. no change.

wolfhechel commented 1 year ago

Actually I did just now get it running with your recommendations, I forgot to set my intel chip with prefer-vk-device. So basically this; VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json prime-run gamescope --prefer-vk-device 8086:591b -f -w 1920 -h 1080 -r 120 -e -- steam got it up and running. But there's to much artifacts for it to be useable, mainly pink pixels all over the place.

Kiskae commented 1 year ago

After some more digging I believe I've found the root cause of this issue:

  1. Since driver 525 nvidia added support for the vendor-neutral DRM_FORMAT_MOD_LINEAR format modifier^1, but it is marked as external_only^2 meaning it can only be loaded into GL_TEXTURE_EXTERNAL_OES^3.
  2. Xwayland reads the list of supported modifiers and sends it to the client/application, ignoring external_only
  3. The client initializes a different graphics backend for some reason. This backend does not support any of the nvidia-specific buffer modifiers, but it does support DRM_FORMAT_MOD_LINEAR.
  4. Since it is supported it creates this buffer and sends it back to Xwayland to finish initialization of the output buffers.
  5. Xwayland then proceeds to import the buffer using GL_TEXTURE_2D^4 which is incompatible with external_only buffer formats, leading to the error we're seeing.

In my case a vulkan loader bug caused it to initialize the wrong driver,[^5] but it is reasonable to assume any case where the application running under Xwayland tries to use a different GPU (which supported DRM_FORMAT_MOD_LINEAR) will run into this issue.

As for fixing it Xwayland needs to either filter out any modifiers marked as external_only or add support for GL_TEXTURE_EXTERNAL_OES which appears to be quite an extensive change

[^5]: To determine if this is the cause set VK_LOADER_DEBUG=driver and run the application. It should first print vkDeviceCreate using the nvidia driver (this is gamescope creating the window), then print vkDeviceCreate with a different driver when the application initializes vulkan.

wolfhechel commented 1 year ago

Using nvidia 525.89.02, Xwayland 22.1.8 and gamescope ecee87 this case is not reproducible at all for me. I just tried without the ICD loader parameter as well, so prime-run gamescope --prefer-vk-device 8086:591b -- steam now works. There are however too much artifacts in the output for it to be useful.

Kiskae commented 1 year ago

Using nvidia 525.89.02, Xwayland 22.1.8 and gamescope ecee87 this case is not reproducible at all for me. I just tried without the ICD loader parameter as well, so prime-run gamescope --prefer-vk-device 8086:591b -- steam now works. There are however too much artifacts in the output for it to be useful.

I believe you might be rendering through the Intel driver by specifying it as the preferred device. If the Nvidia driver isn't the one being used by Xwayland then this bug does not get triggered

Kiskae commented 1 year ago

opened an issue for Xwayland: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1444

Kiskae commented 1 year ago

For those seeking a temporary solution, the kernel parameter i915.modeset=0 will disable modesetting for the intel driver. This will make it so applications simply can't create the buffers that cause this issue.

Superredstone commented 3 weeks ago

I'm having the same issue

[gamescope] [Info]  console: gamescope version 3.14.29
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
[gamescope] [Info]  vulkan: selecting physical device 'NVIDIA GeForce RTX 4060 Laptop GPU': queue family 2 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  xdg_backend: Seat name: 
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info]  vulkan: supported DRM formats for sampling usage:
[gamescope] [Info]  vulkan:   AR24 (0x34325241)
[gamescope] [Info]  vulkan:   XR24 (0x34325258)
[gamescope] [Info]  vulkan:   AB24 (0x34324241)
[gamescope] [Info]  vulkan:   XB24 (0x34324258)
[gamescope] [Info]  vulkan:   RG16 (0x36314752)
[gamescope] [Info]  vulkan:   NV12 (0x3231564E)
[gamescope] [Info]  vulkan:   AB4H (0x48344241)
[gamescope] [Info]  vulkan:   XB4H (0x48344258)
[gamescope] [Info]  vulkan:   AB30 (0x30334241)
[gamescope] [Info]  vulkan:   AR30 (0x30335241)
[gamescope] [Info]  vulkan:   XR30 (0x30335258)
[gamescope] [Info]  wlserver: Running compositor on wayland display 'gamescope-0'
[gamescope] [Info]  wlserver: [backend/headless/backend.c:17] Starting headless backend
[gamescope] [Info]  wlserver: Successfully initialized libei for input emulation!
[gamescope] [Error] wlserver: [xwayland/sockets.c:64] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
[gamescope] [Info]  wlserver: [xwayland/server.c:107] Starting Xwayland on :2
[gamescope] [Info]  pipewire: stream state changed: connecting
[gamescope] [Info]  pipewire: stream state changed: paused
[gamescope] [Info]  pipewire: stream available on node ID: 98
[gamescope] [Info]  xwm: Embedded, no cursor set. Using left_ptr by default.
[gamescope] [Info]  vblank: Using timerfd.
[gamescope] [Info]  xdg_backend: PreferredMetadata: Red: 0.58984 0.3496, Green: 0.33008 0.55468, Blue: 0.15332 0.11914, White: 0.31348 0.3291, Max Luminance: 200 nits, Min Luminance: 0 nits, Max Full Frame Luminance: 200 nits
[gamescope] [Info]  edid: Patching res 800x1280 -> 1280x720
Error getting buffer
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x620ada751000+0x165943) [0x620ada8b6943]
(EE) 1: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x72edd5) [0x704133f2edd5]
(EE) 2: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x236c7a) [0x704133a36c7a]
(EE) 3: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x249806) [0x704133a49806]
(EE) 4: Xwayland (0x620ada751000+0x38c55) [0x620ada789c55]
(EE) 5: Xwayland (0x620ada751000+0x3bf27) [0x620ada78cf27]
(EE) 6: Xwayland (0x620ada751000+0x163c1e) [0x620ada8b4c1e]
(EE) 7: Xwayland (0x620ada751000+0x167b66) [0x620ada8b8b66]
(EE) 8: Xwayland (0x620ada751000+0x9b268) [0x620ada7ec268]
(EE) 9: Xwayland (0x620ada751000+0x1974b) [0x620ada76a74b]
(EE) 10: /usr/lib/libc.so.6 (0x7041368c6000+0x25e08) [0x7041368ebe08]
(EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0x8c) [0x7041368ebecc]
(EE) 12: Xwayland (0x620ada751000+0x1b315) [0x620ada76c315]
(EE) 
XXX fail to create fbo.
(EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
(EE) 
(EE) Backtrace:
(EE) 0: Xwayland (0x620ada751000+0x165943) [0x620ada8b6943]
(EE) 1: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x72edd5) [0x704133f2edd5]
(EE) 2: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x236c7a) [0x704133a36c7a]
(EE) 3: /usr/lib/libnvidia-eglcore.so.555.58.02 (0x704133800000+0x249806) [0x704133a49806]
(EE) 4: Xwayland (0x620ada751000+0x38c55) [0x620ada789c55]
(EE) 5: Xwayland (0x620ada751000+0x3bf27) [0x620ada78cf27]
(EE) 6: Xwayland (0x620ada751000+0x163c1e) [0x620ada8b4c1e]
(EE) 7: Xwayland (0x620ada751000+0x167b66) [0x620ada8b8b66]
(EE) 8: Xwayland (0x620ada751000+0x9b268) [0x620ada7ec268]
(EE) 9: Xwayland (0x620ada751000+0x1974b) [0x620ada76a74b]
(EE) 10: /usr/lib/libc.so.6 (0x7041368c6000+0x25e08) [0x7041368ebe08]
(EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0x8c) [0x7041368ebecc]
(EE) 12: Xwayland (0x620ada751000+0x1b315) [0x620ada76c315]
(EE) 
XXX fail to create fbo.
[gamescope] [Error] xwm: X11 I/O error
[gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
[gamescope] [Info]  launch: Primary child shut down!