Qt6 KDE apps wont run when installed through flatpak

I am running a Linux Mint MATE 21.3. I wanted to install Konsole and Kate on it through flatpak as the repo version are too old for me.

But when I install them and run, they simply do not run. When trying to run it through CLI, i get this error

Gtk-Message: 10:24:35.432: Failed to load module "xapp-gtk3-module"
Qt: Session management error: Could not open network socket
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
Could not initialize GLX

This is an error for Konsole, for Kate i get 0 CLI output. I can install and run other qt apps from flathub. I installed Kalzium and it works, and since to my understanding Kalzium has not transitioned to Qt6, my conclusion in that Qt6 apps do not work for me.

Now, this is most probably problem with my setup as my friend tried on his own Linux Mint 21.3 and it worked. The problem is I do not have an opportunity for a clean reinstall as its my work computer and I do not want to reset my entire setup.

I am running an old nVidia GPU GeForce G210 with a proprietary driver 340.108. Since one of the errors is “Could not initialize GLX” it could be issue with my GPU setup.

I have tried to “flatpak update” but no help. Any ideas?

Hi! Just as you suspected, this comes down to graphics drivers - others have run into the same issue in the past (Could not initialize GLX · Issue #120 · flathub/com.calibre_ebook.calibre · GitHub) and it came down to the proper Nvidia userspace driver packages not getting installed by Flatpak automatically.

Manually installing the Flatpak platform components with flatpak install org.freedesktop.Platform.GL.nvidia-340-108 should help there.

Hope that helps,

(Edited to put the actual driver number in the example install command)

Hi!

thanks for the reply. This platform component was already installed. I also tried reinstalling it, but it did not fix the problem.

I also tried installing the GL32 version, but no luck.

Hmm, strange - just checking, have you tried booting up with the Nouveau open-source drivers enabled, instead of the Nvidia proprietary ones, and seeing if anything changes (perhaps some issue with the older Nvidia driver and newer Qt6)?

If I recall correctly, Mint uses a version of Ubuntu’s Driver Manager tool that makes that decently easy to try? If not, you can temporarily remove rd.driver.blacklist=nouveau modprobe.blacklist=nouveau from your Linux command line, and you should be booted into Nouveau from there.

Yeah, you were right. When i tried with Nouveau version 1:1.0.17, both Konsole and Kate worked normally. So it seems the 340 driver is simply to old and does not support Qt6.

Since the nouveau driver is not enough for my work, I am stuck with Nvidia driver.

Do you know of any way to check what is the newest nvidia driver that still supporst my GPU as I am not sure if 340 is the newest.

You can find that under Appendix A . Search for G210. 340 is indeed end of line.

Normally you could use dkms and build those modules for your kernel but this is another limitation (and complexity) of containerized solutions like flatpak.

P.S. Linux Mint 22 “wilma” is out, can’t you upgrade to that?

1 Like

Mint 22 would not solve this flatpak issue as its GPU driver related. But it would allow me to have newer version form the repo.

I could update, but for some reason I do not have the GUI pop-up to upgrade to 22. So I just ignored it, hoping it would come at some point. But I can try to upgrade manually, I just have to make sure none of the changes impact my work setup as I had issues going from 19 to 20.

:point_up_2:This. :slightly_smiling_face: