Created attachment 114571 [details] Black rectangle in message viewer On Wayland, if I restore minimized Kmail from systray to read a newly arrived email, the email viewer part of Kmail is all black (see attachment). Plasma 5.13.3, Kmail 5.9.0, KDE Frameworks 5.49, Intel modesetting drivers, Archlinux.
Does the view get restored when you select another email or switch folders? This sounds like a bug in Qt/QtWebEngine or KWin to me since we don't have any different code for X11 and Wayland.
No, the only way to restore the view is to quit Kmail (not minimize, really quit) and restart it.
Sometimes it's not a black rectangle but an emtpy space, showing what's behind the window.
I can confirm on Arch Linux. Kmail is unusable under Wayland.
Also present in 5.9.1 (18.08.1) under Debian Buster (Frameworks 5.49, Qt 5.11.2). Nothing is reported in wayland-session.org at the time of minimization or restoring, but I’ve included the whole log from Kmail start to restoring below. Any other logs that could be useful? Using Wayland-EGL KTranscript: Loaded property map: /usr/share/locale/xx/LC_SCRIPTS/ki18n5/general.pmapc KTranscript: Loaded module: /usr/share/locale/xx/LC_SCRIPTS/ki18n5/ki18n5.js No text-to-speech plug-ins were found. WebEngine compiled with X11 support, however qpa backend is not xcb. This may fail. [1024/130816.449340:WARNING:stack_trace_posix.cc(699)] Failed to open file: /home/username/#1910 (deleted) Error: File or directory does not exist "Interpolation {$[gen %1]} in {$[gen %1] &asetukset...} failed: Non-string return value: undefined" "Interpolation {$[gen %1]} in {$[gen %1] käyttö&ohj...} failed: Non-string return value: undefined" "Interpolation {$[elat %1]} in {&Tietoa $[yleisnimi_...} failed: Non-string return value: undefined" Using the 'xdg-shell-v6' shell integration Registering ":1.98/StatusNotifierItem" to system tray Registering ":1.98/StatusNotifierItem" QQuickItem::stackAfter: Cannot stack StatusNotifierItem_QMLTYPE_273(0x55a99d220fb0, parent=0x55a999504070, geometry=0,0 0x0) after StatusNotifierItem_QMLTYPE_273(0x55a999e5c160), which must be a sibling
I can reproduce on Debian Buster too. Maybe this is related to #402241 as the latter is Wayland-specific and causes more widespread trouble drawing the UI.
*** Bug 414057 has been marked as a duplicate of this bug. ***
I can confirm that this issue is still making KMail's mail viewer unbearable in the most recent KDE Wayland update.
Same problem on my PC Plasma 5.18.3 openSUSE Tumbleweed, AMD graphics card. The text of the message is invisible as in the image above. Kmail seems to be having some problems in Wayland ...
Can confirm. When starting kmail under Wayland, the messageviewer stays black (also after switching messages), not just after restoring the window. When I start kmail under XWayland as follows, it works: export DISPLAY=:1 export QT_QPA_PLATFORM=xcb kmail This is on KDE Neon User Edition KMail 20.04 Plasma 5.19.3 Frameworks 5.72 Qt 5.14.2 Intel system with Linux 5.6
This bug is fixed in Plasma 5.20.
it's still happening here. Are you sure that kmail is running natively on Wayland on your system? Operating System: Arch Linux KDE Plasma Version: 5.20.0 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1
Well if I do a "xprop", the cursor does not change over the Kmail window, so I guess it means it's Wayland native ?
(In reply to tromzy from comment #13) > Well if I do a "xprop", the cursor does not change over the Kmail window, so > I guess it means it's Wayland native ? yes. Weirdly kmail is still buggy on my Wayland session. :(
To be entirely fair, the email viewer part of Kmail still glitches a little when opening Kmail (but stops after a few seconds).
(In reply to tromzy from comment #15) > To be entirely fair, the email viewer part of Kmail still glitches a little > when opening Kmail (but stops after a few seconds). It doesn't seem to stop glitching on my system, unless I resize the window. However, KMail freezes altogether when I do that now.
No change at all here. Maybe Arch have changed the default Exec command for kmail to set the QT_QPA_PLATFORM workaround, but that's no fix. Operating System: Gentoo Linux KDE Plasma Version: 5.20.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 Kernel Version: 5.9.2-gentoo
Same problem on KDE Neon 20.04. The bakcground is the windows behind and not the message. Operating System: KDE neon 5.20 KDE Plasma Version: 5.20.3 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.1 Kernel Version: 5.4.0-54-generic OS Type: 64-bit Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 7.7 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 620 Thanks in advanced
I can't reproduce this on current master anymore.
Created attachment 134223 [details] Blacked-out rectangles in Kmail and systemsettings5 Recent problem seen (happened between 9/27 to 12/13 in Mageia8beta1 with latest updates). This problem does not appear to be Wayland related since it also shows up in XFCE and LDXE too. Reported as bug https://bugs.mageia.org/show_bug.cgi?id=27884 Problem appears same also on systemsettings5 - attachment added.
I am on opensuse Tumbleweed and when I use Plasma Wayland (native/full), I also get either a black window or the window behind kmail. I am on Kontact version 5.15.3 (20.08.3). Name : kmail Version : 20.08.3-1.1 Arch : x86_64 Vendor : openSUSE Installed Size : 6.0 MiB Installed : Yes (automatically) Status : up-to-date Source package : kmail-20.08.3-1.1.src Name : libwayland-server0/client0 Version : 1.18.0-1.4
Can someone else test if this bug has been fixed on master? This bug was probably the biggest blocker for using KMail on Wayland, and I can't reproduce this at all anymore. Operating System: openSUSE Tumbleweed 20201216 (Krypton) KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.9.14-1-default
I can't reproduce this bug on neon unstable. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2
Problem appears resolved - unable to reproduce it now (32bit) Kmail 5.16.0 (20.12.0) KDE Framework 5.76.0 QT 5.15.2 (was 5.15.1 earlier) xcb windowing system Appears to be Working now on KDE-plasma, XFCE, LXDE - Mageia8beta1-cauldron
It also works for me now on KDE Neon stable KDE Frameworks 5.77.0 Qt 5.15.2 (construit sur 5.15.2) Le système de fenêtres xcb
Thanks for confirming that it got fixed with Qt 5.15.2.
No change at all here. KMail Version 5.16.1 (20.12.1) Operating System: Gentoo KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.7-gentoo OS Type: 64-bit Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor Memory: 62.8 GiB of RAM Graphics Processor: AMD Radeon RX 5700
The problem still persists for me too. Although, it is more of a transparent box that the message-view becomes, rather than a black one, but it has the same effect nonetheless. But unlike before, it works fine for a while after I begin a plasma-wayland session, but eventually breaks to reveal this issue. There is also a lot of flickering of the message-view when I first open KMail. Operating System: Arch Linux KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.6-arch1-1 OS Type: 64-bit Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics Memory: 14.9 GiB of RAM Graphics Processor: AMD RENOIR
Still doesn't work on 5.21.0, either on PC (AMD based) or laptop (Intel based) Operating System: Arch Linux KDE Plasma Version: 5.21.0 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Kernel Version: 5.10.16-arch1-1 OS Type: 64-bit Processors: AMD Ryzen 7 3700X 8-Core Processor Memory: 31.4 GiB Graphics Processor: Radeon RX 580 Processors: Intel Core i5-3230M Memory: 7.6 GiB Graphics Processor: Mesa DRI Intel HD Graphics 4000
Contrary to what I wrote above, it does not work or at least not perfectly. Now, the basic workflow works (switching from mail to mail, from folder to folder and also when coming from another application. But it fails again when coming back from the Akregator panel in kontact. And also when waking up from sleep. In both cases, closing kontact and reopening it allows to use kmail normally again. KDE Frameworks 5.79.0 Qt 5.15.2 (construit sur 5.15.2) Le système de fenêtres wayland 5.16.2 (20.12.2)
Looks like the upcoming 21.04 release fixes it for me. I am currently running Arch with testing/kde-unstable repos turned on
It's fixed by 21.04 for me too.
I cannot reproduce the bug on 21.04 any more either.
With latest Arch issue returned. Apps still report version 5.17.0 (21.04.0), so maybe some other package has influence in this issue.
I was having this issue and it was putting me off using wayland. However Arch got frameworks version 5.82 on the 9th May and with that version of frameworks the issue has gone.
I still encounter the problem with kf 5.81 and kmail 20.12.2
Aurélien, for me as already stated its fixed in 5.82 you're one release behind On 21 May 2021 19:05, Aurélien <bugzilla_noreply@kde.org> wrote: https://bugs.kde.org/show_bug.cgi?id=397825 Aurélien <kde@ap2c.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kde@ap2c.org --- Comment #36 from Aurélien <kde@ap2c.org> --- I still encounter the problem with kf 5.81 and kmail 20.12.2 -- You are receiving this mail because: You are on the CC list for the bug.
@ian : I just upgraded to kf5 5.82.0 and the bug is still here! Note that KMail version is still 20.12.2 (Please remove my email address from your quote ;)
(In reply to Aurélien from comment #38) > @ian : > I just upgraded to kf5 5.82.0 and the bug is still here! > Note that KMail version is still 20.12.2 > > (Please remove my email address from your quote ;) Maybe we need both 5.82 and kmail 21.04? I too can still see black rectangle with KF 5.82.
I can confirm the bug on Fedora f34 with kmail2 5.16.2 (20.12.2) and kf5 5.83.0-1.fc34.x86_64. I reproduce the bug by switching to Calendar and then back to Mail in the left-hand side icons in the kontact application. The only way to restore the message pane is to completely quit (<CTRL>+q) and restart.
*** This bug has been marked as a duplicate of bug 438345 ***
I can't reproduce this after KMail got upgraded from 20.12.3 to 21.04.3. I'm on frameworks 5.84. (Just KF5 update while KMail stayed on older version did not help).