open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

nvidia-drm NVKMS GEM allocation failure followed by Ghostty SIGSEGV in libnvidia-eglcore.so.610.43.02

Open derekszen opened this issue 5 months ago • 8 comments

NVIDIA Open GPU Kernel Modules Version

nvidia-open-dkms 610.43.02-2 / nvidia-utils 610.43.02-2

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • [ ] I confirm that this does not happen with the proprietary driver package.

I have not tested the proprietary driver package of the same version yet. I am filing this as an open-kernel-module incident because the system is currently using nvidia-open-dkms, and the kernel-side failure came from nvidia_drm immediately before a userspace crash in NVIDIA EGL.

Operating System and Version

Arch Linux / Omarchy 3.8.2

Kernel Release

Linux omarchyNeptune 7.0.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 02 Jun 2026 18:26:58 +0000 x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • [x] I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 5090 D, driver 610.43.02

Describe the bug

I hit a GPU/rendering failure on Arch Linux with the open NVIDIA kernel module stack. I do not have a reliable reproducer yet, but the timeline shows nvidia-drm allocation errors immediately before a Ghostty/GTK4 process crashed in NVIDIA EGL code. The machine then appears to have hung or rebooted abnormally.

Environment:

GPU: NVIDIA GeForce RTX 5090 D
Driver: 610.43.02
nvidia-open-dkms: 610.43.02-2
nvidia-utils: 610.43.02-2
Kernel: 7.0.11-arch1-1
Hyprland: 0.55.2-2
Ghostty: 1.3.1-arch2
GTK4: 4.22.4-1
Omarchy: 3.8.2

Observed timeline:

2026-06-11 15:15:10 CST
kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
kernel: ghostty[1007163]: segfault at 0 ip 00007fe2a64f4390 sp 00007ffe361311d0 error 6 in libnvidia-eglcore.so.610.43.02[af4390,7fe2a5c19000+c46000] likely on CPU 7 (core 7, socket 0)

Coredump details:

Signal: SIGSEGV
Executable: /usr/bin/ghostty
Command line:
ghostty --class=org.omarchy.screensaver --config-file=~/.local/share/omarchy/default/ghostty/screensaver --font-size=18 -e omarchy-screensaver

The coredump stack starts in libnvidia-eglcore.so.610.43.02, then continues into the GTK4 render stack:

#0  libnvidia-eglcore.so.610.43.02 + 0xaf4390
#1  libnvidia-eglcore.so.610.43.02 + 0xa38c33
#2  libnvidia-eglcore.so.610.43.02 + 0xa43b5c
#3  libnvidia-eglcore.so.610.43.02 + 0x77e3a4
#4  libgtk-4.so.1 + 0x5cf7b8
#7  gsk_renderer_render (libgtk-4.so.1 + 0x59d9a3)
#23 ghostty + 0x135de95

The previous boot journal stopped at 2026-06-11 15:15:24 CST, and the next boot began at 2026-06-11 15:16:35 CST, suggesting the machine either hung or rebooted abnormally after the crash. I do not yet know whether the Ghostty crash caused the reboot/hang, was a symptom of an earlier GPU state problem, or was only temporally correlated.

After reboot, the GPU appeared healthy:

NVIDIA GeForce RTX 5090 D, 610.43.02, 32607 MiB total, 1926 MiB used, 35 C, 5% utilization

To Reproduce

I do not have a reliable reproducer yet. The affected userspace process was Omarchy's Ghostty-based screensaver:

ghostty --class=org.omarchy.screensaver --config-file=~/.local/share/omarchy/default/ghostty/screensaver --font-size=18 -e omarchy-screensaver

Bug Incidence

Once

nvidia-bug-report.log.gz

Not attached yet. I can generate and review nvidia-bug-report.log.gz if needed, but I did not want to upload a full machine report before checking it for local/private details. I understand the issue may be closed without this file.

More Info

Questions:

  • Is Failed to allocate NVKMS memory for GEM object expected to be recoverable, or can it leave the EGL/GTK rendering path in a state where clients crash inside libnvidia-eglcore.so?
  • Are there specific NVIDIA debug flags, module parameters, or additional logs that would be useful if this happens again?

derekszen avatar Jun 11 '26 08:06 derekszen

Related public reports I found after filing this issue. I did not find an exact all-fields match for this incident, but these look close enough to be useful context:

  • NVIDIA forum: 610.43.02 pageflip timeout / black screen / reboot on Arch/Wayland, with libnvidia-eglcore.so.610.43.02 in the stack: https://forums.developer.nvidia.com/t/610-43-02-pageflip-timed-out-black-screen-randomly-while-actively-used-reboot-required-to-fix-arch/372045
  • NVIDIA forum: driver 610, kernel 7.0.x, repeated NVKMS GEM allocation errors, display loss, libnvidia-eglcore.so.610.43.02, reboot needed: https://forums.developer.nvidia.com/t/rtx-3070-ti-610-430-02-gpu-mmu-tlb-failure-causes-display-loss-on-wayland/372569
  • NVIDIA forum: nvidia-open-dkms / Wayland / XWayland with exact Failed to allocate NVKMS memory for GEM object: https://forums.developer.nvidia.com/t/nvidia-open-dkms-wayland-xwayland-failed-to-allocate-nvkms-memory-for-gem-object/371922
  • NVIDIA/open-gpu-kernel-modules #1078: open-kernel report for VRAM/full allocation failures; comments include the exact NVKMS GEM error and sysmem fallback behavior: https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1078
  • NVIDIA/open-gpu-kernel-modules #1165: Wayland crash/deadlock after NVKMS allocation failures; mentions opening GPU-accelerated apps such as Ghostty/browser as a trigger in a stressed GPU state: https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1165
  • NVIDIA/egl-wayland #185: Ghostty coredumps plus exact NVKMS GEM allocation errors under GPU memory pressure, on a different driver/GPU: https://github.com/NVIDIA/egl-wayland/issues/185

The exact combination I observed remains: Omarchy screensaver launched via Ghostty, nvidia-open-dkms/nvidia-utils 610.43.02, Failed to allocate NVKMS memory for GEM object, then Ghostty SIGSEGV in libnvidia-eglcore.so.610.43.02.

derekszen avatar Jun 11 '26 08:06 derekszen

the nvidia bug report doesnt give any personal data aside from your pc username. im also having this issue specifically with proton only games in the game Wuthering Waves, already mentioned in your issue. I don't think nvidia will fix this anytime soon tbh.

Mvkweb avatar Jun 15 '26 14:06 Mvkweb

nvidia-bug-report.log.gz

I'll attach mine. I have the same error, it happens when I play a game and it reaches full VRAM. Niri/DMS on CachyOS.

Same game, same settings, doesn't happen in Pop OS with driver version 580

giu 29 20:50:24 gab-pc kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002b00] Failed to allocate NVKMS memory for GEM object

giu 29 20:50:24 gab-pc kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002b00] Failed to allocate NVKMS memory for GEM object 

thegabriele97 avatar Jun 29 '26 18:06 thegabriele97

I am having this issue as well, I hope someone finds a fix, it's unbearable, I use CachyOS KDE:

Errors: nvidia-drm "Failed to allocate NVKMS memory for GEM object"

or

nv_drm_gem_alloc_nvkms_memory_ioctl

So the error logs spam:

Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object
Jun 27 02:04:25 CachyLinux kernel: [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object

Goodborn avatar Jun 29 '26 19:06 Goodborn

Experiencing the same issue

 [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object

on driver version 610.43.03 and 595.84

BitSyndicate1 avatar Jul 29 '26 12:07 BitSyndicate1

I am facing the same issue

aptitude show nvidia-driver-610 Package: nvidia-driver-610
Version: 610.43.02-0ubuntu0.26.04.1

Kubuntu 26.04 - Wayland KDE desktop Chrome/Chromium with hardware acceleration enabled, in few minutes of using system, it goes black with the error

[drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object

silv3rm00n avatar Aug 02 '26 01:08 silv3rm00n

Second independent data point on this exact driver build (610.43.02), different GPU/distro/compositor/app, same failure signature — abort inside libnvidia-eglcore.so followed by the machine hanging hard enough that the journal stops persisting entries before any clean shutdown/reboot is logged.

GPU: NVIDIA GeForce RTX 5080 (Blackwell)
Driver: 610.43.02 (nvidia-open-dkms)
OS: Pop!_OS 24.04 LTS
Kernel: 7.1.5-76070105-generic
Compositor: cosmic-comp (COSMIC desktop)
Crashing process: cosmic-panel (COSMIC's panel/dock shell process)

Crashed at normal session login (no explicit monitor/display change triggered it). Retraced locally with gdb against the matching installed binary + apport core dump:

#0  __pthread_kill_implementation
#1  __pthread_kill_internal
#2  __GI___pthread_kill
#3  __GI_raise
#4  __GI_abort
#5  ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.610.43.02
#6  ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.610.43.02
#7  ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.610.43.02
#8  ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.610.43.02
#9  ?? () from /lib/x86_64-linux-gnu/libnvidia-eglcore.so.610.43.02
#10 ?? () from /lib/x86_64-linux-gnu/libnvidia-egl-wayland2.so.1
#11 ?? () from /lib/x86_64-linux-gnu/libnvidia-egl-wayland2.so.1
#12 ?? () from /lib/x86_64-linux-gnu/libEGL_nvidia.so.0
#13 ?? () from /lib/x86_64-linux-gnu/libEGL_nvidia.so.0

I specifically checked my kernel log for nv_drm_gem_alloc_nvkms_memory_ioctl / "Failed to allocate NVKMS memory for GEM object" (the error you found preceding the Ghostty crash) and did not see it — but journald on my system had already stopped persisting new entries a few seconds before my crash timestamps, so I can't treat that as a clean negative.

Since this now reproduces on two different Blackwell GPUs (5090 D, 5080), two different distros, and two different compositors (Hyprland, COSMIC/Smithay), it looks less like an app- or compositor-specific bug and more like a Blackwell-generation issue in the 610.x EGL/NVKMS stack. Full writeup with COSMIC-side details: pop-os/cosmic-panel#676.

rclinux avatar Aug 31 '26 10:08 rclinux

I'm seeing the same failure on 620.70.06 and 615.78.08 (nvidia-open-dkms).

Setup: Arch Linux, kernel 7.3.4, Hyprland (Wayland), RTX 3060 Ti 8 GB Symptoms:

  • [nvidia-drm] Failed to allocate NVKMS memory for GEM object spams the kernel log (about 15k lines)
  • Firefox's main process then segfaults in libnvidia-eglcore.so on the CanvasRenderer thread: null write at address 0xc, instruction mov dword [rsi+0xc], ecx
  • Firefox's crash reports show a flood of eglSetDamageRegion EGL_BAD_ACCESS errors beforehand. The Steam web helper also segfaults in libnvidia-glcore.so with Internal Vulkan error (-3) around the same time

For me, it only happens while a Proton game (Elite Dangerous, GE-Proton10-34) is running, after hours of play. It's not a graphically demanding game (1080p, borderless). Sometimes Firefox crash-loops until I close the game. This looks related to #1078 (allocation failures when VRAM is under pressure)

amot-dev avatar Nov 13 '26 19:11 amot-dev