Flatpak applications output pixel mess when run in xorg session on Fedora 39

After upgrading to fedora 39 some flatpak applications show the following output:

Chromium based GUIs seem to be the common attribute (happens with slack, visua studio code, brave browser, yubico authenticator, …)

I did try to find similar reports with fedora 39. Earlier this year chrome had some issues aftera mesa update but deleting the cache folders in the flatpaks does not solve this issue.

If I switch to wayland all applications load correctly. I can’t find any log messages and calling the applications with “–disable-gpu” or “–disable-gpu-driver-bug-workarounds” does not help in all cases.

What could be the issue here?

Hardware: Ryzen 7 7700X with igpu Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev c3)

Have you set any global variables that could impact launching of Chromium based applications?
Have you modified the permissions for any of the flatpaks?
Does it exhibit the same behavior on a new user?

Does running flatpak --command=sh "application id" and then launching the application from a command line provide any additional information?

I don’t have any global variables set and the same issue happens for new user and I did not change any permissions for the flatpaks.

Running a application from the commandline gives the output:

flatpak run --command=sh com.yubico.yubioath
/app/bin/authenticator

Gtk-Message: 14:21:14.905: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:21:14.905: Failed to load module "pk-gtk-module"
Gtk-Message: 14:21:14.905: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:21:14.905: Failed to load module "pk-gtk-module"

(authenticator:2): Gdk-CRITICAL **: 14:21:14.923: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

If you install Flatseal (from Flathub), run it, select an affected application, go to Device → GPU acceleration and disable it, then relaunch the app, does that help?

After installing flatseal it shows that the “GPU acceleration” option is already disabled for the apps. Enabling it does not change anything.

Try to report this against mutter:

It looks like a graphics driver issue, but since it also happens when gpu acceleration is disabled, I guess it could be some incorrect memory handling in mutter or gnome-shell itself.

Provide the link of the reported bug here, thanks.

Issue created: Flatpak applications output pixel mess when run in xorg session on Fedora 39 (#3167) · Issues · GNOME / mutter · GitLab

It also happens on the KDE spin of Fedora 39. Seems to be related to this issue: Possible regression with AMD GPU with flatpak apps (#10080) · Issues · Mesa / mesa · GitLab

Flatpaks with the runtime org.freedesktop.Platform/x86_64/23.08 work but 22.08 does not work.

After running flatpak override --user --env=AMD_DEBUG=nodcc all applications work again.