Bug 2019367

Summary: Ghostwriter fails to open
Product: [Fedora] Fedora Reporter: felipehw
Component: qt5-qtwebengineAssignee: Rex Dieter <rdieter>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: kde-sig, kevin, rdieter, vitaly
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-12 13:09:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description felipehw 2021-11-02 12:13:13 UTC
Description of problem:

Ghostwriter (RPM version) fails to open in my Fedora 35 machine.

Version-Release number of selected component (if applicable):

```
rpm -qi ghostwriter
Name        : ghostwriter
Version     : 2.0.2
Release     : 2.fc35
Architecture: x86_64
Install Date: seg 01 nov 2021 22:52:38
```

How reproducible:

Just try to execute `ghostwriter` from terminal.

Actual results:

```
> ghostwriter
QSocketNotifier: Can only be used with threads started with QThread
Using pandoc version 2.14.0.3
Using multimarkdown version 6.6.0
Using cmark version 0.29.0
[26191:26234:1102/090228.427294:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[26191:26234:1102/090228.427325:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[26191:26234:1102/090228.427345:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[26191:26234:1102/090228.427356:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[26191:26234:1102/090228.427398:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT
[26191:26234:1102/090228.427461:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[26191:26234:1102/090228.427470:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[26191:26234:1102/090228.427478:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
The Wayland connection experienced a fatal error: Protocol error
>
```

Expected results: Open successfully `ghostwriter`

**Notes**: 

- I'm using an hybrid graphics setup (Intel + NVidia) on Wayland at Fedora 35. I don't know if this affects this bug. I just saw this bug: <https://github.com/NVIDIA/egl-wayland/issues/41>

Comment 1 Vitaly 2021-11-02 16:44:44 UTC
It looks like another GNOME 41 issue, related to Wayland+Qt. Please try "Gnome on X11" session.

Comment 2 felipehw 2021-11-12 12:42:45 UTC
I tried with "Gnome on X11" session and it works.
By now, I'm using Wayland session and running Ghostwriter RPM from a Fedora 34 container (Toolbox).

Comment 3 Vitaly 2021-11-12 13:04:51 UTC
This issue is related to Qt5 QtWebEngine crashes on Wayland+GNOME.

Comment 4 Kevin Kofler 2021-11-12 13:09:35 UTC
According to your link, this is a bug in the proprietary NVidia driver.