Bug 2297228 - Error launching Vulkan/DXVK games in Flatpak on Nvidia GPU
Summary: Error launching Vulkan/DXVK games in Flatpak on Nvidia GPU
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: flatpak
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-10 22:10 UTC by yanexbug
Modified: 2025-05-27 15:28 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-20 19:12:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github NVIDIA open-gpu-kernel-modules issues 698 0 None open Error launching Vulkan/DXVK games in Flatpak 2025-05-27 15:24:48 UTC
Github flathub org.freedesktop.Platform.GL.nvidia issues 327 0 None open Vulkan/DXVK games in Flatpak on Nvidia GPU won't launch 2025-05-27 15:24:48 UTC
Github flatpak flatpak issues 5802 0 None open [Bug]: Error launching Vulkan/DXVK games in Flatpak on Nvidia GPU 2025-05-27 15:24:19 UTC

Description yanexbug 2024-07-10 22:10:34 UTC
When launching games via Steam/Heroic Launcher/Bottles Flatpak, they fail to start with the error 'Error: couldn’t switch to requested monitor resolution'. However, in the native clients for Steam/Heroic, everything works fine. This issue occurs only with games running on Vulkan/DXVK, while games using OpenGL run without problems in Flatpak. Interestingly, if you run 'vulkaninfo', the games will start correctly until the next reboot. This only happens with proprietary Nvidia drivers, nouveau doesn't have this problem.

Reproducible: Always

Steps to Reproduce:
1. Launch Steam/Heroic Flatpak
2. Launch any game using Vulkan/DXVK
3. Get an error
Actual Results:  
Launching games with the error "Error: couldn't switch to requested monitor resolution"

Expected Results:  
Normal launch of games, no error

Kernel Version: 6.14.3-300.fc42.x86_64
GPU: NVIDIA GeForce RTX 3060 Laptop GPU
Driver: 570.133.07
OS: Fedora Linux 42
Screenshot of the error: https://imgur.com/a/YDPpjFx

UPD: Today I decided to switch to the X11 session and noticed that this problem does not exist, it is only present on Wayland...

It may be useful:
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/698
https://github.com/flatpak/flatpak/issues/5802
https://github.com/flathub/org.freedesktop.Platform.GL.nvidia/issues/327

Comment 1 yanexbug 2024-07-10 22:25:25 UTC
I hope it will be useful:

inxi -Fzxx

System:
  Kernel: 6.9.7-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.1 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Laptop System: HP product: Victus by HP Laptop v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 88F8 v: 88.58 serial: <superuser required>
    part-nu: 4R881EA#A2Q UEFI: AMI v: F.26 date: 04/19/2024
Battery:
  ID-1: BAT0 charge: 51.9 Wh (99.0%) condition: 52.4/70.1 Wh (74.7%)
    volts: 17.2 min: 15.4 model: HP Primary serial: <filter> status: charging
CPU:
  Info: 6-core model: 11th Gen Intel Core i5-11400H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 480 KiB L2: 7.5 MiB L3: 12 MiB
  Speed (MHz): avg: 1825 high: 3823 min/max: 800/4500 cores: 1: 1466 2: 2634
    3: 800 4: 2922 5: 799 6: 3817 7: 800 8: 800 9: 3823 10: 800 11: 2442 12: 800
    bogomips: 64512
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.1 ports: active: eDP-1 empty: DP-1
    bus-ID: 0000:00:02.0 chip-ID: 8086:9a68
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 555.58.02 arch: Ampere ports:
    active: none empty: DP-2,HDMI-A-1 bus-ID: 0000:01:00.0 chip-ID: 10de:2520
  Device-3: Luxvisions Innotech HP Wide Vision HD Camera driver: uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 3-6:4 chip-ID: 30c9:000e
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.0
    compositor: kwin_wayland driver: N/A display-ID: 0
  Monitor-1: eDP-1 res: 1536x864 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: iris
    device: 3 drv: swrast surfaceless: drv: nvidia wayland: drv: iris x11:
    drv: iris inactive: gbm,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 24.1.2 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
    device-ID: 8086:9a68 display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: N/A device-ID: 8086:9a68 device: 1
    type: discrete-gpu driver: N/A device-ID: 10de:2520 device: 2 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:43c8
  Device-2: NVIDIA GA106 High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:228e
  Device-3: fifine Microphones Microphone
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-1:2 chip-ID: 3142:00a8
  API: ALSA v: k6.9.7-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3 chip-ID: 8086:43f0
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 3000
    bus-ID: 0000:02:00.0 chip-ID: 10ec:8168
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-14:5 chip-ID: 8087:0026
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b
Drives:
  Local Storage: total: 953.87 GiB used: 204.5 GiB (21.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL21T0HCLR-00BH1
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 43.9 C
Partition:
  ID-1: / size: 60 GiB used: 21.38 GiB (35.6%) fs: btrfs dev: /dev/nvme0n1p9
  ID-2: /boot/efi size: 511 MiB used: 24 MiB (4.7%) fs: vfat
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A
  Fan Speeds (rpm): cpu: 2173 fan-2: 2385
Info:
  Memory: total: 16 GiB note: est. available: 15.25 GiB used: 3.98 GiB (26.1%)
  Processes: 388 Power: uptime: 4m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 29 Compilers: gcc: 14.1.1 Shell: Bash
    v: 5.2.26 running-in: konsole inxi: 3.3.34

dnf list installed \*nvidia\*

akmod-nvidia.x86_64                                                                      3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.9.7-200.fc40.x86_64.x86_64                                                 3:555.58.02-1.fc40                                                 @@commandline                   
nvidia-gpu-firmware.noarch                                                               20240610-1.fc40                                                    @updates                        
nvidia-modprobe.x86_64                                                                   3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                                                               3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                                   3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                               3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                                          3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                     3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                       3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                                          3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                                         3:555.58.02-1.fc40                                                 @rpmfusion-nonfree-nvidia-driver

This is the console output when the game starts:
yanex@fedora:~$ flatpak run com.valvesoftware.Steam
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
INFO:root:Will set XDG dirs prefix to /home/yanex/.var/app/com.valvesoftware.Steam
DEBUG:root:Checking input devices permissions
WARNING:root:Missing permissions for input devices
INFO:root:Overriding TZ to Europe/Moscow
steam.sh[2]: Running Steam on org.freedesktop.platform 23.08 64-bit
steam.sh[2]: STEAM_RUNTIME is enabled automatically
setup.sh[75]: Steam runtime environment up-to-date!
steam.sh[2]: Steam client's requirements are satisfied
[2024-07-10 02:27:22] Startup - updater built Jun 20 2024 17:13:49
[2024-07-10 02:27:22] Startup - Steam Client launched with: '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam' '-srt-logger-opened' '-no-cef-sandbox'
07/10 02:27:22 minidumps folder is set to /tmp/dumps
07/10 02:27:22 Init: Installing breakpad exception handler for appid(steam)/version(1718904662)/tid(135)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2024-07-10 02:27:22] Loading cached metrics from disk (/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/package/steam_client_metrics.bin)
[2024-07-10 02:27:22] Using the following download hosts for Public, Realm steamglobal
[2024-07-10 02:27:22] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-07-10 02:27:22] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-07-10 02:27:22] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-07-10 02:27:22] Checking for update on startup
[2024-07-10 02:27:22] Checking for available updates...
[2024-07-10 02:27:22] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2024-07-10 02:27:22] Manifest download: send request
[2024-07-10 02:27:22] Manifest download: waiting for download to finish
[2024-07-10 02:27:22] Manifest download: finished
[2024-07-10 02:27:22] Download skipped: /steam_client_ubuntu12 version 1718904662, installed version 1718904662, existing pending version 0
[2024-07-10 02:27:22] Nothing to do
[2024-07-10 02:27:22] Verifying installation...
[2024-07-10 02:27:22] Performing checksum verification of executable files
[2024-07-10 02:27:23] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/logs
 
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xeda068f0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xeda051c0
CAppInfoCacheReadFromDiskThread took 53 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 215
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 379 apps
RegisterForAppOverview 1: 11ms
RegisterForAppOverview 2: 11ms
Fossilize INFO: Setting autogroup scheduling.
chdir "/mnt/data/Games/SteamLibrary/steamapps/common/Buckshot Roulette"
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 804 for gameID 2835570
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 805 for gameID 2835570
Adding process 806 for gameID 2835570
WARNING: discarding _NET_WM_PID 2172 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
WARNING: discarding _NET_WM_PID 2172 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
WARNING: discarding _NET_WM_PID 2172 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
Adding process 807 for gameID 2835570
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
Fossilize INFO: Overriding serialization path: "/mnt/data/Games/SteamLibrary/steamapps/shadercache/2835570/fozpipelinesv6/steamapprun_pipeline_cache".
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1807)
ERROR: Condition "err != OK" is true. Returning: ERR_CANT_CREATE
   at: _window_create (drivers/vulkan/vulkan_context.cpp:1698)
ERROR: Can't create a Vulkan window
   at: _create_window (platform/linuxbsd/x11/display_server_x11.cpp:5297)
ERROR: ld.so: object '/home/yanex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 828 for gameID 2835570
[2024-07-10 02:29:25] Background update loop checking for update. . .
[2024-07-10 02:29:25] Checking for available updates...
[2024-07-10 02:29:25] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12?t=4166931633
[2024-07-10 02:29:25] Manifest download: send request
[2024-07-10 02:29:25] Manifest download: waiting for download to finish
[2024-07-10 02:29:26] Manifest download: finished
[2024-07-10 02:29:26] Download skipped by HTTP 304 Not Modified
[2024-07-10 02:29:26] Nothing to do
ERROR: Unable to create DisplayServer, all display drivers failed.
   at: setup2 (main/main.cpp:2216)
Godot Engine v4.1.1.stable.custom_build.bd6af8e0e - https://godotengine.org
Vulkan API 1.3.278 - Forward+ - Using Vulkan Device #1: NVIDIA - NVIDIA GeForce RTX 3060 Laptop GPU
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketLargeE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools12BucketMediumE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketSmallE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: BUG: Unreferenced static string to 0: TextServerDummy
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: IPUnix
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: ResourceFormatImporterSaver
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: MovieWriterMJPEG
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: interface_added
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: TextServerAdvanced
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: ImageFormatLoader
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: ResourceFormatSaver
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: MovieWriterPNGWAV
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: ScriptLanguage
   at: unref (core/string/string_name.cpp:131)
ERROR: BUG: Unreferenced static string to 0: ResourceFormatLoader
   at: unref (core/string/string_name.cpp:131)
Uploaded AppInterfaceStats to Steam
Removing process 828 for gameID 2835570

Comment 2 Aoife Moloney 2025-04-28 13:29:43 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Aoife Moloney 2025-05-20 19:12:28 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Debarshi Ray 2025-05-27 15:28:47 UTC
I understand that this is really annoying if you are using the proprietary NVIDIA driver.  However, given the nature of the problem, the work needs to happen upstream, and it is very unlikely to be fixed with a downstream patch.  Secondly, Fedora doesn't ship the proprietary NVIDIA driver, so it doesn't fit the definition of "high" severity in the Fedora context.


Note You need to log in before you can comment on or make changes to this bug.