Bug 498458 - Kile stopped working with Wayland
Summary: Kile stopped working with Wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git-stable-Plasma/6.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-10 09:02 UTC by Iyán M. V.
Modified: 2025-01-12 10:19 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.