Bug 509032 - Emacs in fullscreen freezes when you run out of GPU memory
Summary: Emacs in fullscreen freezes when you run out of GPU memory
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (other bugs)
Version First Reported In: 6.4.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-02 15:09 UTC by Björn Lindqvist
Modified: 2025-09-03 11:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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