GLX apps fail to run in X2Go remote desktop

Bug #2017762 reported by Wouter Depuydt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mesa (Debian)
New
Undecided
Unassigned
mesa (Fedora)
New
Undecided
Unassigned
mesa (Ubuntu)
New
Undecided
Unassigned

Bug Description

GLX apps fail to run on Ubuntu LTS 22.04. They used to run fine on Ubuntu LTS 20.04

USER@COMPUTER:~$ glxgears
X Error of failed request: GLXUnsupportedPrivateRequest
  Major opcode of failed request: 143 (GLX)
  Minor opcode of failed request: 17 (X_GLXVendorPrivateWithReply)
  Serial number of failed request: 32
  Current serial number in output stream: 32

USER@COMPUTER:~$ glxinfo
name of display: :50.0
X Error of failed request: GLXUnsupportedPrivateRequest
  Major opcode of failed request: 143 (GLX)
  Minor opcode of failed request: 17 (X_GLXVendorPrivateWithReply)
  Serial number of failed request: 27
  Current serial number in output stream: 27

Manually downgrading to mesa-21.x from the Ubuntu 20.04 repository solves the problem:
sudo apt purge libgl1-amber-dri
sudo dpkg -i \
  libegl-mesa0_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  libgbm1_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  libgl1-mesa-dri_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  libglapi-mesa_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  libglx-mesa0_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  libxatracker2_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  mesa-va-drivers_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  mesa-vdpau-drivers_21.2.6-0ubuntu0.1~20.04.2_amd64.deb \
  mesa-vulkan-drivers_21.2.6-0ubuntu0.1~20.04.2_amd64.deb
sudo apt-mark hold \
  libegl-mesa0 \
  libgl1-mesa-dri \
  libglapi-mesa \
  libglx-mesa0 \
  mesa-va-drivers \
  mesa-vdpau-drivers \
  mesa-vulkan-drivers \
  libgbm1 \
  libxatracker2

There's also a discussion about this on the X2Go user list, but no solution so far (just the workaround to downgrade to mesa 21.x):
https://lists.x2go.org/pipermail/x2go-user/2022-June/006825.html

Similar problems on Ubuntu 23.-04 with mesa 23.x, although there the error message is different.

Tested on several computers with connections from different Linux, Windows and Mac clients.
All show the same behaviour: no go with mesa-22.x on Ubuntu-22.04. Success with downgraded mesa.

How to replicate:
  - install ubuntu 22.04 on real hardware or on a VM (tested with QEMU/virt-manager)
  - apt-get install x2goserver-xsession mesa-utils
  - make X2Go connection from another client to new install
  - run 'glxinfo' -> GLX error
  - downgrade mesa to v. 21.x -> no GLX error

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libgl1-mesa-glx 22.2.5-0ubuntu0.1~22.04.1
ProcVersionSignature: Ubuntu 5.19.0-40.41~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-40-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.07.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 510.108.03 Thu Oct 20 05:10:45 UTC 2022
 GCC version: gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
BootLog:

CasperMD5CheckResult: unknown
CompositorRunning: None
CurrentDesktop: XFCE
Date: Wed Apr 26 10:41:42 2023
DistUpgraded: 2022-05-12 16:08:31,041 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
 nvidia/510.108.03, 5.19.0-38-generic, x86_64: installed
 nvidia/510.108.03, 5.19.0-40-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation GM204GL [Quadro M4000] [10de:13f1] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: NVIDIA Corporation GM204GL [Quadro M4000] [10de:1153]
InstallationDate: Installed on 2017-03-24 (2223 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: Dell Inc. Precision WorkStation 690
ProcEnviron:
 LANGUAGE=en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-40-generic root=UUID=a6888b05-975d-4ffe-9cf1-a37038661267 ro quiet splash vt.handoff=7
SourcePackage: mesa
UpgradeStatus: Upgraded to jammy on 2022-05-12 (348 days ago)
dmi.bios.date: 04/25/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A08
dmi.board.name: 0MY171
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA08:bd04/25/2008:svnDellInc.:pnPrecisionWorkStation690:pvr:rvnDellInc.:rn0MY171:rvrA01:cvnDellInc.:ct7:cvr:sku:
dmi.product.name: Precision WorkStation 690
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-2~ubuntu0.22.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.2.5-0ubuntu0.1~22.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx 22.2.5-0ubuntu0.1~22.04.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Wouter Depuydt (wouterd) wrote :
Revision history for this message
Oibaf (oibaf) wrote :

Can you check if mesa 23.04, now in 22.04/jammy updates, fixes this?

Revision history for this message
Wouter Depuydt (wouterd) wrote :

Unfortunately it doesn't fix it.

USER@COMPUTER:~$ glxgears
Error: couldn't get an RGB, Double-buffered visual
USER@COMPUTER:~$ glxinfo
name of display: :50.0
Error: couldn't find RGB GLX visual or fbconfig

USER@COMPUTER:~$ glxinfo -i
name of display: :50.0
Error: couldn't find RGB GLX visual or fbconfig

ii libegl-mesa0:amd64 23.0.4-0ubuntu1~22.04.1
ii libgbm1:amd64 23.0.4-0ubuntu1~22.04.1
ii libgl1-mesa-dri:amd64 23.0.4-0ubuntu1~22.04.1
ii libglapi-mesa:amd64 23.0.4-0ubuntu1~22.04.1
ii libglu1-mesa:amd64 9.0.2-1
ii libglx-mesa0:amd64 23.0.4-0ubuntu1~22.04.1
ii libglx0:amd64 1.4.0-1
ii libxatracker2:amd64 23.0.4-0ubuntu1~22.04.1
ii libxcb-glx0:amd64 1.14-3ubuntu3
ii mesa-utils 8.4.0-1ubuntu1
ii mesa-utils-bin:amd64 8.4.0-1ubuntu1
ii mesa-va-drivers:amd64 23.0.4-0ubuntu1~22.04.1
ii mesa-vdpau-drivers:amd64 23.0.4-0ubuntu1~22.04.1
ii mesa-vulkan-drivers:amd64 23.0.4-0ubuntu1~22.04.1
ii libx2go-config-perl 4.1.0.3-5
ii libx2go-log-perl 4.1.0.3-5
ii libx2go-server-db-perl 4.1.0.3-5
ii libx2go-server-perl 4.1.0.3-5
ii libx2go-utils-perl 4.1.0.3-5
ii x2goclient 4.1.2.2-2build1
ii x2goserver 4.1.0.3-5
ii x2goserver-common 4.1.0.3-5
ii x2goserver-extensions 4.1.0.3-5
ii x2goserver-fmbindings 4.1.0.3-5
ii x2goserver-printing 4.1.0.3-5
ii x2goserver-x2goagent 4.1.0.3-5
ii x2goserver-xsession 4.1.0.3-5

ii libnx-x11-6:amd64 2:3.5.99.26-5
ii libxcomp3:amd64 2:3.5.99.26-5
ii libxcompshad3:amd64 2:3.5.99.26-5
ii nx-x11-common 2:3.5.99.26-5
ii nxagent 2:3.5.99.26-5
ii nxproxy 2:3.5.99.26-5

Revision history for this message
Oibaf (oibaf) wrote :

If you want to try with a newer mesa release you can find it in my PPA: https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

If it still doesn't work, you should file a bug at: https://gitlab.freedesktop.org/mesa/mesa/-/issues/new

Revision history for this message
Wouter Depuydt (wouterd) wrote :

The problem seems to be related to the outdated bundled mesa-libraries in libs-nx:
https://github.com/ArcticaProject/nx-libs#release-series-370x

ii libnx-x11-6:amd64 2:3.5.99.26-5
ii libxcomp3:amd64 2:3.5.99.26-5
ii libxcompshad3:amd64 2:3.5.99.26-5
ii nx-x11-common 2:3.5.99.26-5
ii nxagent 2:3.5.99.26-5
ii nxproxy 2:3.5.99.26-5

I'm using xpra to work around the problem (https://www.xpra.org/). This also allows me to move programs between the 'real' desktop and an X2Go session.
   xpra start --start=/usr/bin/my_program :3
   xpra attach :3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.