Could not initialize GLX

Hi,

I have been running nextcloud client for years on multiple platforms. However today, when I upgraded it on my RHEL8 Linux from flatpak, it won’t start any longer:

╰─➤  flatpak run com.nextcloud.desktopclient.nextcloud                    
Gtk-Message: 14:00:09.223: Failed to load module "pk-gtk-module"
Gtk-Message: 14:00:09.224: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:00:09.224: Failed to load module "pk-gtk-module"
Gtk-Message: 14:00:09.224: Failed to load module "canberra-gtk-module"
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 QSurfaceFormat::DefaultColorSpace, 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 QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)
Could not initialize GLX

According to glxinfo, I do have GLX in my Gnome3 environment. Any ideas why it stopped workig after upgrade?

╰─➤  flatpak info com.nextcloud.desktopclient.nextcloud                                                                                                      134 ↵

Nextcloud desktop sync client - Nextcloud desktop synchronization client

          ID: com.nextcloud.desktopclient.nextcloud
         Ref: app/com.nextcloud.desktopclient.nextcloud/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.0.1
     License: GPL-2.0+
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 163.9 MB
     Runtime: org.kde.Platform/x86_64/5.15
         Sdk: org.kde.Sdk/x86_64/5.15

      Commit: 16956de802284db5ec2c6090df550820fb08270ff2f9e3650329a81e911c1eeb
      Parent: c901e78be336fa30ad1d3936d819c82afb4d4c9813bd613512669c8701bd8ba6
     Subject: Do cleanup (72d3d910)
        Date: 2020-09-07 07:09:34 +0000

For me the problems seems to be ReadHat system related and not Nextcloud specific , because essential gtk components are missing. Have you tried to ask aunt G. for help:

It seems to be about Nvidia drivers. On my other rhel8, which has the same software setup, but not Nvida graphics card, it works fine. There is something how Nvidia glx stuff gets used through flatpaks. Need to figure out a bit further…

Likely I’d need to follow this guide to install GLX stuff into flatpak. https://www.linuxuprising.com/2018/06/how-to-get-flatpak-apps-and-games-built.html

Which doesn’t have the recent versions available. Well, this is what one gets using proprieatry drivers in open source systems. Avoid such if you can.

1 Like

Could the nextcloud-client fall back to software rendering in case it can’t setup the GLX using display adapter acceleration? There is related issue here: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/350

there is solution to this here: https://github.com/flathub/org.freedesktop.Platform.GL.nvidia/issues/47#event-3939932692

sudo dnf remove nvidia-driver
sudo dnf module reset nvidia-driver
sudo dnf module enable nvidia-driver:450
sudo dnf install nvidia-driver
sudo flatpak install flathub org.freedesktop.Platform.GL.nvidia-450-80-02
sudo reboot