Bug 509032

Summary: Emacs in fullscreen freezes when you run out of GPU memory
Product: [Plasma] kwin Reporter: Björn Lindqvist <bjourne>
Component: xwaylandAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.4.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Björn Lindqvist 2025-09-02 15:09:38 UTC
My old Nvidia GPU only have 2 GB of VRAM so I frequently run out of memory when I run DNN training on it:

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

When that happens and Emacs is in fullscreen mode Emacs becomes totally unresponsive. It does not happen when Emacs is not in fullscreen mode so I infer that the error is related to how kwin handles out of memory errors.
Comment 1 Björn Lindqvist 2025-09-02 15:14:54 UTC
Emacs in fullscreen does not freeze if I run kwin_x11 only kwin_wayland.
Comment 2 Zamundaaa 2025-09-03 11:55:58 UTC
KWin doesn't allocate buffers for apps, and the graphics driver has to handle out of memory situations (apps don't generally do that themselves).
Please report this at https://forums.developer.nvidia.com/c/gpu-graphics/linux