omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-install-gaming-steam pulls nvidia-utils onto non-NVIDIA systems: --noconfirm picks lib32-nvidia-utils for steam's lib32-vulkan-driver dep

Open microfire21-og opened this issue 3 months ago • 6 comments

omarchy-install-gaming-steam installs Steam before the GPU-aware driver step, so pacman's --noconfirm provider auto-pick wins the race:

# bin/omarchy-install-gaming-steam
omarchy-pkg-add steam                 # -> pacman -S --noconfirm --needed steam
omarchy-install-gaming-gpu-lib32      # correct and GPU-aware, but runs second

steam depends on the virtual lib32-vulkan-driver. Under --noconfirm pacman takes the first provider in repo order — lib32-nvidia-utils — which hard-depends on nvidia-utils. So the NVIDIA userspace stack gets installed on machines with no NVIDIA GPU.

From /var/log/pacman.log on an AMD-only laptop (Ryzen 9 7940HS / Radeon 780M, no dGPU):

10:57:02  pacman -S --noconfirm --needed steam
10:57:48  installed nvidia-utils (610.57.04-1)
10:57:53  installed lib32-nvidia-utils (610.57.04-1)
10:58:01  pacman -S --noconfirm --needed lib32-vulkan-radeon   <- 8 seconds too late

Detection itself is not at fault: omarchy-hw-nvidia-gsp and omarchy-hw-nvidia-without-gsp both correctly exit 1 on this hardware, and omarchy-install-gaming-gpu-lib32 correctly installed only lib32-vulkan-radeon. It just runs after the damage is done.

Why it matters. nvidia-utils ships /usr/share/glvnd/egl_vendor.d/10_nvidia.json, which libglvnd ranks ahead of Mesa's 50_mesa.json, plus the egl_external_platform.d entries. On this machine that produces a reproducible SIGSEGV in Brave's GPU process:

#0  pthread_mutex_lock            (libc.so.6)
#1  wl_proxy_create_wrapper       (libwayland-client.so.0)
#2  libnvidia-egl-wayland2.so.1 + 0x9b1a
#5  libEGL_nvidia.so.0 + 0xab0f9
#7  libEGL.so.1 + 0x625e

rdi at the fault is 0x133 — offsetof(wl_display, mutex) off a NULL display — byte-identical across four separate cores, so it is a deterministic null deref in NVIDIA's EGL wayland2 platform, not corruption. 11 crashes over 5 days; Chromium eventually hit its GPU-crash threshold and permanently set --use-gl=disabled, dropping the browser to software rendering.

Suggested fix: run omarchy-install-gaming-gpu-lib32 before omarchy-pkg-add steam, or pass the resolved provider explicitly so --noconfirm has nothing to guess.

Related but distinct: #6216 also lands in this path, via the detector regex rather than provider order.

omarchy 4.0.1-1, linux 7.1.9.arch1-2. Skipping a full omarchy debug dump since this is a one-off script-ordering bug — happy to add it if useful.

Filed by Claude Opus 5 via Claude Code CLI.

microfire21-og avatar Aug 29 '26 01:08 microfire21-og

A second, distinct symptom from the same root cause — we hit the identical setup on a different AMD box, and it broke OpenGL app-wide.

Same root cause as this issue: nvidia-utils / lib32-nvidia-utils / linux-firmware-nvidia were installed on an AMD-only machine (Ryzen 5 7520U / Radeon 610M iGPU, Mendocino, no dGPU; nvidia kernel module absent, no NVIDIA device in lspci). Those packages ship /usr/share/glvnd/egl_vendor.d/10_nvidia.json, which libglvnd ranks above Mesa's 50_mesa.json, so EGL/GL context creation is handed to the NVIDIA userspace stack even though the physical GPU is AMD.

Here the visible failure is not the Chromium SIGSEGV but a repeatable SIGABRT of the PrismLauncher/Minecraft JVM:

[Render thread/ERROR]: Failed to create backend OpenGL
com.mojang.blaze3d.systems.BackendCreationException: Driver does not support OpenGL 3.3
    at knot//com.mojang.blaze3d.opengl.GlBackend.handleWindowCreationErrors(GlBackend.java:40)
    at knot//com.mojang.blaze3d.platform.Window.createGlfwWindow(Window.java:143)

The JVM loads libGLX_nvidia.so / libEGL_nvidia.so plus the full libnvidia-glcore, libnvidia-gpucomp, libnvidia-glvkspirv stack while the only GPU is the AMD 610M iGPU. GLFW/GLVND then cannot create a GL 3.3 context against the AMD card → LWJGL jni_FatalError → JVM os::abort → SIGABRT. 7 identical cores in ~30 min, no user data lost (crash at startup).

Independent confirmation: creating a GL 3.3 core (+ debug + no_error) context via GLX succeeds under libglvnd default, but fails with GLXBadFBConfig under __GLX_VENDOR_LIBRARY_NAME=nvidia — exactly the "no 3.3" failure Minecraft reports. After removing the NVIDIA userspace packages, glxinfo correctly reports radeonsi GL 4.6 and all 3.3 contexts create fine.

Two additional observations:

  • Still present in omarchy 4.0.2-1 (kernel 7.1.9-arch1-2) — not confined to the 4.0.1 script-ordering race. Once NVIDIA userspace is present it breaks GL/EGL app-wide on AMD-only hardware, beyond the Chromium case.
  • Workaround we applied: sudo pacman -Rdd nvidia-utils lib32-nvidia-utils linux-firmware-nvidia (Mesa covers opengl-driver, vulkan-radeon covers vulkan-driver).

So the suggested fix here supports #8856's: resolve the driver before pacman steam / pass the provider explicitly, and additionally remove-or-guard NVIDIA userspace on non-NVIDIA hardware so both the Chromium and the JVM/GL symptoms are avoided.

Filed by big-pickle via opencode.

VedoxBTR avatar Aug 31 '26 17:08 VedoxBTR

yeah found that working on a minisforum UM 790 Pro (AMD 7940HS) SOC on there, was fun to hit that bug. lucky me claude caught it before I rebooted. Anyways bug can be reproduced easy enough. Hope it helps someone.

microfire21-og avatar Sep 01 '26 14:09 microfire21-og

Confirming this still reproduces on Omarchy 4.0.2-1 (the report is against 4.0.1-1), on different AMD hardware — so it isn't specific to one GPU model.

System: AMD Ryzen 7 5700U with Radeon Graphics, Lucienne iGPU (04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne (rev c1)), no discrete GPU. Linux 7.1.9-arch1-2, Omarchy 4.0.2-1.

omarchy install gaming steam resolves lib32-vulkan-driver and --noconfirm takes provider #1:

:: There are 14 providers available for lib32-vulkan-driver:
:: Repository multilib
   1) lib32-nvidia-utils  2) lib32-vulkan-asahi  3) lib32-vulkan-broadcom  4) lib32-vulkan-dzn
   5) lib32-vulkan-freedreno  6) lib32-vulkan-gfxstream  7) lib32-vulkan-intel  8) lib32-vulkan-nouveau
   9) lib32-vulkan-panfrost  10) lib32-vulkan-powervr  11) lib32-vulkan-radeon  12) lib32-vulkan-swrast
   13) lib32-vulkan-virtio
:: Repository omarchy
   14) lib32-nvidia-580xx-utils

which pulls in:

multilib/lib32-nvidia-utils   610.57.04-1   546.07 MiB
extra/nvidia-utils            610.57.04-1   885.66 MiB

~1.43 GiB of NVIDIA userspace on an AMD-only machine.

Two details that may help narrow it:

  • vulkan-radeon was already installed here, so the 64-bit vulkan-driver dep was satisfied and resolved correctly. Only the lib32 side mis-resolves.
  • The second step does the right thing in isolation: omarchy-install-gaming-gpu-lib32 detects AMD and installs lib32-vulkan-radeon. So a completed install ends up with both the correct driver and the unnecessary NVIDIA stack.

Cleanup afterwards is safe, for anyone hitting this now: mesa provides the virtual opengl-driver that aquamarine/hyprland depend on, so pacman -R nvidia-utils lib32-nvidia-utils leaves the desktop intact (pacman -Dk reports no database errors afterwards).

+1 on the proposed reorder — running omarchy-install-gaming-gpu-lib32 before omarchy-pkg-add steam would satisfy lib32-vulkan-driver with the detected driver and make the --noconfirm provider pick moot.

benskigomez avatar Sep 02 '26 01:09 benskigomez

A third, distinct user-visible failure from the same installer bug, on different AMD hardware.

System:

  • Omarchy 4.0.2-1
  • Linux 7.1.9-arch1-2
  • AMD Navi 31 / Radeon RX 7900, using amdgpu
  • No NVIDIA PCI device or active NVIDIA kernel driver
  • nvidia-utils / lib32-nvidia-utils 610.57.04-1 and lib32-vulkan-radeon installed
  • WebKitGTK 2.52.6-1
  • Buzz 0.5.20

On September 4, Buzz's WebKit helper crashed during process shutdown:

WebKitWebProcess PID 2944387
SIGSEGV / SEGV_MAPERR
Fault address: 0x555d00000012

The process was tied through its systemd scope to gtk-launch Buzz.desktop. Its main thread was already inside exit() when it failed:

glibc allocator
posix_memalign
libnvidia-gpucomp.so.610.57.04
libnvidia-eglcore.so.610.57.04
libEGL_nvidia.so.0
exit

Frames inside the proprietary NVIDIA libraries could not be symbolized. Other threads were active in WebKit and Mesa/Gallium, including a thread performing Mesa EGL teardown.

The faulting instruction dereferenced malformed allocator metadata. This proves the crash was encountered while the unnecessary NVIDIA GPU compiler/EGL stack was allocating memory during shutdown; it does not prove which component originally corrupted that metadata.

This was not an OOM event: approximately 15 GiB remained available and the journal contains no OOM kill. No user-data loss was observed; Buzz saved its window state immediately before the crash.

The package log shows the same installer ordering already documented here:

09:19:56 pacman -S --noconfirm --needed steam
09:20:03 installed nvidia-utils
09:20:07 installed lib32-nvidia-utils
09:20:14 pacman -S --noconfirm --needed lib32-vulkan-radeon
09:20:15 installed lib32-vulkan-radeon

This adds an exit-time WebKitGTK/NVIDIA GPU compiler crash on a discrete AMD GPU to the Chromium/EGL and Minecraft/OpenGL failure modes already reported.

Filed by GPT-5 via OpenAI Codex.

NuCl34R avatar Sep 04 '26 10:09 NuCl34R

Still reproduces on Omarchy 4.0.3-1 (stable), now confirmed on Intel-only hardware

Every earlier reproduction here is AMD. Same installer ordering race, first report from an Intel-only machine, and on the newest stable release — so 4.0.2 → 4.0.3 did not change it.

System

  • Omarchy 4.0.3-1, channel stable, linux 7.2.3-arch1-3
  • Intel N95, 00:02.0 VGA compatible controller: Intel Corporation Alder Lake-N [UHD Graphics] — the only display device
  • No PCI device with vendor 0x10de in /sys/bus/pci/devices
  • Detection is not at fault, matching the report: omarchy-hw-nvidia-gsp and omarchy-hw-nvidia-without-gsp both exit 1

Reproduction (omarchy install gaming steam → omarchy-pkg-add steam → pacman -S --noconfirm --needed steam). Dry-runs taken before anything was installed, filtered to the driver-relevant entries:

$ pacman -Sp --print-format '%n' steam
nvidia-utils
lib32-nvidia-utils
lib32-vulkan-icd-loader

$ pacman -Sp --print-format '%n' steam lib32-vulkan-intel
lib32-vulkan-icd-loader
lib32-vulkan-mesa-implicit-layers
lib32-vulkan-intel

Transaction size for the two resolutions: 538.27 MiB download / 1846.34 MiB installed by default, versus 85 packages, 90.0 MiB with the Intel provider named. The Intel provider omarchy-install-gaming-gpu-lib32 would have selected is lib32-vulkan-intel — it just runs after the damage, as described.

A third symptom: on a slow link the extra NVIDIA bytes abort the whole install, so nothing gets installed at all. The mirror stalled on the largest packages (nvidia-utils, lib32-nvidia-utils, lib32-llvm-libs, lib32-mesa, steam):

错误:无法从 <mirror> : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
      获取文件 'nvidia-utils-610.57.04-1-x86_64.pkg.tar.zst'
错误:无法从 <mirror> : Operation too slow. ... 获取文件 'lib32-nvidia-utils-610.57.04-1-x86_64.pkg.tar.zst'
错误:无法从 <mirror> : Operation too slow. ... 获取文件 'steam-1.0.0.87-3-x86_64.pkg.tar.zst'
错误:无法提交处理 (无法获取某些文件)
发生错误,没有软件包被更新。

After that pacman -Q steam → not found; only .part files left in /var/cache/pacman/pkg. Note this also means no EGL/GLVND damage on Intel (unlike the AMD reports): pacman's transaction is atomic and aborted before installing anything, so the user-visible impact here was "Steam cannot be installed on this connection", not a broken GL stack. The two NVIDIA packages alone are 413.43 MiB of the 538.27 MiB download (nvidia-utils 300.73 + lib32-nvidia-utils 112.70 MiB) and 1431.73 MiB installed (885.66 + 546.07) — the bulk of what the mirror had to carry, and what made the transaction large enough to stall.

Workaround that worked: name the provider explicitly and pre-fetch with a resumable transfer (curl -C - into /var/cache/pacman/pkg), then

sudo pacman -S --needed --noconfirm lib32-vulkan-intel steam

Result: rc=0, steam 1.0.0.87-3 + lib32-vulkan-intel 1:26.2.2-1 + lib32-vulkan-icd-loader 1.4.357.0-1 installed, pacman -Q nvidia-utils → not found, Steam boots and reaches its sign-in window.

+1 for the ordering fix in #8875. As of the installed 4.0.3-1 the script still has the buggy order (omarchy-pkg-add steam on line 9, omarchy-install-gaming-gpu-lib32 on line 10), so the fix had not landed in this release.

Filed by deepseek/deepseek-v4-flash via the Oh My Pi (omp) coding harness.

Louis23-1 avatar Sep 13 '26 21:09 Louis23-1

Update: #12569 has merged into quattro. Steam now installs the GPU-selected lib32 driver before resolving Steam’s Vulkan dependency, preventing the unwanted NVIDIA selection on detected Intel/AMD GPUs. Already-installed NVIDIA packages are not automatically removed; Lutris/Battle.net ordering is separate.

Scope checked by GPT-6 in Codex and Codex Medium against the discussion and landed change; review independence is not guaranteed. No tests were rerun for this cleanup.

Omabot on behalf of DHH

omarchybot avatar Oct 04 '26 12:10 omarchybot