Graphic corruption when using dual monitors

Discussions related to using VirtualBox on Linux hosts.
Post Reply
quidj
Posts: 3
Joined: 24. Apr 2019, 05:38

Graphic corruption when using dual monitors

Post by quidj »

Hello,

I'm on arch linux running 6.0.6-2, XFCE, nvidia drivers, and dual 4k monitors.. When I use multiple monitors on my host machine in non-mirrored mode, I get some kind of graphic corruption where buttons overlap on top of each other and there are multiple windows kind of inside each other. The following links show the issue:

When the display is set to mirrored mode or running only one monitor it is fine.

I also booted up a Ubuntu 19.04 gnome host and the same thing occurs.

This has been happening since the 6 release.

Thanks!

Screenshot_2019-04-23_16-07-20.png
Screenshot_2019-04-23_16-07-20.png (113.42 KiB) Viewed 10333 times
Screenshot_2019-04-23_16-07-52.png
Screenshot_2019-04-23_16-07-52.png (56.07 KiB) Viewed 10333 times
Last edited by quidj on 13. Jul 2019, 23:27, edited 2 times in total.
FMaus
Posts: 4
Joined: 7. May 2019, 14:31

Re: Graphic corruption when using dual monitors

Post by FMaus »

I'm getting this same problem however for me it only started happening when I upgraed from Ubuntu 18.10 to 19.04
Virtualbox was working fine before the upgrade but has this same problem after the upgrade.

As part of the upgrade the nvidia drivers were also updated.

I also have multiple (4) monitors. Two are 384x21604 and the other two are 1920x1200

An additional problem that only occurs on teh 1920x1200 monitors is that the font size is tiny compared to the larger monitors.

Appreciate any suggestions.
quidj
Posts: 3
Joined: 24. Apr 2019, 05:38

Re: Graphic corruption when using dual monitors

Post by quidj »

Thanks for posting your issue too FMaus.

Since you have different resolutions (as I do), it gave me the idea to mess around with that to see if there was any effect.

I have one monitor 3840x2160 and one 2160x3840 (one horizontal, one vertical). When I change the resolutions to the same, the problem goes away.

This isn't a solution for me, but just more data if anyone can offer assistance with this issue.
FMaus
Posts: 4
Joined: 7. May 2019, 14:31

Re: Graphic corruption when using dual monitors

Post by FMaus »

Quidj,
good pickup. I was also able to confirm this with my monitors. I also have my 1920x1200 monitors in portrait mode, but the key issues is that the application doesn't handle the situation where the monitors have different resolutions.

I had the same monitor setup before the upgrade to Ubuntu 19.04 (from 18.10) but switched to the nvidia-driver-418 which comes as part of the base installation.

What video drivers are you using?
quidj
Posts: 3
Joined: 24. Apr 2019, 05:38

Re: Graphic corruption when using dual monitors

Post by quidj »

I'm on nvidia 418.56-14 on my desktop (where I first noticed the problem).

However, to verify whether nvidia could be the common denominator, I just hooked in an external monitor to my laptop, setup different resolutions, and was able to observe the same problem. My laptop is an X1 Carbon 5th Gen, running on an Intel 620.

I think it has to do with the user interface changes to Virtualbox 6, which is when I first noticed the issue. Did Virtualbox upgrade to 6 when going from 18.10 to 19.04?
FMaus
Posts: 4
Joined: 7. May 2019, 14:31

Re: Graphic corruption when using dual monitors

Post by FMaus »

I migrated to virtualbox 6 while I was still on Ubuntu 18.10 and didn't have problems. However I was running nvidia 410.93 at the time.
I changed to nvidia 418.56 also with the upgrade to Ubuntu 19.04

I haven't tried downgrading to nvidia 410.93 to see if that will fix it yet.
Yashila
Posts: 6
Joined: 7. Feb 2019, 10:31

Re: Graphic corruption when using dual monitors

Post by Yashila »

Hello, since I use vb 6.xx I have the same problem. Before the 4 k monitor was'nt regocnized but now the menu is only on the 1.monitor ... working on the 2 nd and 3rd is impossible.
Salut
Patricia
stephenboston
Posts: 15
Joined: 27. May 2019, 02:38

Re: Graphic corruption when using dual monitors

Post by stephenboston »

I have Ubuntu 19.04 on two machines. Each configuration is a laptop connected to a 1920x1080 Dell monitor with the laptop display disabled by the OS GUI session display settings.

This problem occurs only on the machine with nvidia graphics -- Asus NX501VW with a native default resolution of 3840 x 2160. The other laptop is an ancient VAIO with 1366x768.

It happens no matter what driver I use: either of the nvidia drivers or the nouveau.
bambam82
Posts: 7
Joined: 8. Jun 2010, 22:07
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows, Ubuntu
Contact:

Re: Graphic corruption when using dual monitors

Post by bambam82 »

I have the same issue on Linux Mint 19.1 (based on Ubuntu 18.04). Fresh install with both 6.0.8 and 6.0.10 versions of Virtualbox.
I didn't had the issue while on Ubuntu 18.04.
Using DELL XPS 13 with a 4k screen. Setting the external and laptop display size to 1920x1080 doesn't resolve the issue for me.

Under "General" setting the User interface scaling to "Normal" doesn't 'fix' the situation either.
erwin9
Posts: 11
Joined: 12. Jun 2016, 18:12

Re: Graphic corruption when using dual monitors

Post by erwin9 »

Hi there, did you ever resolve the problem ?
I also get it, dual monitor, XFCE .. only with VirtualBox 6.

I seem to have solved it by going to Settings -> Appearance -> Fonts and forcing DPI to 96 (which is my resolution on the screen where it happened) ..
ullgren
Posts: 2
Joined: 18. Jul 2020, 21:33

Re: Graphic corruption when using dual monitors

Post by ullgren »

Same problem for me on a ThinkPad P1 Gen 2 running Ubuntu 20.04, running VirtualBox 6.1.12.

I get the same problem regardless if I use the Oracle provided deb packages or the Virtualbox from the Ubuntu distribution.

Using the "All distributions" script works better but there is still some corruption. But it is still usable.
This makes me think there is an issue with some dependencies, perhaps the QT libraries that come with Ubuntu compared with the once included in the "All distributions" differs.

Is there any official bug report for this problem in the Virtualbox issue tracker ?
petras
Posts: 1
Joined: 5. Oct 2021, 14:11

Re: Graphic corruption when using dual monitors

Post by petras »

There is a workaround for this issue, just set

export QT_SCREEN_SCALE_FACTORS="1;1"

in your shell before starting VirtualBox.
ullgren
Posts: 2
Joined: 18. Jul 2020, 21:33

Re: Graphic corruption when using dual monitors

Post by ullgren »

After using the workaround proposed I only get this issue when changing resolution, adding or removing a monitor.

That is if I start VirtualBox when the laptop is not connected to external monitor it looks fine. Attaching the external monitor will still result in UI corruption.
Post Reply