Bug 505655

Summary: KMail consistently crashes when typing a recipient address
Product: [Applications] kmail2 Reporter: Bennett Piater <bennett>
Component: contact completionAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: crash CC: dvratil, montel
Priority: NOR    
Version First Reported In: 6.4.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bennett Piater 2025-06-16 08:59:38 UTC
SUMMARY
KMail consistently crashes when typing a recipient address.

STEPS TO REPRODUCE
1. Start a new Mail
2. Type in TO: field

OBSERVED RESULT
KMail instantly crashes.
qt.qpa.wayland.textinput: virtual void QtWaylandClient::QWaylandTextInputv3::disableSurface(wl_surface*) Try to disable surface 0x62e32b0fb590 with focusing surface 0x62e32a255420
zxdg_exporter_v2#75: error 0: surface must be an xdg_toplevel

The textinput line is logged on focus, the error line appears to be the cause of the crash.
This is reproducible on both of my Arch Linux systems.

In case it's relevant: note that I am running Sway, not Plasma.

SOFTWARE/OS VERSIONS
Arch Linux
WM: Sway
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Comment 1 Bennett Piater 2025-10-19 16:53:32 UTC
So far, I have confirmed that it occurs:

* if and only if I type 3+ characters maching an existing contact. If I type random characters, no error.
* only on wayland. If I force kmail to use xwayland using QT_QPA_PLATFORM="xcb", it does not crash.

This makes me suspect that it's an issue in the display of the contact completion on wayland.