Fedora 41: Cannot open some Flatpak applications

I recently upgraded from Fedora 39 and have encountered many bugs and errors in this new version. One of them is related to flatpak, and as the title indicates, some applications stopped working.

For example, when I try to open Flatseal with /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.tchx84.Flatseal com.github.tchx84.Flatseal I get the following error:

libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: failed to authenticate
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers

(com.github.tchx84.Flatseal:2): Gdk-WARNING **: 23:23:54.593: The program 'com.github.tchx84.Flatseal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1098 error_code 8 request_code 149 (unknown) minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)^[This text will be in a footnote]

When I try to open Bottles with /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=bottles --file-forwarding com.usebottles.bottles @@u %u @@ I get

libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
23:28:05 (ERROR) Unable to load libGLX_nvidia.so.0 
23:28:05 (WARNING) Unable to locate libGLX_nvidia 

(bottles:2): Gtk-WARNING **: 23:28:07.036: Theme parser warning: style.css:184:3-185:1: Expected ';' at end of block

(bottles:2): Gtk-WARNING **: 23:28:07.037: Theme parser warning: style-dark.css:23:3-24:1: Expected ';' at end of block
23:28:07 (INFO) Launching with URI: ['%u'] 
23:28:07 (INFO) Forcing offline mode 
Illegal bottle folder or mismatch between config "Path" and folder name
Unable to load libGLX_nvidia.so.0
Unable to locate libGLX_nvidia
Nvidia driver libraries haven't been found. DLSS might not work!
Illegal bottle folder or mismatch between config "Path" and folder name
Unable to load libGLX_nvidia.so.0
Unable to locate libGLX_nvidia
Nvidia driver libraries haven't been found. DLSS might not work!
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:782: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:814: FINISHME: support more multi-planar formats with DRM modifiers

(bottles:2): Gdk-WARNING **: 23:28:07.383: The program 'bottles' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 271 error_code 8 request_code 149 (unknown) minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Try removing flatpak apps together with data and re-install it. Next thing to try if clean app re-install will not help - remove and re-add flatpak remotes (e.g., Flathub) and install apps anew.

In most of cases in-place upgrade goes well, but sometimes config differences&conflicts between old and new makes apps to crash. E.g., my 3-4 in-place upgrades were very smooth, but upgrade to 41 was a bit bumpy, thus I reinstalled OS without touching my home dir. Still I had to reinstall some of my flatpak apps to get them working.

GNOME changed the default graphics renderer twice between F39 and F41: from gl to ngl and then to vulkan. The errors might be related.

Were the Flatpak apps and runtimes upgraded after the system-upgrade? If so, you might want to try a repair wit sudo flatpak repair.

If still having issues, you might want to take a look at this workaround too.

Seems that I started with the wrong foot. All of the flatpak applications work now.

1 Like