Bug 498458

Summary: Kile stopped working with Wayland
Product: [Plasma] kwin Reporter: Iyán M. V. <me>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: arojas, kde, kde, nicolas.fella
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-132727
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Iyán M. V. 2025-01-10 09:02:47 UTC
SUMMARY
After updating to Frameworks 6.10.0, Plasma 6.3 Beta and Qt 6.9.0, Kile does not open in a Wayland session.

I get the following error:

QWaylandShmBuffer: mmap failed (Invalid argument)
QPainter::begin: Paint device returned engine == 0, type: 3
error marshalling arguments for add_buffer (signature oi): null value passed for arg 0
Error marshalling request: Invalid argument
The Wayland connection experienced a fatal error: Invalid argument

A workaround is to force to use X11 with QT_QPA_PLATFORM=xcb.

Kile was working just fine using Wayland with Plasma 6.2.5, Frameworks 6.9.0 and Qt 6.8.1.

STEPS TO REPRODUCE
1. Try to open Kile

OBSERVED RESULT
It crashes

EXPECTED RESULT
It works like before update

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.90
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Kernel Version: 6.12.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X3D 12-Core Processor
Memory: 93.5 GiB of RAM
Graphics Processor 1: AMD Radeon RX 7900 XT
Graphics Processor 2: AMD Radeon Graphics
Manufacturer: ASUS
Comment 1 Iyán M. V. 2025-01-10 13:48:43 UTC
It's probably a Qt 6.9 bug. I get the exact same error when trying to run qbittorrent.
Comment 2 Nicolas Fella 2025-01-10 14:04:49 UTC
yes, most likely related to Qt 6.9
Comment 3 Antonio Rojas 2025-01-10 18:23:32 UTC
(In reply to Iyán Méndez Veiga from comment #1)
> It's probably a Qt 6.9 bug. I get the exact same error when trying to run
> qbittorrent.

No, this worked just fine on Plasma 6.2.5 + Qt 6.9
Comment 5 Nicolas Fella 2025-01-10 20:14:56 UTC
It needs Plasma 6.3 _and_ Qt 6.9 since older Qt doesn't implement xdg_toplevel_icon
Comment 6 Nicolas Fella 2025-01-12 02:48:13 UTC
Fixed with https://codereview.qt-project.org/c/qt/qtwayland/+/616438
Comment 7 Iyán M. V. 2025-01-12 10:19:08 UTC
Thanks Nicolas! I can confirm that the patch fixes the issue for me.