I've had a look into it.
This happens if SDL2 chooses to use its Wayland driver over X11.
Something seems to have happened that is causing Wayland to be chosen
over X11. It must have always chosen X11 previously for it to have
worked on a Gnome Wayland session.
glewInit() does not work with Wayland, so this will always fail.
https://github.com/nigels-com/glew/issues/172
There is a work around for this by just ignoring the error code if it is
GLEW_ERROR_NO_GLX_DISPLAY, however even after this I found it would hang
with an error creating the window so there are other issues.
Gource can be made to prefer X11 over Wayland, though the source of the
issue seems to be something external.
SDL2 did plan on preferring Wayland over X11, but ended up reverting it
before releasing the current version, possibly its somehow related to that?
https://www.phoronix.com/scan.php?page=news_item&px=SDL2-Reverts-Wayland-Default
https://github.com/libsdl-org/SDL/commit/254fcc90eb22bb159ab365ad956222a9c5632841
You can explicitly set the driver SDL2 chooses by setting
SDL_VIDEODRIVER to x11 or wayland, so it can be worked around with:
SDL_VIDEODRIVER=x11 gource
On Fri, 03 Jun 2022 11:34:16 +0200 =?utf-8?b?SsOpcsOpbXkgTGFs?=
<kapo...@melix.org> wrote:> Package: gource
> Version: 0.53-1
> Severity: normal
>
> ~/Projects/xxx:master$ gource
> gource: SDL initialization failed - GLEW Error: Unknown error
> Try 'gource --help' for more information.
>
> I'm running gnome on wayland.
>
> Graphic card is radeon/turks.
>
>
> -- System Information:
> Debian Release: bookworm/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (101, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 5.17.0-3-amd64 (SMP w/4 CPU threads; PREEMPT)
> Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8),
LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages gource depends on:
> ii fonts-freefont-ttf 20120503-10
> ii libboost-filesystem1.74.0 1.74.0-16
> ii libc6 2.33-7
> ii libfreetype6 2.12.1+dfsg-2
> ii libgcc-s1 12.1.0-2
> ii libgl1 1.4.0-1
> ii libglew2.2 2.2.0-4
> ii libglu1-mesa [libglu1] 9.0.2-1
> ii libpcre2-8-0 10.40-1
> ii libpng16-16 1.6.37-5
> ii libsdl2-2.0-0 2.0.22+dfsg-4
> ii libsdl2-image-2.0-0 2.0.5+dfsg1-3+b1
> ii libstdc++6 12.1.0-2
> ii libtinyxml2.6.2v5 2.6.2-6
>
> gource recommends no packages.
>
> gource suggests no packages.
>
> -- no debconf information
>
>
>