Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL GLX extension not supported by display (Steam does not launch) (gpu issues) #340397

Closed
SpiderUnderUrBed opened this issue Sep 7, 2024 · 3 comments
Labels
0.kind: bug Something is broken

Comments

@SpiderUnderUrBed
Copy link

SpiderUnderUrBed commented Sep 7, 2024

Describe the bug

A clear and concise description of what the bug is.

The OpenGL GLX extension is not active, leading to periodic crashes of my KDE desktop, steam not working (flatpak or nix enabled), and me having issues as a application developer about GPU access (likely related to OpenGL GLX)

PLEASE READ:
I have enabled:

  hardware.graphics.enable32Bit = true;
  hardware.pulseaudio.support32Bit = true;
  programs.steam.enable = true

Steps To Reproduce

Steps to reproduce the behavior:

  1. Ensure you are nixos-unstable
  2. (possible relation) be on beta drivers
  3. (possible relation) if it works, try x11 plasma,

Note, I cannot downgrade my drivers because the driver does not seem to be the issue, also its the only drivers that brings back x11 plasma support whereas wayland never worked

Expected behavior

A clear and concise description of what you expected to happen.

Plasma should not routinely crash

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

I have a acer predator laptop, with a 3070 mobile dgpu, and a igpu, I have both added as videoDrivers and I tried running in hybrid or dgpu only mode. Still same issue.

[2024-09-08 10:43:24] Verifying installation...
[2024-09-08 10:43:24] Performing checksum verification of executable files
[2024-09-08 10:43:26] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/spiderunderurbed/.local/share/Steam/logs

OpenGL GLX extension not supported by display
OpenGL GLX extension not supported by displaysrc/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: OpenGL GLX extension not supported by display
src/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: OpenGL GLX extension not supported by display
09/08 10:43:27 Init: Installing breakpad exception handler for appid(steam)/version(1721173382)/tid(7556)
assert_20240908104327_7.dmp[7598]: Uploading dump (out-of-process)
/tmp/dumps/assert_20240908104327_7.dmp

https://pastebin.com/GXd6mGK0

warning: `bevy-test` (bin "bevy-test") generated 4 warnings (run `cargo fix --bin "bevy-test"` to apply 1 suggestion)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.71s
     Running `target/debug/bevy-test`
2024-09-07T22:53:10.485010Z  INFO bevy_winit::system: Creating new window "App" (0v0)
2024-09-07T22:53:10.485909Z  INFO log: Guessed window scale factor: 1    
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Segmentation fault (core dumped)

^ any application that utilizes OpenGL GLX has issues

I might comment more logs

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.7-zen1, NixOS, 24.11 (Vicuna), 24.11.20240904.ad416d0`
 - multi-user?: `yes`
 - sandbox: `yes`
warning: unknown setting 'access-token'
 - version: `nix-env (Nix) 2.18.5`
warning: unknown setting 'access-token'
 - channels(root): `"nix-ld, nixos-21.11"`
 - nixpkgs: `/nix/store/6inj491lsap4ia7mmvn2gbh53jb27zq0-source`

Add a 👍 reaction to issues you find important.

@SpiderUnderUrBed SpiderUnderUrBed added the 0.kind: bug Something is broken label Sep 7, 2024
@SchnozzleCat
Copy link

SchnozzleCat commented Sep 10, 2024

I have the same issue under Hyprland using an AMD card, steam gives me the same error regarding the GLX extension.

Steam logging initialized: directory: /home/linus/.local/share/Steam/logs

OpenGL GLX extension not supported by display
OpenGL GLX extension not supported by displaysrc/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: OpenGL GLX extension not supported by display
src/steamUI/spewmanager.cpp (184) : Assertion Failed: Error: OpenGL GLX extension not supported by display
09/10 12:50:14 Init: Installing breakpad exception handler for appid(steam)/version(1721173382)/tid(5115)
assert_20240910125014_7.dmp[5387]: Uploading dump (out-of-process)
/tmp/dumps/assert_20240910125014_7.dmp
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf6091840
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf6090000
src/vgui2/src/surface_linux.cpp (1954) : glXChooseVisual failed
src/vgui2/src/surface_linux.cpp (1954) : glXChooseVisual failed
src/vgui2/src/surface_linux.cpp (1954) : Fatal assert; application exiting
src/vgui2/src/surface_linux.cpp (1954) : Fatal assert; application exiting
09/10 12:50:14 Init: Installing breakpad exception handler for appid(steam)/version(1721173382)/tid(5115)
assert_20240910125014_11.dmp[5431]: Uploading dump (out-of-process)
/tmp/dumps/assert_20240910125014_11.dmp

Edit: This seems to be fixed on master with Mesa 24.2.2, at least steam runs fine for me, as well as glxinfo.

@SpiderUnderUrBed
Copy link
Author

SpiderUnderUrBed commented Sep 15, 2024

there is a issue where a secondary display only works on another user and not my primary user, my primary user causes the display connection to flicker or more recently it just ignores the display (On wayland) and x11 does not work at all, im interested in getting wayland working. After alot of troubleshooting, and running a script on a bare tty to start KDE directly, i get this error. I dont get this error on my newly created user:

[spiderunderurbed@daspidercave:~]$ cat kwin.log
No backend specified, automatically choosing drm
Accepting client connections on sockets: QList("wayland-0")
"applications.menu" not found in QList("/etc/profiles/per-user/spiderunderurbed/etc/xdg/menus", "/run/current-system/sw/etc/xdg/menus")
"applications.menu" not found in QList("/etc/profiles/per-user/spiderunderurbed/etc/xdg/menus", "/run/current-system/sw/etc/xdg/menus")
kwin_wayland: ../src/dispatch_common.c:885: epoxy_get_proc_address: Assertion \0 && "Couldn't find current GLX or EGL context.\n"' failed.`

Here is the script:

unset DISPLAY
export XDG_RUNTIME_DIR=/run/user/$(id -u)
#unset DISPLAY

/nix/store/f03ripcsq7lkgwmngv6akbivbzbsi22b-kwin-6.1.5/bin/kwin_wayland --no-global-shortcuts --no-kactivities --no-lockscreen --locale1 > /home/spiderunderurbed/kwin.l
og 2>&1

I am thinking its some old dependency, mesa related or driver related issue but its due to no fault of any system-wide configuration if its affecting a specific user, etc/profiles/per-user/spiderunderurbed/, there is only this for spiderunderurbed, there is no profile for my other user, called jellyfin. I tried renaming it so it would create a new profile, it didnt make a new profile, i mean upon boot. but it didnt fix my issue. there is also a profile in /etc/static.

Any ideas on how to fix it?

@miku4k
Copy link

miku4k commented Dec 17, 2024

try setting services.xserver.videoDrivers (on wayland too)

for reference, my nixos module for steam, which works with my ryzen 5 5500u

{ pkgs, ... }:
{
  programs.steam = {
    enable = true;
    gamescopeSession.enable = true;
    protontricks.enable = true;
    extraCompatPackages = with pkgs; [ proton-ge-bin ];
    extraPackages = with pkgs; [
      mangohud
      gamemode
      dotnet-sdk_8
    ];
  };

  programs.gamemode.enable = true;

  hardware.graphics = {
    enable = true;
    enable32Bit = true;
  };
  services.xserver.videoDrivers = [ "amdgpu" ];
}

this is in hardware-configuration.nix, so i think it was automatically set, but just in case

boot.kernelModules = [ "kvm-amd" ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants