Repository navigation
[Bug] KWin crash (SIGSEGV) when snapping window to zone on specific monitors — KWin::InternalWindow::minSize() null dereference in kwin_effect_plasmazones.so #511
Closed
KHalkjaer
started this conversation in
Bug Reports
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Snapping a window to a zone crashes KWin entirely, closing all open applications. The crash is display-specific and unrelated to primary/secondary monitor status:
Display | Result
This holds regardless of which monitor is set as primary, which monitor the window was dragged from, or the rotation of the Samsung (portrait and landscape both crash).
Environment
Display setup:
Crash log:
Backtrace:
The segfault is at address
0x8— a null pointer dereference at offset 8, consistent with calling a method on a nullInternalWindow*. The same crash offset inlibQt6Gui.so.6.11.1+0x23a894reproduces identically across every crash.The issue began with the May 20 update bumping PlasmaZones 2.8.7 → 3.0.4, KWin 6.6.4 → 6.6.5, and Qt 6.11.0 → 6.11.1. Downgrading to 2.8.7 is not viable as its KWin effect plugin does not load under KWin 6.6.5 (ABI mismatch).
The PlasmaZones KWin effect appears to successfully initialize its
InternalWindow(zone overlay) for DP-6 (Dell) but not for DP-5 (Samsung) or eDP-1 (laptop). When a snap is committed on an output with an uninitialisedInternalWindow, callingminSize()on the null pointer kills KWin. This may relate to output iteration order or a per-output initialisation condition introduced in the 3.0.x rewrite.plasmazones-report-20260522-141457.tar.gz
Expected Behavior
Snapping a window to a zone on any connected monitor should snap the window to that zone without crashing KWin.
Steps to Reproduce
Connect two external monitors (confirmed with Dell U2520D + Samsung S24E650 via USB-C dock)
Run KWin 6.6.5 on Wayland with PlasmaZones 3.0.6
Drag any window and snap it to a zone on the Samsung monitor
KWin crashes immediately upon release
Snapping on the Dell monitor in the same setup works without issue.
PlasmaZones Version
3.0.7
Display Server
Wayland
Desktop Environment
6.6.5
Distribution
CachyOS
Support Report
Checklist
All reactions