Bug 1189524 - SuperTuxKart libGLEW issues on NVIDIA
Summary: SuperTuxKart libGLEW issues on NVIDIA
Status: RESOLVED FIXED
: 1189196 1189303 1189657 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X11 3rd Party Driver (show other bugs)
Version: Current
Hardware: 64bit openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Atri Bhattacharya
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 15:33 UTC by Simon Vogl
Modified: 2024-05-15 12:40 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
GLEW error (2.68 KB, text/plain)
2021-08-20 15:25 UTC, Ivo Lux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Vogl 2021-08-17 15:33:59 UTC
Ever since Request 909622 got accepted into Tumbleweed, games like Supertuxkart no longer launch with NVIDIA Drivers:

[info   ] [FileManager]: Data files will be fetched from: '/usr/share/supertuxkart/data/'
[info   ] [FileManager]: User directory is '/home/plasma/.config/supertuxkart/config-0.10/'.
[info   ] [FileManager]: Addons files will be stored in '/home/plasma/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/plasma/.local/share/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/plasma/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '/usr/share/supertuxkart/data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '/usr/share/supertuxkart/data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '/usr/share/supertuxkart/data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '/usr/share/supertuxkart/data/gui/icons/'.
[info   ] [FileManager]: Asset 4 will be loaded from '/usr/share/supertuxkart/data/gui/screens/'.
[info   ] [FileManager]: Asset 5 will be loaded from '/usr/share/supertuxkart/data/gui/dialogs/'.
[info   ] [FileManager]: Asset 6 will be loaded from '/usr/share/supertuxkart/data/replay/'.
[info   ] [FileManager]: Asset 7 will be loaded from '/usr/share/supertuxkart/data/shaders/'.
[info   ] [FileManager]: Asset 8 will be loaded from '/usr/share/supertuxkart/data/skins/'.
[info   ] [FileManager]: Asset 9 will be loaded from '/usr/share/supertuxkart/data/ttf/'.
[info   ] [FileManager]: Asset 10 will be loaded from '/usr/share/supertuxkart/data/po/'.
[info   ] [FileManager]: Asset 11 will be loaded from '/usr/share/supertuxkart/data/library/'.
[info   ] [FileManager]: Asset 12 will be loaded from '/usr/share/supertuxkart/data/models/'.
[info   ] [FileManager]: Asset 13 will be loaded from '/usr/share/supertuxkart/data/music/'.
[info   ] [FileManager]: Asset 14 will be loaded from '/usr/share/supertuxkart/data/sfx/'.
[info   ] [FileManager]: Asset 15 will be loaded from '/usr/share/supertuxkart/data/textures/'.
[info   ] [FileManager]: Asset 16 will be loaded from '/usr/share/supertuxkart/data/tracks/'.
..:: Antarctica Rendering Engine 2.0 ::..
[info   ] IrrDriver: OpenGL version: 4.3
[info   ] IrrDriver: OpenGL vendor: NVIDIA Corporation
[info   ] IrrDriver: OpenGL renderer: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2
[info   ] IrrDriver: OpenGL version string: 4.3.0 NVIDIA 470.57.02
[info   ] IrrDriver: OpenGL total memory: 8192
[fatal  ] GLEW: Glew initialization failed with error Missing GL version

When building GLEW without the SYSTEM=linux-egl flag, supertuxkart works fine again, but other stuff like hugin crashes, and I haven't found a way to make both work with the same GLEW library and WxWidgets 3.1.X.
Any idea how this can be solved?

On Fedora hugin seems to work without GLEW being built with the SYSTEM=linux-egl flag and WxWidgets 3.1.4, however, I failed to find out why so far.
Comment 1 Atri Bhattacharya 2021-08-17 15:44:07 UTC
wxWidgets 3.1.4 had no EGL support, so it was fine without glew being built with EGL. However, with wxWidgets updated to 3.1.5 on TW, which supports (forces?) EGL, it needs glew to be built with EGL to avoid crashes in apps like hugin. Building glew with EGL support now is the right thing to do, but we need to see how to fix issues like this on specific configurations.

Is there any chance you can test if supertuxkart also crashes on any other graphics driver/${XDG_SESSION_TYPE} apart from nVidia+x11 where we see this issue?

Thanks.
Comment 2 Simon Vogl 2021-08-17 16:05:23 UTC
Oh okay, now it working on Arch/Fedora makes sense since both haven't updated to wxWidgets 3.1.5 :)
NVIDIA + Plasma Wayland session crashes with the same error, however, I suspect supertuxkart to run as an xwayland app and therefore of course having the same issues. I'll maybe do some testing with nouveau/Intel iGPU later, I'll have to see if I've got time.
Comment 3 Atri Bhattacharya 2021-08-17 16:31:38 UTC
Reported upstream as glew's own `visualinfo` program fails on NVIDIA as well.
Comment 4 Ivo Lux 2021-08-20 15:24:39 UTC
I can confirm this GLEW error and I'm using an AMD graphics card. I will attach my terminal output.
Comment 5 Ivo Lux 2021-08-20 15:25:11 UTC
Created attachment 851960 [details]
GLEW error
Comment 6 Atri Bhattacharya 2021-08-21 16:24:17 UTC
We'll have to revert building glew with EGL support, while also disabling EGL support in wxWidgets to avoid boo#1188519. I am working on both of these fixes. When glew properly support EGL again, we shall revisit this.
Comment 7 Atri Bhattacharya 2021-08-21 16:48:49 UTC
This should do it:

* https://build.opensuse.org/request/show/913481
* https://build.opensuse.org/request/show/913482
Comment 8 Atri Bhattacharya 2021-08-22 17:39:45 UTC
*** Bug 1189657 has been marked as a duplicate of this bug. ***
Comment 9 Wolfgang Bauer 2021-08-25 06:33:38 UTC
*** Bug 1189303 has been marked as a duplicate of this bug. ***
Comment 10 Atri Bhattacharya 2021-08-26 08:57:17 UTC
Fixes accepted into Factory.
Comment 11 Ferdinand Thiessen 2021-08-29 15:01:36 UTC
*** Bug 1189196 has been marked as a duplicate of this bug. ***