Bug 397825 - [Wayland] Message viewer displays only a black rectangle
Summary: [Wayland] Message viewer displays only a black rectangle
Status: RESOLVED DUPLICATE of bug 438345
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 5.9.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: wayland
: 414057 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-08-24 08:36 UTC by tromzy
Modified: 2022-09-17 15:26 UTC (History)
31 users (show)

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


Attachments
Black rectangle in message viewer (97.91 KB, image/png)
2018-08-24 08:36 UTC, tromzy
Details
Blacked-out rectangles in Kmail and systemsettings5 (28.04 KB, image/png)
2020-12-20 10:00 UTC, Jose Da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tromzy 2018-08-24 08:36:12 UTC
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.
Comment 1 Daniel Vrátil 2018-08-26 09:11:38 UTC
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.
Comment 2 tromzy 2018-08-26 10:02:45 UTC
No, the only way to restore the view is to quit Kmail (not minimize, really quit) and restart it.
Comment 3 tromzy 2018-09-19 07:36:11 UTC
Sometimes it's not a black rectangle but an emtpy space, showing what's behind the window.
Comment 4 Patrick Silva 2018-09-21 01:32:28 UTC
I can confirm on Arch Linux.
Kmail is unusable under Wayland.
Comment 5 Timo Kalliomäki 2018-10-24 10:41:31 UTC
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
Comment 6 John Scott 2019-01-06 15:59:34 UTC
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.
Comment 7 John Scott 2019-12-07 23:45:53 UTC
*** Bug 414057 has been marked as a duplicate of this bug. ***
Comment 8 Icy_Thought 2020-03-02 18:28:45 UTC
I can confirm that this issue is still making KMail's mail viewer unbearable in the most recent KDE Wayland update.
Comment 9 carlo 2020-03-31 20:34:20 UTC
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 ...
Comment 10 Sebastian Kügler 2020-07-27 09:22:57 UTC
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
Comment 11 tromzy 2020-10-16 16:57:46 UTC
This bug is fixed in Plasma 5.20.
Comment 12 Patrick Silva 2020-10-16 19:18:37 UTC
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
Comment 13 tromzy 2020-10-17 12:48:07 UTC
Well if I do a "xprop", the cursor does not change over the Kmail window, so I guess it means it's Wayland native ?
Comment 14 Patrick Silva 2020-10-17 13:01:48 UTC
(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. :(
Comment 15 tromzy 2020-10-17 13:18:36 UTC
To be entirely fair, the email viewer part of Kmail still glitches a little when opening Kmail (but stops after a few seconds).
Comment 16 Kyle Tirak 2020-10-18 15:00:54 UTC
(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.
Comment 17 Andreas Sturmlechner 2020-10-31 16:27:01 UTC
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
Comment 18 Baltasar 2020-11-25 17:39:12 UTC
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
Comment 19 Thiago Sueto 2020-12-13 05:54:24 UTC
I can't reproduce this on current master anymore.
Comment 20 Jose Da Silva 2020-12-20 10:00:15 UTC
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.
Comment 21 Robert Riemann 2020-12-20 16:22:10 UTC
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
Comment 22 Thiago Sueto 2020-12-21 04:00:09 UTC
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
Comment 23 Patrick Silva 2020-12-21 09:42:07 UTC
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
Comment 24 Jose Da Silva 2020-12-27 21:53:14 UTC
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
Comment 25 Gaël de Chalendar (aka Kleag) 2021-01-04 10:09:45 UTC
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
Comment 26 Christoph Feck 2021-01-09 16:56:28 UTC
Thanks for confirming that it got fixed with Qt 5.15.2.
Comment 27 Andreas Sturmlechner 2021-01-13 22:55:24 UTC
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
Comment 28 physkets 2021-01-14 02:17:17 UTC
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
Comment 29 Jernej Skrabec 2021-02-17 21:23:47 UTC
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
Comment 30 Gaël de Chalendar (aka Kleag) 2021-03-02 15:57:59 UTC
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)
Comment 31 Sefa Eyeoglu 2021-03-23 17:10:45 UTC
Looks like the upcoming 21.04 release fixes it for me. I am currently running Arch with testing/kde-unstable repos turned on
Comment 32 Jernej Skrabec 2021-04-25 08:46:03 UTC
It's fixed by 21.04 for me too.
Comment 33 Alois Wohlschlager 2021-04-27 08:37:58 UTC
I cannot reproduce the bug on 21.04 any more either.
Comment 34 Jernej Skrabec 2021-05-06 18:43:28 UTC
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.
Comment 35 Ian Snow 2021-05-18 20:22:21 UTC
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.
Comment 36 Aurélien 2021-05-21 18:05:52 UTC
I still encounter the problem with kf 5.81 and kmail 20.12.2
Comment 37 Ian Snow 2021-05-21 18:45:11 UTC
   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.
Comment 38 Aurélien 2021-05-23 08:54:16 UTC
@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 ;)
Comment 39 Andrius Štikonas 2021-06-05 20:55:29 UTC
(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.
Comment 40 Garry Williams 2021-07-08 13:54:02 UTC
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.
Comment 41 bugzy 2021-07-09 16:10:15 UTC

*** This bug has been marked as a duplicate of bug 438345 ***
Comment 42 Andrius Štikonas 2021-08-07 12:28:02 UTC
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).