Repository navigation
Description
NVIDIA Open GPU Kernel Modules Version
595.71.05
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.
Operating System and Version
Linux 7.0.9-1-Cachyos
Kernel Release
Linux Mvk 7.0.9-1-cachyos #1 SMP PREEMPT_DYNAMIC Mon, 18 May 2026 21:32:51 +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.
- I am running on a stable kernel release.
Hardware: GPU
GPU 0: NVIDIA GeForce GTX 1650 (UUID: GPU-712129c1-1ac3-db2e-3e17-c6807d96a0fa)
Describe the bug
When playing proton games, specifically the game (Wuthering Waves via Proton/DXVK), hitting the 4GB VRAM limit causes catastrophic Virtual Address Space fragmentation in the open kernel module on GM107 architecture.
Instead of gracefully crashing the game with an Out-Of-Memory error, the NVIDIA driver hits severe mapping assertion failures (nvAssertFailedNoLog). This instantly starves and kills the Wayland compositor (kwin_wayland).
Because the NVIDIA kernel module enters a deadlocked panic state, the Linux kernel gets permanently stuck waiting for the GPU during the shutdown sequence. The system fails to power off (screen goes black, but PC fans/lights remain on infinitely) until forced via a hard reset.
This happens even on lowest graphics when using less or half the VRAM. So i can't really find a workaround for this.
To Reproduce
- Use a 4GB GPU (e.g., GTX 1650) on a Wayland session (KDE Plasma).
- Launch a VRAM-heavy game (Wuthering Waves via Proton/DXVK).
- Play until VRAM hits maximum capacity (4GB) and fragments the VA space.
- Open a GPU accelerated app e.g ghostty or a browser, try to fullscreen, notice freezing as the Wayland context is dropped by kwin_wayland.
- Attempt to issue a system shutdown. The OS will close user space apps successfully, but the PC will hang infinitely waiting for the NVIDIA driver to release the hardware.
Note: While this is highly reproducible on a 4GB card like the GTX 1650, this appears to be a driver Virtual Address (VA) space mapping/fragmentation issue rather than strictly physical VRAM exhaustion, as it can sometimes trigger even when physical VRAM is not fully saturated.
I cannot try with other GPU's but this is definetely happening on 1650 and likely 1660.
Please also track the logs in your terminal while the game is running, to see it live: sudo journalctl -kf | grep -iE "nvidia|nvkms|fail|alloc"
Or if already closed the game you may check with journalctl -b 0 | grep -iE "nvidia|nvkms|failed|timeout|stop job"
Bug Incidence
Always
nvidia-bug-report.log.gz
More Info
Here is the exact chain of events during the crash from journalctl.
-
GPU runs out of space for display objects:
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 -
Wayland compositor gets starved and drops context:
kwin_wayland[1057]: QRhiGles2: Failed to make context current. Expect bad things to happen.
kwin_wayland[1057]: Failed to create RHI (backend 2) -
NVIDIA driver hits severe VA space fragmentation and assertion fails (deadlock):
kernel: NVRM: intermapRegisterDmaMapping: Failed to insert new mapping node for range 0xDFB7320000-0xDFB732FFFF!
kernel: NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:4631
kernel: NVRM: GPU0 nvAssertFailedNoLog: Assertion failed: NV_OK == status @ gpu_vaspace.c:2070
kernel: NVRM: nvCheckFailedNoLog: Check failed: 0 == (pMapNode->gpuMask & gpuMask) @ gpu_vaspace.c:4548
kernel: NVRM: nvCheckOkFailedNoLog: Check failed: Invalid argument to call [NV_ERR_INVALID_ARGUMENT] (0x0000001F) returned from _gvaspaceMappingInsert(pGVAS, pGpu, pVASBlock, vaLo, vaHi, flags) @ gpu_vaspace.c:2026
kernel: NVRM: nvCheckFailedNoLog: Check failed: NV_OK == status @ virt_mem_allocator_gm107.c:2552
This loop continues endlessly untill i reboot my pc, if i try to shutdown, it completely breaks the system shutdown and never actually shuts down. It's left on hang.
These are the only relevant logs i have found to this issue of shutdown, but even if it is not from this, it is a real bug where i can't use certain apps while on Wuthering Waves and Proton together.
Activity
Mahesh-Bardoliya commentedon Sep 18, 2026
Hello, I am currently facing the same issue. Could you please let me know if you have found any temporary workaround to handle this? Thank you.
silasmue commentedon Sep 22, 2026
I observed a simular issue while benchmarking Project Leandro , when benchmarking Shadow-of-the-Tombraider in the virtual machine, the game took all the VRAM and I received the error
NV_ERR_NO_MEMORYon an allocation by NVKMS for the scanout buffer.In my guest-driver for the paravirtualized NVIDIA vGPU I resolved that by implementing a ballon that prevents userspace application from getting all of the VRAM and reserving a small chunk for NVKMS (modeset/drm driver in the guest). The ballon holds real VIDMEM allocations. The reserve is calculated by holding space for 5x scanout buffer and 4x cursor buffer, because under Wayland I also saw issues with the cursor when VRAM ran into a limit.
So how this works: The ballon in the
virtio_nvrmmodule holds a small reserve of VRAM using multiple realVIDMEMallocations, when NVKMS tries to allocate an display buffer, when there is no memory left, the ballon sees theNV_ERR_NO_MEMORY, frees enough of itsVIDMEMallocations and retries the original allocation request with its parameters. If the retry succeeds, NVKMS never receives the firstNV_ERR_NO_MEMORYand the display path can continue. If it still receivesNV_ERR_NO_MEMORY, the ballon can release further chunks and retry until either the allocation succeeds or there is no reserve left. When the rescued kernel-allocation is freed, the ballon is refilled. To prevent the userspace from receiving the freed chuck of VRAM while retrying the kernel-allocation, the ballon uses a reader/writer gate: normal userspaceVIDMEMallocations hold the read side, while freeing reserve and retrying the NVKMS allocation happens while holding the write side.This may still fail when NVKMS allocates buffers larger than the available reserve, or when there simply is not enough VRAM even after the complete ballon was released, but in my not extensive testing I never discovered such a case without researching the kernel-modules too much. It also does not help when
NV_ERR_NO_MEMORYis caused by something other than actual VRAM pressure, for example GPU VA-space fragmentation or BAR/mapping exhaustion.Goal here is as long as a display is connected (or in my case GRID-Display) display-critical
VIDMEMallocations by drm/modeset need priority to prevent freezing, the output.This approach should not fundamentally depend on the paravirtualization, because my approach multiplexes the NVIDIA Resource Manager (RM), mirrors guest process sessions in a vhost-user-device backend and forwards the real RM operations to the host NVIDIA driver, virtualized with cloud-hypervisor. I did not test this on bare-metal, but suspect the same issue, and an ballon-like implementation could help. So the RM that sends the
NV_ERR_NO_MEMORYis the real host-RM that runs the real NVIDIA driver, not an emulated memory manager in Leandro.In Leandro the automatic ballon is currently enabled with the display support rather than dynamically following the actual connector state. For a normal driver implementation this is only necessary when display resources need to be protected and could be even further optimized to be only active when a display/head is active and to calculate the reserve from the active display modes.
Disclaimer. Don't give me too much credit the project is human-in-the-loop-vibecoded and the ballon idea is from GPT-Astra if I remember correctly. The project is purely experimental and part of a Masters thesis.
silasmue commentedon Sep 22, 2026
FYI, you find the relevant code here:
guest-module/virtio_nvrm/nvrm_vram.c— calculates the reserve size, scanout-sized chunks, cursor reserve, and decides which chunk to release.guest-module/virtio_nvrm/virtio_nvrm.c:6283-6348— handles the actual recovery path: on an eligible NVKMSNV_ERR_NO_MEMORY, it releases balloon VIDMEM chunks and retries the original RM allocation before returning to NVKMS.When the rescued display allocation is later freed, the balloon is scheduled to refill in
virtio_nvrm.c:6351-6370AI-Generated text, use this field/line-numbers for reference to the mechanisms described in the previouse comment
using the proprietary kernel module because of this memory corruption…