Bug 523287 - kwin_wayland crashes (SEGV) in DrmOutput::testPresentation on NVIDIA RTX 4070 (atomic commit null-deref) — at session start and on fullscreen
Summary: kwin_wayland crashes (SEGV) in DrmOutput::testPresentation on NVIDIA RTX 407...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (other bugs)
Version First Reported In: 6.6.5
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2026-07-20 09:26 UTC by h1st0ry3D
Modified: 2026-07-23 03:28 UTC (History)
3 users (show)

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


Attachments
bug-kwin-journal (2.27 KB, text/plain)
2026-07-20 09:26 UTC, h1st0ry3D
Details
bug-nvidia (19.92 KB, text/plain)
2026-07-20 09:27 UTC, h1st0ry3D
Details
kcrash metadata (240 bytes, text/plain)
2026-07-20 09:29 UTC, h1st0ry3D
Details
trace (1.26 KB, text/plain)
2026-07-20 09:34 UTC, h1st0ry3D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description h1st0ry3D 2026-07-20 09:26:50 UTC
Created attachment 194459 [details]
bug-kwin-journal

kwin_wayland crashes with SIGSEGV inside
 KWin::DrmOutput::testPresentation
   (atomic test-commit null dereference) on an NVIDIA GeForce RTX 4070.
   Triggers: (1) at Plasma Wayland session startup (initial composite), and
   (2) when a fullscreen OpenGL/Vulkan app (Godot 4.7.1) goes fullscreen —
   the client then loses its display ("X connection to :0 broken").

   ENVIRONMENT
   - OS: Ubuntu 26.04 LTS (Kubuntu), kernel 7.0.0-28-generic
   - KWin: 6.6.5  (package 4:6.6.5-0ubuntu0.1)
   - Plasma: 6.6.5   KDE Frameworks: 6.24.0   Qt: 6.10.2
   - kwin_wayland build-id: c59b9504d168ac869b5482cabd80553bbe764cc6
   - GPU: NVIDIA GeForce RTX 4070 (AD104), single monitor DP-1 @ 1920x1080
   - Driver: 610.43.02, OPEN kernel modules (license: Dual MIT/GPL)
   - libdrm 2.4.131, mesa 26.0.3
   - Kernel cmdline: nvidia-drm.modeset=1
   - SDDM greeter runs Wayland (kwin_wayland --drm)

   REPRODUCIBLE WITH BOTH proprietary AND open NVIDIA 610.43.02 modules
   (identical backtrace) -> not a specific module regression.

   STEPS TO REPRODUCE
   1. Boot into Plasma (Wayland) on RTX 4070.
   2. kwin_wayland crashes during startup (before/at first composite).
      OR
   2'. Log in, launch Godot 4.7.1 (Vulkan), press fullscreen.
   3. kwin_wayland crashes; XWayland client loses display.

   ACTUAL RESULTS
   kwin_wayland SIGSEGV; session restarts or drops to display loss.

   EXPECTED RESULTS
   Stable Wayland session; fullscreen games should not crash kwin.

   BACKTRACE (symbolicated)
   Thread 1 "RenderLoop::frameRequested":
    #12
 KWin::DrmOutput::testPresentation(std::shared_ptr<KWin::OutputFrame>
 const&)  (libkwin.so.6 + 0x53a75f)
    #13 KWin::Compositor::composite(KWin::RenderLoop*)
 (libkwin.so.6 + 0x20a608)
    #15 KWin::RenderLoop::frameRequested(KWin::RenderLoop*)
 (libkwin.so.6 + 0x239e6a)
   SEGV occurs inside the atomic commit path:
    #6..#11 libkwin.so.6 (+0x50ff23 / 0x51586d / 0x543d41 / 0x545db4 /
 0x546099 / 0x5466c9)
      (DrmPipeline::present / atomic test commit)

   WORKAROUND THAT WORKS
   Logging into the Plasma (X11) session is stable (kwin_x11 unaffected).

   NOTES
   - KWIN_DRM_NO_AMS=1 -> blackscreen after login (legacy mode broken on this GPU).
   - KWIN_DRM_USE_MODIFIERS=0 -> blackscreen after login.
   - Attachments: journalctl -b (kwin/drm errors), nvidia-smi -q, drkonqi
 metadata.
Comment 1 h1st0ry3D 2026-07-20 09:27:21 UTC
Created attachment 194460 [details]
bug-nvidia
Comment 2 h1st0ry3D 2026-07-20 09:29:32 UTC
Created attachment 194461 [details]
kcrash metadata
Comment 3 h1st0ry3D 2026-07-20 09:34:16 UTC
Created attachment 194462 [details]
trace
Comment 4 TraceyC 2026-07-20 13:54:30 UTC
Thank you for the bug report. Based on the backtrace this looks like the same crash as in bug 520842 so I'll merge this report in with the other one. This should be fixed in Plasma 6.7.1.

*** This bug has been marked as a duplicate of bug 520842 ***
Comment 5 Zamundaaa 2026-07-20 21:46:11 UTC
Git commit 4805e7ff868474966b1978701ef2c8b6092677c7 by Xaver Hugl.
Committed on 20/07/2026 at 21:17.
Pushed by zamundaaa into branch 'Plasma/6.6'.

backends/drm: disable color pipelines by default

They're not really practically useful in 6.6, and this KWin version doesn't
handle all the pipelines newer driver versions expose.

M  +1    -1    src/backends/drm/drm_gpu.cpp

https://invent.kde.org/plasma/kwin/-/commit/4805e7ff868474966b1978701ef2c8b6092677c7