Bug 466124 - kmail preview pane empty on wayland nvidia
Summary: kmail preview pane empty on wayland nvidia
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.22.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-20 09:16 UTC by Sylvain
Modified: 2024-03-10 09:11 UTC (History)
9 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 Sylvain 2023-02-20 09:16:14 UTC
SUMMARY
Under wayland with nvidia, when opening kontact (or kmail alone), the preview pane for email does not show the email contents and lots of error show in the terminal. This does not happen on x11. Opening preferences, changing the layout back and forth fixed it.

STEPS TO REPRODUCE
1. Launch a wayland session
2. Open Kontact
3. Kmail mail preview pane is empty
4. Open preferences, change in layout the settings of preview pane ("do not show" -> apply -> "show below" -> apply)
5. Preview pane is visible.

OBSERVED RESULT
Preview pane is empty until settings are changed back and forth and terminal show the following output:

```
[21307:21355:0220/180424.309479:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[21307:21355:0220/180424.309492:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[21307:21355:0220/180424.309498:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[21307:21355:0220/180424.309506:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
[21307:21355:0220/180434.684707:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[21307:21355:0220/180434.684727:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[21307:21355:0220/180434.684733:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[21307:21355:0220/180434.684744:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
org.kde.pim.akonadicore: Received response with a different tag!
```

EXPECTED RESULT
Preview pane should work

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.11-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700 CPU @ 3.60GHz
Memory: 47.0 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 8920
System Version: 1.0.10

ADDITIONAL INFORMATION

nividia driver installed from rpm-fusion repo.
| NVIDIA-SMI 525.89.02    Driver Version: 525.89.02    CUDA Version: 12.0     |
Comment 1 Honest Joe 2023-04-28 09:00:52 UTC
I've been getting this intermittently too since a fresh install of Fedora 38 with Wayland & Nvidia. Doesn't matter if I'm loading the HTML in the message or not. 

Same steps to resolve each time too, disable the message reading pane and then re-add it. 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.13-300.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce GTX 1660 SUPER
Kmail: 5.22.3
Comment 2 Hanii Puppy 2023-09-02 23:31:15 UTC
I'm having the same, also under Wayland with Nvidia (a 1070, using the proprietary drivers), also running Fedora 38.
Comment 3 younker.dl@gmail.com 2023-10-01 23:50:38 UTC
I have this same issue on Gentoo with the latest plasma, kde-frameworks and kmail. Although I can go to settings to close the preview then open it, but when I restart kmail. the preview panel is empty again.
Comment 4 Patrizio Bekerle 2024-03-01 19:13:17 UTC
Same issue on NixOS Unstable with the new plasma6 support on NVIDIA Wayland.
Comment 5 Reinhard Biegel 2024-03-10 09:11:15 UTC
Also here on Gentoo

KDE Plasma: 5.27.10
KDE Frameworks: 5.115.0
Qt: 5.15.12
Kernel: 6.7.8-gentoo
Graphics Platform: Wayland
Graphics Processor: NVIDIA Corporation GM107GLM [Quadro M1000M]
Graphics Driver: nvidia 525.147.05
Kmail/Kontact: 5.24.5