snapcrafters / alacritty

A community-maintained package to easily install Alacritty on Linux
MIT License
9 stars 12 forks source link

[BUG] GLIBC_2.38 not found after last update. #16

Closed samuelabreu closed 9 months ago

samuelabreu commented 9 months ago

Describe the bug

After last update, on Ubuntu 23.10, alacritty fails to launch with:

libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: swrast
Error: Error { raw_code: Some(167), raw_os_message: Some("GLXBadFBConfig"), kind: BadConfig }

To Reproduce

Steps to reproduce the behavior:

  1. Open any other terminal
  2. execute alacritty
  3. Error output

Expected behavior

Alacritty launchs

Screenshots

N/A

Environment (please complete the following information):

Additional context

$ alacritty -vvv

Created log file at "/tmp/Alacritty-20552.log"
[0.000001035s] [INFO ] [alacritty] Welcome to Alacritty
[0.000079476s] [INFO ] [alacritty] Version 0.13.1 (fe2a3c56)
[0.000092075s] [INFO ] [alacritty] Running on X11
[0.000505901s] [INFO ] [alacritty] Configuration files loaded from:
                                     "/home/samuel/.config/alacritty/alacritty.toml"
                                     "/home/samuel/.config/alacritty/themes/everforest.toml"
[0.007185353s] [INFO ] [alacritty] Using GLX 1.4
libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: swrast
[0.068869400s] [DEBUG] [alacritty] Picked GL Config:
                                     buffer_type: Some(Rgb { r_size: 8, g_size: 8, b_size: 8 })
                                     alpha_size: 8
                                     num_samples: 0
                                     hardware_accelerated: true
                                     supports_transparency: Some(true)
                                     config_api: Api(OPENGL | GLES1 | GLES2)
                                     srgb_capable: false
[0.074639805s] [INFO ] [alacritty] Window scale factor: 1
[0.082538591s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-20552.log"
Error: Error { raw_code: Some(167), raw_os_message: Some("GLXBadFBConfig"), kind: BadConfig }

LIBGL_DEBUG output (only if you have graphics related issue):

$ LIBGL_DEBUG=verbose alacritty
...
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/samuel/.drirc: No such file or directory.
libGL: using driver i915 for 17
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/samuel/.drirc: No such file or directory.
libGL: using driver i915 for 17
libGL: pci id for fd 17: 8086:3e9b, driver iris
libGL: MESA-LOADER: failed to open /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri/iris_dri.so: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2)
libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL: using driver i915 for 17
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/samuel/.drirc: No such file or directory.
libGL: using driver i915 for 17
libGL: pci id for fd 17: 8086:3e9b, driver iris
libGL: MESA-LOADER: failed to open /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri/iris_dri.so: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2)
libGL error: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL: MESA-LOADER: failed to open /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2)
libGL error: MESA-LOADER: failed to open swrast: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: swrast
Error: Error { raw_code: Some(167), raw_os_message: Some("GLXBadFBConfig"), kind: BadConfig }
jnsgruk commented 9 months ago

Hmm, interesting. I've rolled back the release for now, or you can try snap revert alacritty while we investigate a bit more.

DanielArndt commented 9 months ago

Similar issues for me with the candidate release (115), but the latest stable does work now that it is rolled back (I have to unset LD_LIBRARY_PATH to get some things working, though).

$ alacritty -vvv
Created log file at "/tmp/Alacritty-345991.log"
[0.000000690s] [INFO ] [alacritty] Welcome to Alacritty
[0.000078154s] [INFO ] [alacritty] Version 0.13.1 (fe2a3c56)
[0.000087508s] [INFO ] [alacritty] Running on Wayland
[0.000148242s] [INFO ] [alacritty_config_derive] No config file found; using default
libEGL warning: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

[0.008147336s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-345991.log"
Error: Error { raw_code: Some(12289), raw_os_message: None, kind: InitializationFailed }
$ LIBGL_DEBUG=verbose alacritty                                                                                                                                                                                                           1 ↵
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/darndt/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/darndt/.drirc: No such file or directory.
libEGL warning: MESA-LOADER: failed to open iris: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /snap/core22/current/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /lib/x86_64-linux-gnu/libxml2.so.2) (search paths /snap/alacritty/115/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

Error: Error { raw_code: Some(12289), raw_os_message: None, kind: InitializationFailed }
jnsgruk commented 9 months ago

@samuelabreu @DanielArndt see #18 - can you give the latest version in latest/candidate a try and see if it solves your issue?

samuelabreu commented 9 months ago

After snap refresh alacritty --candidate i could launch alacritty successfully.

alacritty --version
alacritty 0.13.1 (fe2a3c56)

Thank you

jnsgruk commented 9 months ago

Excellent! Thanks!