17.10/wayland causing flashes in virtualbox

Bug #1724810 reported by Hadmut Danisch
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Medium
gnome-shell (Ubuntu)
Fix Released
Undecided
Unassigned
virtualbox (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Hi,

just as a quick response:

I've installed the new 17.10 Desktop for testing in a virtual machine (VirtualBox 5.1.20 running on MacOS), and while it installed smoothly and booted instantly, there's a problem with the graphics (probably related to wayland): Especially when moving the mouse or starting new programs the screen flashes white every few seconds or sometimes shows just a blank grey screen for about a second. Not suited for regular work.

But I have no clue which component precisely is causing that problem.

regards

Tags: bot-comment
Revision history for this message
Hadmut Danisch (hadmut) wrote :

Upgrading to the latest VirtualBox release 5.2.0 does not help.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1724810/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Hadmut Danisch (hadmut) wrote :

installing virtualbox-guest-dkms virtualbox-guest-utils and virtualbox-guest-x11 solves the problem, but then Xorg is running instead of wayland.

affects: ubuntu → virtualbox (Ubuntu)
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Please try to install virtualbox-guest-dkms virtualbox-guest-utils without the guest-x11 package, and report back

Changed in virtualbox (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Thayer (michael-thayer) wrote :

Are you talking about the guest screen or the host screen flashing? And are you sure that X11 is running after installing those packages? In a terminal in the guest run "ps -Af | grep X" and see if Xwayland is in the list.

Revision history for this message
Hadmut Danisch (hadmut) wrote :

I have removed just guest-x11, and then it runs wayland again, but the flashes and these off-seconds are back as well. The problem seems to be directly related to wayland.

I am not familiar with wayland yet, first contact. But when installing virtualbox-guest-x11 and rebooting, the process Xwayland is absent and Xorg is present.

And it's just the guest screen, just that particular window the VM is running in.

If I don't touch mouse and keyboard, it happens only occasionally, every 5 or 10 seconds, but once I move the mouse or start a new program opening it's own window, it happens more often and in most cases immediately.

It looks like some syncing problem between virtualbox and wayland.

Revision history for this message
Speedo (speedogoo) wrote :

Same here with the final release of 17.10 on macOS 10.13. Log out and choose Ubuntu on Xorg and no more flickering. More discussion on https://forums.virtualbox.org/viewtopic.php?f=8&t=85110.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Yep, we got the same issue, not sure what wayland is doing, but probably this is the issue (quoting upstream)

fun: Wayland crashes if you open and close a laptop lid too fast. This is apparently not a bug but a design error in the protocol.
And it has been causing me endless fun over the past week.
https://phabricator.freedesktop.org/T7722
And likely to play havoc with VirtualBox dynamic resizing:
https://bugzilla.gnome.org/show_bug.cgi?id=788908

Changed in virtualbox (Ubuntu):
importance: Undecided → Critical
status: Incomplete → Confirmed
Changed in wayland (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note that "Wayland" is not a display server. Wayland is just a protocol that apps can use to talk to any compatible display server.

The product you're using is "gnome-shell", and the offending component is possibly "mutter" if not "gnome-shell".

no longer affects: wayland (Ubuntu)
affects: wayland → ubuntu
affects: ubuntu → gnome-shell
Changed in gnome-shell:
importance: Unknown → Undecided
Changed in gnome-shell:
importance: Undecided → Medium
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell - 3.26.1-0ubuntu6

---------------
gnome-shell (3.26.1-0ubuntu6) bionic; urgency=medium

  * Upstream-proposed fix for lid close crash with wayland and virtualbox.
    (wayland is behaving badly with vbox dynamic resizing)
    (LP: #1724810)

 -- Gianfranco Costamagna <email address hidden> Tue, 31 Oct 2017 08:55:10 +0100

Changed in gnome-shell (Ubuntu):
status: New → Fix Released
Jeremy Bícha (jbicha)
no longer affects: mutter (Ubuntu)
no longer affects: virtualbox (Ubuntu Artful)
Changed in gnome-shell (Ubuntu Artful):
status: New → Triaged
Revision history for this message
Mikko Hurskainen (mikko-6) wrote :

Experienced this after fresh install of 17.10 with Virtualbox .30. Guest additions + Ubuntu sudo apt update && sudo apt upgrade removed the problem.

Revision history for this message
Hadmut Danisch (hadmut) wrote :

This does definitely not "remove the problem" here.

As said before, installing all guest additions makes the ubuntu guest run X11 instead of wayland, it then just looks as if the problem had gone. This might help in terms of usability, but not if you want to use and test wayland (e.g. to prepare for 18.04) .

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

This is fixed in bionic with 5.2.2-3 version (69989.patch).

I don't plan to fix artful, that will go EOL soon, and has an older vbox.
If somebody wants to test a fix, feel free to do it.

In the meanwhile I uploaded the fix in my ppa
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/virtualbox-ppa

Changed in virtualbox (Ubuntu):
status: Confirmed → Fix Released
Changed in gnome-shell:
status: Confirmed → Fix Released
Revision history for this message
Ben Mishkanian (fusiongate200) wrote :

Is it possible to implement the fix in the upstream gnome-shell? It seems Fedora's gnome-shell is also affected by this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1520005

no longer affects: gnome-shell (Ubuntu Artful)
Revision history for this message
DanglingPointer (ferncasado) wrote :

Just stating here that it currently affects 18.04 and 19.04 as guests on Vbox 6 on Macos (Mac Pro 2018).

Flickering white screen happens only with Wayland and not X.
X works fine.

Guest additions installed as well.
VBox extensions installed as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.