alacritty: Alacritty v0.3.0-rc2 does not start (Error creating GL context)

Alacritty release: v0.3.0-rc2 OS: Debian GNU/Linux buster/sid x86_64 Kernel: 4.19.0-4-amd64O DE: GNOME 3.30.2 GPU: NVIDIA Quadro FX 880M using X11

$ alacritty
Created log file at "/tmp/Alacritty-19721.log"
[2019-04-02 14:35] [ERROR] Alacritty encountered an unrecoverable error:

        Error creating GL context; `glXQueryExtensionsString` found no glX extensions

notes:

  • alacritty version v0.2.9 works fine
  • cargo run --example window works fine when cloned glutin master
  • tried both installing from released deb file and building from sources

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (10 by maintainers)

Commits related to this issue

Most upvoted comments

same thing on pop os after upgrading some packages (don’t remember which ones)

alacritty version:

[~]$ alacritty --version                                                                                                                                                                                                                                                                                                     
alacritty 0.4.3

EDIT: after reading this thread I realized nvidia driver was upgraded. A reboot solved the issue

You need GL wrapper for OpenGL stuff with nix outside of nixos. Consult nix docs wrt that.

@ojsl1 You probably just need to reboot after a driver update. That’s just something you need to do with certain drivers.

This issue happens to me on every upgrade of some graphic specific package on my system, although I didn’t determine which one it is yet.

As alacritty leverages GPU capabilities, it is likely some cuda or nvidia package upgrade… Today I upgraded the below listed packages and had to restart the system for alacritty to start again, after the above mentioned error Error creating GL context; Received multiple errors. Errors: [OsError("eglInitialize failed"), OsError("GL context creation failed")] appeared.

bbswitch-0.8-365
bctoolbox-4.4.10-1
botan-2.17.2-1
c-ares-1.17.1-1
fmt-7.1.2-2
glibmm-2.64.4-1
intel-ucode-20201118-1
lib32-libjpeg-turbo-2.0.6-1
lib32-libx11-1.7.0-1
lib32-mesa-20.2.3-1
lib32-nvidia-utils-455.45.01-1
libakonadi-20.08.3-2
libimagequant-2.13.1-1
libqtxdg-3.6.0-2
libraqm-0.7.1-1
librsvg-2:2.50.2-1
libx11-1.7.0-1
libxkbcommon-1.0.3-1
libxkbcommon-x11-1.0.3-1
libxnvctrl-455.45.01-1
linux-5.9.10.arch1-1
linux-headers-5.9.10.arch1-1
lsof-4.94.0-1
mesa-20.2.3-1
mpv-1:0.33.0-2
nvidia-455.45.01-2
nvidia-settings-455.45.01-1
nvidia-utils-455.45.01-1
opencascade-7.5.0-2
opencl-nvidia-455.45.01-1
opensubdiv-3.4.3-4
openxr-1.0.12-1
sdl_image-1.2.12-7
uranium-4.7.1-4
vulkan-intel-20.2.3-1
vulkan-mesa-layers-20.2.3-1
webkit2gtk-2.30.3-1
xorg-server-1.20.9.r21.g5c400cae1-2
xorg-server-common-1.20.9.r21.g5c400cae1-2
xorg-server-xephyr-1.20.9.r21.g5c400cae1-2
xorg-xprop-1.2.5-1

I will come back after the next breaking upgrade and likely narrow down the involved packages with an intersection.

@Bad3r me too on Ubuntu.

image

@chrisduerr

I just encountered this issue on Arch Linux 5.7.5-arch1-1

$ alacritty 
Created log file at "/tmp/Alacritty-210538.log"
[2020-06-26 07:32:58.968605364] [ERROR] Alacritty encountered an unrecoverable error:

	Error creating GL context; Received multiple errors. Errors: `[OsError("eglInitialize failed"), OsError("GL context creation failed")]`

with Wayland display

$ sh -c "env WAYLAND_DISPLAY= alacritty"     
Created log file at "/tmp/Alacritty-211300.log"
[2020-06-26 07:37:31.081750705] [ERROR] Alacritty encountered an unrecoverable error:

	Error creating GL context; Received multiple errors. Errors: `[OsError("eglInitialize failed"), OsError("GL context creation failed")]`

Sounds like it would be beneficial to wait for the next glutin release before releasing 0.3. Thanks for looking into this.