tmnationsforever
tmnationsforever copied to clipboard
[Bug]: X Error: GLXBadContext
What happened?
The installation works, the screen shows up for a short time and then closes.
Log output
System information:
Linux pc 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:34:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ lspci | grep VGA
2d:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (rev a1)
$ apt list --installed | grep -i NVIDIA
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnvidia-cfg1-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-common-510/jammy-updates,jammy-updates,jammy-security,jammy-security,now 510.73.05-0ubuntu0.22.04.1 all [installed,automatic]
libnvidia-compute-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-compute-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 i386 [installed,automatic]
libnvidia-decode-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-decode-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 i386 [installed,automatic]
libnvidia-egl-wayland1/jammy,now 1:1.1.9-1.1 amd64 [installed,automatic]
libnvidia-encode-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-encode-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 i386 [installed,automatic]
libnvidia-extra-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-fbc1-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-fbc1-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 i386 [installed,automatic]
libnvidia-gl-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
libnvidia-gl-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 i386 [installed,automatic]
linux-modules-nvidia-510-5.15.0-30-generic/jammy-updates,jammy-security,now 5.15.0-30.31+1 amd64 [installed,automatic]
linux-modules-nvidia-510-5.15.0-33-generic/jammy-updates,jammy-security,now 5.15.0-33.34 amd64 [installed,automatic]
linux-modules-nvidia-510-generic-hwe-22.04/jammy-updates,jammy-security,now 5.15.0-33.34 amd64 [installed]
linux-objects-nvidia-510-5.15.0-30-generic/jammy-updates,jammy-security,now 5.15.0-30.31+1 amd64 [installed,automatic]
linux-objects-nvidia-510-5.15.0-33-generic/jammy-updates,jammy-security,now 5.15.0-33.34 amd64 [installed,automatic]
linux-signatures-nvidia-5.15.0-30-generic/jammy-updates,jammy-security,now 5.15.0-30.31+1 amd64 [installed,automatic]
linux-signatures-nvidia-5.15.0-33-generic/jammy-updates,jammy-security,now 5.15.0-33.34 amd64 [installed,automatic]
nvidia-compute-utils-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-driver-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed]
nvidia-kernel-common-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-kernel-source-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
nvidia-prime/jammy,jammy,now 0.8.17.1 all [installed,automatic]
nvidia-settings/jammy,now 510.47.03-0ubuntu1 amd64 [installed,automatic]
nvidia-utils-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
xserver-xorg-video-nvidia-510/jammy-updates,jammy-security,now 510.73.05-0ubuntu0.22.04.1 amd64 [installed,automatic]
What should have happened?
The game works.
Output of snap info $snap_name
name: tmnationsforever
summary: TrackMania Nations Forever
publisher: Snapcrafters
store-url: https://snapcraft.io/tmnationsforever
contact: https://github.com/snapcrafters/tmnationsforever/issues
license: unset
description: |
The most popular online PC racing game. It fuels 7 different racing environments; hundreds of
thousands of tracks and millions of players to compete with. You can download the car you are
dreaming of, paint it, drive it through insane tracks made of loops, ramps and off roads. It is
all about you, your driving skills and the track in front of you.
Just to make sure we understand each other: this is pure arcade driving madness.
This snap is maintained by the Snapcrafters community and is not necessarily endorsed or
officially maintained by the upstream developers.
commands:
- tmnationsforever
- tmnationsforever.wine
- tmnationsforever.winetricks
snap-id: SMmdWwqPVDscid2Ragxl3kLgGwfbTN5h
tracking: latest/edge
refresh-date: today at 13:48 CEST
channels:
latest/stable: 2.11.26 2021-12-28 (49) 122kB -
latest/candidate: 2.11.26 2022-01-07 (48) 122kB -
latest/beta: ↑
latest/edge: 2.11.26 2021-12-28 (49) 122kB -
installed: 2.11.26 (49) 122kB -
Output of snap connections $snap_name
Interface Plug Slot Notes
audio-playback tmnationsforever:audio-playback :audio-playback -
content[gnome-3-28-1804] tmnationsforever:gnome-3-28-1804 gnome-3-28-1804:gnome-3-28-1804 -
content[gtk-3-themes] tmnationsforever:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] tmnationsforever:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] tmnationsforever:sound-themes gtk-common-themes:sound-themes -
content[wine-3-stable] tmnationsforever:wine-3-stable wine-platform-3-stable:wine-3-stable -
content[wine-runtime] tmnationsforever:wine-runtime wine-platform-runtime:wine-runtime -
desktop tmnationsforever:desktop :desktop -
desktop-legacy tmnationsforever:desktop-legacy :desktop-legacy -
gsettings tmnationsforever:gsettings :gsettings -
home tmnationsforever:home :home -
joystick tmnationsforever:joystick :joystick -
network tmnationsforever:network :network -
network-bind tmnationsforever:network-bind :network-bind -
opengl tmnationsforever:opengl :opengl -
wayland tmnationsforever:wayland :wayland -
x11 tmnationsforever:x11 :x11 -
Output of snap version
snap 2.55.5
snapd 2.55.5
series 16
ubuntu 22.04
kernel 5.15.0-33-generic
Relevant log output
2369.343273] kauditd_printk_skb: 1 callbacks suppressed
[ 2369.343276] audit: type=1400 audit(1653566276.951:681): apparmor="DENIED" operation="open" profile="snap.tmnationsforever.tmnationsforever" name="/proc/scsi/scsi" pid=45785 comm="wine" requested_mask="r" denied_mask="r" fsuid=1001 ouid=0
[ 2369.346078] audit: type=1326 audit(1653566276.955:682): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.600409] audit: type=1326 audit(1653566277.211:683): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.605992] audit: type=1326 audit(1653566277.215:684): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.609205] audit: type=1326 audit(1653566277.219:685): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.611865] audit: type=1326 audit(1653566277.223:686): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.612232] audit: type=1326 audit(1653566277.223:687): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.612237] audit: type=1326 audit(1653566277.223:688): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.612545] audit: type=1326 audit(1653566277.223:689): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
[ 2369.613013] audit: type=1326 audit(1653566277.223:690): auid=1001 uid=1001 gid=1001 ses=3 subj=? pid=45788 comm="wineserver" exe="/snap/tmnationsforever/49/wine-platform/wine-stable/bin/wineserver" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7fc90659bf09 code=0x50000
Teminal output of app
... a lot of Fontconfig errors like this
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 152 (GLX)
Request Minor code 6 ()
Error Serial #196
Current Serial #195
I have another issue,
X Error: BadAlloc
Request Major code 149 ()
Request Minor code 2
Error Serial #190
Current Serial #191
I get the same style of error logs:
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 152 (GLX)
Request Minor code 6 ()
Error Serial #196
Current Serial #195
Anyone find a fix for this yet?
Bad news:
I've been experiencing the same error as @Zylviij with the tmnationsforever
snap.
Good news:
The tmunitedforever
fork I just installed runs perfectly well, and it actually includes the whole Nations Forever package.
Tried to install this snap on two machines, couldn't complete on both with the stable release. Terminal output looked similar but I think X Error: BadAlloc
and X Error: GLXBadContext
are two different issues.
However, the candidate version worked with a NVIDIA GPU, so if using NVIDIA, use snap install tmnationsforever --candidate
(issue X Error: GLXBadContext
). Edge version might work too.
On AMD GPU however, none of the three versions worked and ultimately led to /usr/share/libdrm/amdgpu.ids: No such file or directory
. Solution seems to be described here : https://discourse.ubuntu.com/t/the-graphics-core20-snap-interface/23000/2 . See the post "AMD GPUs: A note". it seems that developpers should symlink /usr/share/libdrm/
in snapcraft.yaml
, but I'm talking about something I don't know about...
This might be the same issue as #33.
Thanks @simon-labomedia for this amazing deep-dive!
Can you test this with the latest version with your NVIDIA and AMD GPUs? I rebuilt it with the latest desktop support.
On Ubuntu 22.04, NVidia card, the --candidate version used to work. As of today (after the update) it doesn't work anymore, and it gives the usual error:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 152 (GLX)
Request Minor code 6 ()
Error Serial #196
Current Serial #195
I have the same error on fedora 37. libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error: GLXBadContext Request Major code 151 (GLX) Request Minor code 6 () Error Serial #192 Current Serial #191 on both the stable and edge versions
same problem here
on normal version on Ubuntu 22LTS with nvidia gtx1650
X Error: BadAlloc Request Major code 149 () Request Minor code 2 Error Serial #190 Current Serial #191
thus same error as @e2002e
The same -or very similar- issue happening on Ubuntu 24.04 with Nvidia 535.171.04:
Output of snap info $snap_name
$ snap info tmnationsforever
name: tmnationsforever
summary: The most popular online PC racing game.
publisher: Snapcrafters✪
store-url: https://snapcraft.io/tmnationsforever
contact: https://github.com/snapcrafters/tmnationsforever/issues
license: unset
description: |
The most popular online PC racing game. It fuels 7 different racing
environments; hundreds of thousands of tracks and millions of players to
compete with. You can download the car you are dreaming of, paint it, drive it
through insane tracks made of loopings, ramps and off roads. It is all about
you, your driving skills and the track in front of you.
.
Just to make sure we understand each other: this is pure arcade driving
madness.
*Note: This Windows application runs on Linux using the Wine compatibility layer.*
commands:
- tmnationsforever
- tmnationsforever.wine
- tmnationsforever.winetricks
snap-id: SMmdWwqPVDscid2Ragxl3kLgGwfbTN5h
tracking: latest/stable
refresh-date: 23 days ago, at 23:57 BST
channels:
latest/stable: 2.11.26 2022-11-09 (51) 122kB -
latest/candidate: ↑
latest/beta: ↑
latest/edge: 2.11.26 2023-11-07 (54) 122kB -
installed: 2.11.26 (51) 122kB -
Output of snap version
$ snap version
snap 2.63
snapd 2.63
series 16
ubuntu 24.04
kernel 6.8.0-31-generic
Terminal output of app
$ tmnationsforever
Starting application..
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 152 (GLX)
Request Minor code 6 ()
Error Serial #196
Current Serial #195