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

bumblebee not working #267540

Open
shadyalfred opened this issue Nov 14, 2023 · 28 comments
Open

bumblebee not working #267540

shadyalfred opened this issue Nov 14, 2023 · 28 comments
Labels
0.kind: bug Something is broken

Comments

@shadyalfred
Copy link

Describe the bug

Bumblebee does not work

Steps To Reproduce

Steps to reproduce the behavior:

  1. hardware.bumblebee.enable = true;
  2. optirun glxgears or really any other program other than glxgears
[ 2102.209451] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[ 2102.209515] [ERROR]Aborting because fallback start is disabled.

Expected behavior

glxgears to run properly.

Additional context

The rest of my config:
hardware-configuration.nix

boot.kernelPackages = pkgs.linuxPackages.extend (self: super: {
  nvidia_x11 = super.nvidia_x11_legacy390;
});

hardware.nvidia = {
  modesetting.enable = true;
  powerManagement.enable = false;
  powerManagement.finegrained = false;
  open = false;
  nvidiaSettings = true;
  package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
  prime = {
    intelBusId = "PCI:0:2:0";
    nvidiaBusId = "PCI:1:0:0";
  };
};
hardware.bumblebee.enable = true;

Notify maintainers

@abbradar

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.1.62, NixOS, 23.05 (Stoat), 23.05.20231110.da4024d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.13.6
  • channels(root): "nixos-23.05, nixpkgs-unstable"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
  • system: "x86_64-linux"
  • host os: Linux 6.1.62, NixOS, 23.05 (Stoat), 23.05.20231110.da4024d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.13.6
  • channels(root): "nixos-23.05, nixpkgs-unstable"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@shadyalfred shadyalfred added the 0.kind: bug Something is broken label Nov 14, 2023
@shadyalfred
Copy link
Author

Maybe this Bumblebee-Project/Bumblebee#920 (comment) would solve the issue, but I’m not sure how to try it on NixOS.

@shadyalfred
Copy link
Author

shadyalfred commented Nov 14, 2023

I’ve ran sudo mount /nix/store -o remount,rw and changed xorg.conf.nvidia into

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
    BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"

# Disable display device
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"

EndSection

as described in the comment I’ve linked to, then restarted my pc. It didn’t solve anything, same error message

optirun glxgears
[  612.660668] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[  612.660697] [ERROR]Aborting because fallback start is disabled.

@leg7
Copy link

leg7 commented Dec 29, 2023

Hey did you get it working?

@shadyalfred
Copy link
Author

@leg7
Nope, I gave up. It seems that bumblebee is abandoned, and the legacy driver is broken on new kernels

broken = kernel.kernelAtLeast "6.2";

@leg7
Copy link

leg7 commented Dec 29, 2023

Hey I gave up too and found out that I can just use offload mode even if my gpu is older than turing generation gpus.

https://nixos.wiki/wiki/Nvidia#Optimus_PRIME_Option_A:_Offload_Mode

@shadyalfred
Copy link
Author

I remember trying to set this up but it gave an error because offload mode didn’t support my legacy driver. Did you try to run glxinfo -B with it? It should show in the output that you’re using the Nvidia driver.

@leg7
Copy link

leg7 commented Dec 29, 2023

yeah that works for me

[I] ~ $ glxinfo -B                                                                                                                                                                                                   
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 620 (KBL GT2) (0x5917)
    Version: 23.1.9
    Accelerated: yes
    Video memory: 15755MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.9
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.9
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.9
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

With nvidia-offload:

[I] ~ $ nvidia-offload glxinfo -B                                                                                                                                                                                    
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1999 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce MX150/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 545.29.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 545.29.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 545.29.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

@leg7
Copy link

leg7 commented Dec 29, 2023

@shadyalfred what gpu do you have?

@shadyalfred
Copy link
Author

My GPU is pretty old, it uses the nvidia driver version 390.
GF108GLM NVS 5200M.

@leg7
Copy link

leg7 commented Dec 29, 2023

Yeah I checked on the nvidia website and you really need to use the legacy driver. The nvidia page the nixos wiki links was telling me my gpu needed legacy drivers but when I checked on here https://www.nvidia.com/download/find.aspx I saw that I could use the stable driver so I thought maybe your gpu would have similar documentation issues but unforunately it doesn't.

I don't really know how to help you beyond this. Maybe try sync mode?

@shadyalfred
Copy link
Author

I just gave up, it is pretty old so it is not that useful even if it is working I guess, it doesn’t even support vulkan.

@abmantis
Copy link
Contributor

Same issue. Btw, @leg7 do you power off the card to save power? How? On my i7 7700 the new Nvidia power management is not supported, so I need bbswitch :/

@abmantis
Copy link
Contributor

I've found how to fix the "mouse" module issue: #282646
Also, in my machine I also need to set the BusID, or the card would not be found. For now, I have this overlays that works around both issues:

  nixpkgs.overlays = [
    (final: prev:
      {
        bumblebee = prev.bumblebee.override { extraNvidiaDeviceOptions = "BusID \"PCI:01:00:0\""; };
      })
    (final: prev:
      let
        xmodules = lib.concatStringsSep "," (map (x: "${x.out or x}/lib/xorg/modules") ([ pkgs.xorg.xorgserver pkgs.xorg.xf86inputmouse ]));
      in
      {
        bumblebee = prev.bumblebee.overrideAttrs (old: {
          nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.xorg.xf86inputmouse ];
          CFLAGS = [
            "-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
          ];
        });
      })
  ];

@shadyalfred
Copy link
Author

Were you using flakes, @abmantis?

@abmantis
Copy link
Contributor

Were you using flakes, @abmantis?

No flakes here.

@shadyalfred
Copy link
Author

I’m trying to make it work with flakes. I have this now:
flake.nix

{
  nixConfig = {
    experimental-features = ["nix-command" "flakes"];
    allowUnfree = true;
  };

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
  };

  outputs = {
    nixpkgs,
    ...
  }: {
    nixosConfigurations = {
      "nixos" = nixpkgs.lib.nixosSystem rec {
        system = "x86_64-linux";

        specialArgs = rec {
          pkgs = import nixpkgs {
            system = system;

            config.allowUnfree = true;
            config.nvidia.acceptLicense = true;

            overlays = [
              (final: prev: {
                bumblebee = prev.bumblebee.override {
                  nvidia_x11 = pkgs.linuxKernel.packages.linux_6_1.nvidia_x11_legacy390;
                  extraNvidiaDeviceOptions = "BusID \"PCI:01:00:0\"";
                };
              })

              (final: prev: let
                xmodules = nixpkgs.lib.concatStringsSep "," (
                  map (x: "${x.out or x}/lib/xorg/modules") [
                    pkgs.xorg.xorgserver
                    pkgs.xorg.xf86inputmouse
                  ]
                );
              in {
                bumblebee = prev.bumblebee.overrideAttrs (old: {
                  nativeBuildInputs = old.nativeBuildInputs ++ [pkgs.xorg.xf86inputmouse];
                  CFLAGS = [
                    "-DX_MODULE_APPENDS=\\\"${xmodules}\\\""
                  ];
                });
              })
            ];
          };
        };

        modules = [
          ./configuration.nix
          ./hardware-configuration.nix
        ];
      };
    };
  };
}

hardware-configuration.nix

{
  config,
  pkgs,
  ...
}: {
  boot.kernelPackages = pkgs.linuxPackages.extend (self: super: {
    nvidia_x11 = super.nvidia_x11_legacy390;
  });

  services.xserver.videoDrivers = [
    "modesetting"
  ];

  hardware.nvidia = {
    modesetting.enable = true;
    powerManagement.enable = false;
    powerManagement.finegrained = false;
    open = false;
    nvidiaSettings = true;
    package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
    prime = {
      intelBusId = "PCI:0:2:0";
      nvidiaBusId = "PCI:1:0:0";
    };
  };
  hardware.bumblebee.enable = true;
}

It builds without errors, I can see nvidia and bbswitch when I run lsmod. But it still does not work properly for some reason.
journalctl -u bumblebeed.service:

[XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) 
[XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.         
[XORG] (WW) NVIDIA(0): Option "NoLogo" is not used                               
X did not start properly                                                         
[XORG] (EE)                                                                      

optirun glxinfo -B:

[ERROR]Cannot access secondary GPU - error: X did not start properly 
                                                                     
[ERROR]Aborting because fallback start is disabled.                  

@abmantis
Copy link
Contributor

abmantis commented Jan 23, 2024

@shadyalfred is 01:00:0 the correct address for the Nvidia card?
Also, on your previous log the (EE) line is missing

@shadyalfred
Copy link
Author

@abmantis yes, when I run lspci -v it shows this

01:00.0 VGA compatible controller: NVIDIA Corporation GF108GLM [NVS 5200M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Dell Device 1535
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at f6000000 [virtual] [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

The log does not show anything useful really
image

@woffs
Copy link
Contributor

woffs commented Jan 24, 2024

using @shadyalfred's config (maybe we both have a T420?) I get the mentioned log entries and a coredump:

systemd-coredump[2143]: [🡕] Process 2120 (Xorg) of user 0 dumped core.
                                             
                                             Module libwfb.so without build-id.
                                             Module mouse_drv.so without build-id.
                                             Module nvidia_drv.so without build-id.
                                             Module libnvidia-glcore.so.390.157 without build-id.
                                             Module libnvidia-tls.so.390.157 without build-id.
                                             Module libglx.so without build-id.
                                             Module libbrotlicommon.so.1 without build-id.
                                             Module libbrotlidec.so.1 without build-id.
                                             Module libpng16.so.16 without build-id.
                                             Module libbz2.so.1 without build-id.
                                             Module libz.so.1 without build-id.
                                             Module libfreetype.so.6 without build-id.
                                             Module libfontenc.so.1 without build-id.
                                             Module liblzma.so.5 without build-id.
                                             Module libgcc_s.so.1 without build-id.
                                             Module libcap.so.2 without build-id.
                                             Module libXdmcp.so.6 without build-id.
                                             Module libxshmfence.so.1 without build-id.
                                             Module libsystemd.so.0 without build-id.
                                             Module libXau.so.6 without build-id.
                                             Module libXfont2.so.2 without build-id.
                                             Module libdrm.so.2 without build-id.
                                             Module libpciaccess.so.0 without build-id.
                                             Module libxcvt.so.0 without build-id.
                                             Module libunwind.so.8 without build-id.
                                             Module libudev.so.1 without build-id.
                                             Module libdbus-1.so.3 without build-id.
                                             Module Xorg without build-id.
                                             Stack trace of thread 2120:
                                             #0  0x00007f5a3655de6c __printf_fp_l_buffer (libc.so.6 + 0x57e6c)
                                             #1  0x00007f5a3656494d __printf_buffer (libc.so.6 + 0x5e94d)
                                             #2  0x00007f5a365656c1 __vfprintf_internal (libc.so.6 + 0x5f6c1)
                                             #3  0x00007f5a366218a3 __fprintf_chk (libc.so.6 + 0x11b8a3)
                                             #4  0x00000000005bfb85 LogSWrite (Xorg + 0x1bfb85)
                                             #5  0x00000000005bf349 LogVMessageVerbSigSafe (Xorg + 0x1bf349)
                                             #6  0x00000000005be779 ErrorFSigSafe (Xorg + 0x1be779)
                                             #7  0x00000000005b26b6 xorg_backtrace (Xorg + 0x1b26b6)
                                             #8  0x00000000005b6529 OsSigHandler (Xorg + 0x1b6529)
                                             #9  0x00007f5a36543a70 __restore_rt (libc.so.6 + 0x3da70)
                                             #10 0x00007f5a3655de6c __printf_fp_l_buffer (libc.so.6 + 0x57e6c)
                                             #11 0x00007f5a3656494d __printf_buffer (libc.so.6 + 0x5e94d)
                                             #12 0x00007f5a365656c1 __vfprintf_internal (libc.so.6 + 0x5f6c1)
                                             #13 0x00007f5a366218a3 __fprintf_chk (libc.so.6 + 0x11b8a3)
                                             #14 0x00000000005bfb85 LogSWrite (Xorg + 0x1bfb85)
                                             #15 0x00000000005bff74 LogVMessageVerb (Xorg + 0x1bff74)
                                             #16 0x00000000005c04af LogMessageVerb (Xorg + 0x1c04af)
                                             #17 0x00000000004b7188 InitExtensions (Xorg + 0xb7188)
                                             #18 0x00000000004496dc dix_main (Xorg + 0x496dc)
                                             #19 0x00007f5a3652dfce __libc_start_call_main (libc.so.6 + 0x27fce)
                                             #20 0x00007f5a3652e089 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28089)
                                             #21 0x0000000000432835 _start (Xorg + 0x32835)
                                             ELF object binary architecture: AMD x86-64

I think this should be investigated

@shadyalfred
Copy link
Author

shadyalfred commented Jan 24, 2024

Oh, yeah. I’ve just noticed that when I show the logs for everything not just bumblebeed

logs
systemd-coredump[2748]: [🡕] Process 2743 (Xorg) of user 0 dumped core.
                                              
                                              Module libwfb.so without build-id.
                                              Module mouse_drv.so without build-id.
                                              Module nvidia_drv.so without build-id.
                                              Module libnvidia-glcore.so.390.157 without build-id.
                                              Module libnvidia-tls.so.390.157 without build-id.
                                              Module libglx.so without build-id.
                                              Module libbrotlicommon.so.1 without build-id.
                                              Module libbrotlidec.so.1 without build-id.
                                              Module libpng16.so.16 without build-id.
                                              Module libbz2.so.1 without build-id.
                                              Module libz.so.1 without build-id.
                                              Module libfreetype.so.6 without build-id.
                                              Module libfontenc.so.1 without build-id.
                                              Module liblzma.so.5 without build-id.
                                              Module libgcc_s.so.1 without build-id.
                                              Module libcap.so.2 without build-id.
                                              Module libXdmcp.so.6 without build-id.
                                              Module libxshmfence.so.1 without build-id.
                                              Module libsystemd.so.0 without build-id.
                                              Module libXau.so.6 without build-id.
                                              Module libXfont2.so.2 without build-id.
                                              Module libdrm.so.2 without build-id.
                                              Module libpciaccess.so.0 without build-id.
                                              Module libxcvt.so.0 without build-id.
                                              Module libxcvt.so.0 without build-id.
                                              Module libunwind.so.8 without build-id.
                                              Module libudev.so.1 without build-id.
                                              Module libdbus-1.so.3 without build-id.
                                              Module Xorg without build-id.
                                              Stack trace of thread 2743:
                                              #0  0x00007fe88f285e6c __printf_fp_l_buffer (libc.so.6 + 0x57e6c)
                                              #1  0x00007fe88f28c94d __printf_buffer (libc.so.6 + 0x5e94d)
                                              #2  0x00007fe88f28d6c1 __vfprintf_internal (libc.so.6 + 0x5f6c1)
                                              #3  0x00007fe88f3498a3 __fprintf_chk (libc.so.6 + 0x11b8a3)
                                              #4  0x00000000005bfb15 LogSWrite (Xorg + 0x1bfb15)
                                              #5  0x00000000005bf2d9 LogVMessageVerbSigSafe (Xorg + 0x1bf2d9)
                                              #6  0x00000000005be709 ErrorFSigSafe (Xorg + 0x1be709)
                                              #7  0x00000000005b2646 xorg_backtrace (Xorg + 0x1b2646)
                                              #8  0x00000000005b64b9 OsSigHandler (Xorg + 0x1b64b9)
                                              #9  0x00007fe88f26ba70 __restore_rt (libc.so.6 + 0x3da70)
                                              #10 0x00007fe88f285e6c __printf_fp_l_buffer (libc.so.6 + 0x57e6c)
                                              #11 0x00007fe88f28c94d __printf_buffer (libc.so.6 + 0x5e94d)
                                              #12 0x00007fe88f28d6c1 __vfprintf_internal (libc.so.6 + 0x5f6c1)
                                              #13 0x00007fe88f3498a3 __fprintf_chk (libc.so.6 + 0x11b8a3)
                                              #14 0x00000000005bfb15 LogSWrite (Xorg + 0x1bfb15)
                                              #15 0x00000000005bff04 LogVMessageVerb (Xorg + 0x1bff04)
                                              #16 0x00000000005c043f LogMessageVerb (Xorg + 0x1c043f)
                                              #17 0x00000000004b71d8 InitExtensions (Xorg + 0xb71d8)
                                              #18 0x000000000044957c dix_main (Xorg + 0x4957c)
                                              #19 0x00007fe88f255fce __libc_start_call_main (libc.so.6 + 0x27fce)
                                              #20 0x00007fe88f256089 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28089)
                                              #21 0x0000000000432835 _start (Xorg + 0x32835)
                                              ELF object binary architecture: AMD x86-64
systemd[1]: systemd-coredump@2-2747-0.service: Deactivated successfully.
bumblebeed[936]: [XORG] (EE)
bumblebeed[936]: [XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
bumblebeed[936]: [XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
bumblebeed[936]: [XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
bumblebeed[936]: X did not start properly

It’s the same as @woffs’ but has this line duplicated for some reason:
Module libxcvt.so.0 without build-id.

I wonder if this is relevant
https://discourse.nixos.org/t/nvidia-optimus-why-does-22-11-work-and-23-11-not/38386

@woffs
Copy link
Contributor

woffs commented Jan 24, 2024

It just crashes on InitExtensions. Maybe re-try with 22.11 for curiosity ...
I wonder if anyone wants to bisect this 😆

@shadyalfred
Copy link
Author

Not sure how to downgrade. One of the comments there mentions that it might be because of a different glibc version though.

@woffs
Copy link
Contributor

woffs commented Jan 25, 2024

I tried with 22.11 (using nixos-rebuild test --override-input nixpkgs nixpkgs/nixos-22.11 with a slightly adapted config) and it worked! Without reboot, without restarting the main X session. I'll try with 23.05 now. Then it is to evaluate if an old X, a with-old-gcc-compiled X or an other kind of modified X solves the problem (which is probably at loading the ancient Nvidia binary module).

Does it work with nouveau somehow?

@shadyalfred
Copy link
Author

Bumblebee supports nouveau if you change the config. If you have the same GPU as mine though, nouveau doesn’t support it unfortunately.

@woffs
Copy link
Contributor

woffs commented Jan 26, 2024

(23.05 does not work. 22.11 does.)
I have tweaked my config overriding X from 22.11 into bumblebee from 23.11. X starts now, but any process using GLX crashes with "stack smashing detected", example backtrace:

                #0  0x00007f2c6d026d7c __pthread_kill_implementation (libc.so.6 + 0x8cd7c)
                #1  0x00007f2c6cfd79c6 raise (libc.so.6 + 0x3d9c6)
                #2  0x00007f2c6cfc08fa abort (libc.so.6 + 0x268fa)
                #3  0x00007f2c6cfc1767 __libc_message.cold (libc.so.6 + 0x27767)
                #4  0x00007f2c6d0b57f9 __fortify_fail (libc.so.6 + 0x11b7f9)
                #5  0x00007f2c6d0b6aa4 __stack_chk_fail (libc.so.6 + 0x11caa4)
                #6  0x00007f2c6d020df5 _dlerror_run (libc.so.6 + 0x86df5)
                #7  0x00007f2c6d021271 dlopen@GLIBC_2.2.5 (libc.so.6 + 0x87271)
                #8  0x00007f2c6d5c2764 dlopen (libdlfaker.so + 0x1764)
                #9  0x00007f2c6ce6fc9a __glXLookupVendorByName (libGLX.so.0 + 0x8c9a)
                #10 0x00007f2c6ce712a5 __glXLookupVendorByScreen (libGLX.so.0 + 0xa2a5)
                #11 0x00007f2c6ce6a9f8 glXChooseFBConfig (libGLX.so.0 + 0x39f8)
                #12 0x00007f2c6d53be87 _ZN9glxvisual14chooseFBConfigEP9_XDisplayiPKiRi (libvglfaker.so + 0x90e87)
                #13 0x00007f2c6d53c988 _ZN9glxvisual21configsFromVisAttribsEP9_XDisplayiPKiRib (libvglfaker.so + 0x91988)
                #14 0x00007f2c6d5096d2 glXChooseVisual (libvglfaker.so + 0x5e6d2)
                #15 0x0000000000402432 main (glxinfo + 0x2432)
                #16 0x00007f2c6cfc1fce __libc_start_call_main (libc.so.6 + 0x27fce)
                #17 0x00007f2c6cfc2089 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28089)
                #18 0x0000000000402fa5 _start (glxinfo + 0x2fa5)

runtime glx again ... 😵‍💫
maybe the path investigating GCC compatibility issues is the right one

@shadyalfred
Copy link
Author

maybe the path investigating GCC compatibility issues is the right one

Yes, I agree. glibc and nvidia are a pain.

@Kiskae
Copy link
Contributor

Kiskae commented Jan 30, 2024

@anonimo0-0

I suspect you might be running into #277694

However it looks like that recently got backported into 23.11, so can anyone confirm this issue remains after updating to the latest release of nixos-23.11?

@woffs
Copy link
Contributor

woffs commented Jan 30, 2024

You are right, X does not crash anymore! 👍
Some applications work. Prismlauncher/Minecraft/Java segfaults at getGLXExtensions (libvglfaker.so) though

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

5 participants