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.
Emacs in fullscreen does not freeze if I run kwin_x11 only kwin_wayland.
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