Gdk-WARNING

When I test my Flatpak (runtime-version: “47”, sdk: org.gnome.Sdk) in a terminal I get this error:

python3:2): Gdk-WARNING **: 10:33:14.340: Vulkan: …/src/amd/vulkan/radv_physical_device.c:2036: Device ‘/dev/dri/renderD128’ is not using the AMDGPU kernel driver: Invalid argument (VK_ERROR_INCOMPATIBLE_DRIVER)

ChatGPT says:

This error is related to Vulkan, a graphics API, and indicates a problem with the compatibility between your AMD GPU driver and Vulkan…

It gives a lot of suggestions which end with editing Grub - that’s all a bit much for me, so I’m hoping for a simple answer.

Does this command show what driver is being used?

ls /dev/dri/by-path/*-render | grep -o '[0-9:\.]*' | xargs -r -n 1 lspci -k -s

chris@fedora:~$ ls /dev/dri/by-path/-render | grep -o '[0-9:.]’ | xargs -r -n 1 lspci -k -s
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV730 XT [Radeon HD 4670]
Subsystem: PC Partner Limited / Sapphire Technology Device e100
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu

The DVI monitor is being driven by a card, not the onboard graphics.

That output indicates that /dev/dri/renderD128 is connected to the radeon driver, not the amdgpu driver. Your Flatpak claims that it is not compatible with that driver. Some video cards can work with either the radeon or the amdgpu driver.[1] If you can switch to the amdgpu driver, your Flatpak might work. Otherwise, you’ll have to look into the details of the Flatpak and/or the radeon driver and see if you can get them to work together.


  1. https://wiki.archlinux.org/title/AMDGPU#Enable_Southern_Islands_(SI)_and_Sea_Islands_(CIK)_support ↩︎

This all used to work perfectly. All I’ve done is to do the latest Fedora upgrades and upgrade the Flatpak to runtime-version: “47” sdk: org.gnome.Sdk.
My Flatpak has this line at the beginning, I’m not sure of its significance but it does look relevant.
- --device=dri #1.6.01 OpenGL rendering
Taking it out results in a different error:

libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (No such file or directory)
libEGL warning: wayland-egl: could not open /dev/dri/renderD128 (No such file or directory)

[Update] I went back to an earlier runtime-version and the error has gone. I hope the problem with the later Flatpak runtime is fixed before the earlier one goes out-of-date.