Bug 1758724

Summary: VirtualBox is broken in wayland
Product: [Fedora] Fedora Reporter: Basil Eric Rabi <ericbasil.rabi>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: fmuellner, gnome-sig, jadahl, nadav, otaylor, philip.wyett, renault, rfrank, sergio
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-05 15:29:39 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:
Attachments:
Description Flags
backtrace using gdb none

Description Basil Eric Rabi 2019-10-05 02:30:20 UTC
Created attachment 1622646 [details]
backtrace using gdb

Description of problem:
In f30, VirtualBox runs fine in wayland session but now broken in f31.

How reproducible:
Always

Steps to Reproduce:
1. GDK_BACKEND=X11 virtualbox

Actual results:
Qt WARNING: QSocketNotifier: Can only be used with threads started with QThread

(VirtualBox:9669): Gtk-WARNING **: 09:59:44.498: cannot open display: :0

Expected results:
VirtualBox runs.

Comment 1 Jonas Ådahl 2019-10-05 15:29:39 UTC
This is a problem with VirtualBox, not gnome-shell. VirtualBox uses Qt, but has hard coded dependencies on X11 API, without forcing the Qt's backend to be the one it depends on.

A work aronud is: QT_QPA_PLATFORM=xcb virtualbox

VirtualBox is not a Fedora package, but an rpmfusion package. Seems to be a bug open about it already: https://bugzilla.rpmfusion.org/show_bug.cgi?id=5383

Marking as CANTFIX as it's not something gnome-shell can fix, and I cannot move it anywhere on this bug tracker.

Comment 2 Sergio Basto 2019-10-06 23:59:03 UTC
(In reply to Jonas Ådahl from comment #1)

But why we don't have this problem on F30 and F29 ?

Comment 3 Jonas Ådahl 2019-10-07 09:53:17 UTC
Because Qt defaults to the Wayland backend in F31, while in F29 and F30 it always used X11, meaning on always going via Xwayland.

Comment 4 Nadav Har'El 2019-12-09 09:09:40 UTC
*** Bug 1780888 has been marked as a duplicate of this bug. ***