nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
628 stars 76 forks source link

Suddenly stopped working after nixos-23.11 release. #149

Closed Animeshz closed 4 months ago

Animeshz commented 7 months ago

I recently updated my flake to point to nixos-23.11, and now nixGL wrapped apps have stopped working, here's an example:

$ kitty
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: iris
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: iris
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[336 20:14:06.378865] [glfw error 65543]: GLX: Failed to create context: GLXBadFBConfig
[336 20:14:06.378893] Failed to create GLFW temp window! This usually happens because of old/broken OpenGL drivers. kitty requires working OpenGL 3.3 drivers.

I'm not sure what caused it, I'll see if I can provide more information.

Few things I tried doesn't help, such as LIBGL_ALWAYS_INDIRECT=1 removes initial repeated error, but last 2 lines remains.

My host is Void Linux, using nixGL along with home-manager. This started right after the nixpkgs flake update, I tried updating host and reboot as well, but no luck.

nim65s commented 6 months ago

Same for me (except s/iris/radeonsi), but only on i3 and not on sway.

nim65s commented 4 months ago

It is no longer broken for me: I can run both kitty & nixGL kitty from home-manager with nixpkgs-unstable under both ubuntu 22.04 & Arch and both i3 & sway.

Animeshz commented 4 months ago

Apparantly it is still not fixed for me. I tried updating to latest nixpkgs pin.

Edit: It was nixos-23.11 pin, it is indeed fixed in nixpkgs-unstable. I hope this comes downstream into latest stable release 23.11 soon.