Bug 462745

Summary: Preview blank with Wayland on NVIDIA hardware
Product: [Applications] ghostwriter Reporter: Ryan H. <kde>
Component: generalAssignee: megan.conkle
Status: CLOSED UPSTREAM    
Severity: major CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Log from ghostwriter. The error messages are repeating for as long as the program is active.

Description Ryan H. 2022-12-07 16:07:41 UTC
Created attachment 154393 [details]
Log from ghostwriter. The error messages are repeating for as long as the program is active.

SUMMARY
When using ghostwriter under a Wayland session with an NVIDIA graphics card, the preview pane is blank. In the console, ghostwriter complains about setting up an EGL context. This can be seen in the attached logs. 

STEPS TO REPRODUCE
1. Open KDE with Wayland or open Weston
2. Open terminal
3. Unset XWayland display `unset DISPLAY`
3. Run `ghostwriter`
  a. Add `-platform wayland` flag if using Weston
4. Type anything into the editor

OBSERVED RESULT
Preview pane is empty.

EXPECTED RESULT
Typed content will appear inside a preview pane.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0 
Qt Version:  5.15.7

ADDITIONAL INFORMATION
NVIDIA Driver Version: 525.60.11
ghostwriter Version: 2.1.6
Comment 1 megan.conkle 2022-12-12 18:16:23 UTC
This is an upstream issue with Qt's QtWebEngine.  Please report it at bugs.qt.io.  Thanks!