FS#50120 - [virtualbox] Mouse pointer shade corrupt under a Windows 7 guest

Attached to Project: Community Packages
Opened by Marcin Mielniczuk (marmistrz) - Thursday, 21 July 2016, 18:51 GMT
Last edited by Christian Hesse (eworm) - Sunday, 29 January 2017, 19:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 21
Private No

Details

Description: I have a Windows 7 virtual machine (used an old .vdi). After launching the virtual machine, hen the mouse pointer shade is corrupt (see the black shade on the image: http://imgur.com/a/ZaJjH )

This does not happen with the official binary distribution: http://download.virtualbox.org/virtualbox/5.1.0/VirtualBox-5.1.0-108711-Linux_amd64.run - hence reporting it here.

Additional info:
* running virtualbox 5.1.0-1, linux-lts 4.4.15-1
* the virtual machine log is attached
   VBox.log (75.8 KiB)
This task depends upon

Closed by  Christian Hesse (eworm)
Sunday, 29 January 2017, 19:02 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Not our bug, fixed with Qt 5.8.
Comment by Dennis Kadioglu (dkadioglu) - Friday, 22 July 2016, 05:41 GMT
It's the same for me, except that I see this under a Windows 10 Guest. Also the busy cursor (that rotating circle) is not blue anymore but white.

Additional info:
* runnging Virtualbox 5.1.0-1, Linux 4.6.4-1, xf86-video-intel 1:2.99.917+676+g26f8ab5-1, xorg-server 1.18.3-3
Comment by Zulan (Zulan) - Tuesday, 02 August 2016, 09:01 GMT
Same issue here with Windows 7 guest. Seems that it forces the mouse pointer to be black & white as well as removing transparency.

Note that you can disable mouse pointer shadows in the Windows7 control panel, which mitigates this somehow.
Comment by Marcin Mielniczuk (marmistrz) - Tuesday, 02 August 2016, 09:16 GMT
I'm experiencing a similar problem with the SailfishOS emulator (Linux 32-bit). The cursor is black-and-white too, the shades are quirky.

Persists on 5.1.2
Comment by Sébastien Luttringer (seblu) - Monday, 22 August 2016, 22:47 GMT
seems to be fixed in 5.1.4
Comment by Steven Benner (stevenbenner) - Tuesday, 23 August 2016, 03:03 GMT
The monochrome cursor problem still happens for me with 5.1.4. I have updated to 5.1.4 drivers in the guest.

Win7 guest: http://imgur.com/a/gLIJk
Comment by cyberxndr (cyberxndr) - Tuesday, 23 August 2016, 08:05 GMT
Still persist in 5.1.4-1 regardless of a guest driver. Host is 4.7.1-1-ARCH. Guests are: 4.7.1-1-ARCH, win7, winxp.
Comment by Markus Beh (mbeh) - Tuesday, 23 August 2016, 11:44 GMT
Hi, I have the same problem running arch linux in a virtualbox on arch linux.
Updated both installations on 23 August 2018 running kernel 4.7.1 and
virtualbox 5.1.4
Comment by Dennis Kadioglu (dkadioglu) - Tuesday, 23 August 2016, 11:50 GMT
The monochrome cursor problem persists for me in 5.1.4, too. I also have updated guest additions in Windows 10.
Comment by Marcin Mielniczuk (marmistrz) - Tuesday, 23 August 2016, 13:54 GMT
Confirming, persists in 5.1.4, both SailfishOS Emulator and Win7 guest even after updating guest additions.
Comment by Ralf Mardorf (Ralf) - Wednesday, 24 August 2016, 18:18 GMT
Hi,

the busy cursor of my Windows 7 guest was broken for 5.1.0, too and it's also broken for 5.1.4. Since I provide libvpx 3 and 4, I downgraded to 5.0.24, resp. most likely will downgrade again.

[rocketmouse@archlinux ~]$ pacman -Q virtualbox{,-guest-iso,-host-dkms,-ext-oracle}
virtualbox 5.1.4-1
virtualbox-guest-iso 5.1.4-1
virtualbox-host-dkms 5.1.4-1
virtualbox-ext-oracle 5.1.4-1
[rocketmouse@archlinux ~]$ grep "virtualbox (5" /var/log/pacman.log | grep downgrade
[2016-07-20 18:19] [ALPM] downgraded virtualbox (5.1.0-1 -> 5.0.24-1)
[rocketmouse@archlinux ~]$ ls -Ggh /lib/libvpx*
lrwxrwxrwx 1 15 Aug 1 19:41 /lib/libvpx.so -> libvpx.so.4.0.0
lrwxrwxrwx 1 15 Jan 16 2016 /lib/libvpx.so.3 -> libvpx.so.3.0.0
lrwxrwxrwx 1 15 Jan 16 2016 /lib/libvpx.so.3.0 -> libvpx.so.3.0.0
-rwxr-xr-x 1 3.4M Jan 16 2016 /lib/libvpx.so.3.0.0
lrwxrwxrwx 1 15 Aug 1 19:41 /lib/libvpx.so.4 -> libvpx.so.4.0.0
lrwxrwxrwx 1 15 Aug 1 19:41 /lib/libvpx.so.4.0 -> libvpx.so.4.0.0
-rwxr-xr-x 1 3.3M Aug 1 19:41 /lib/libvpx.so.4.0.0
[rocketmouse@archlinux ~]$ uname -rm
4.7.0-1-ARCH x86_64
[rocketmouse@archlinux ~]$ less /mnt/winos7/vmw7/Logs/VBox.log

I might have missed something, but it seems that there's nothing related in the log file and I still had no time to launch the VM by command line.

The packages are from community, excepted of virtualbox-ext-oracle, which was build from AUR.

Edit:

[rocketmouse@archlinux ~]$ grep Driver /etc/X11/xorg.conf | grep -v "#"
Driver "radeon"

X is up to date.

Regards,
Ralf
Comment by Leonidas Arvanitis (larvan) - Friday, 26 August 2016, 17:26 GMT
I can confirm it, too.

Win 7 64bit guest, additions up to date, Nvidia GTX670 with binary drivers on host.
Comment by Sven Karsten Greiner (SammysHP) - Thursday, 01 September 2016, 18:56 GMT
Just disable the mouse integration. I know, this is not a solution, but it explains the reason: If the mouse integration is enabled, the pointer will be rendered by the host (thus the response is much faster). This does not work if the pointer uses an alpha channel. In this case it will be filled white and has a strange shadow. The problem existed already many years ago and I wonder why it wasn't fixed or appeared again.
Comment by Marcin Mielniczuk (marmistrz) - Thursday, 01 September 2016, 19:02 GMT
But this is specific to the Arch Linux version. Probably some of the patches is to blame
Comment by Ralf Mardorf (Ralf) - Thursday, 01 September 2016, 19:08 GMT
JFTR for me the mouse pointer is not broken, perhaps it's related to the chosen white mouse pointer with black outlines, but without shadow for my Windows 7 guest. The busy cursor is broken, I downgraded the virtualbox related packages.
Comment by Leonidas Arvanitis (larvan) - Thursday, 01 September 2016, 19:12 GMT
It's not a specific theme but all cursors with alpha. Even if you use a plain old theme there are custom cursors in 2rd some applications that are affected.
Comment by Vlad (splitfire) - Tuesday, 20 September 2016, 15:57 GMT
I found workaround (maybe be not the first :D):
Disable cursor shadowing in GUEST OS (obviously?)

So I have just sharp mouse cursor in Windows 7 x64.
Comment by Vlad (splitfire) - Tuesday, 20 September 2016, 16:49 GMT
Also notice that cursor is well displayed in fresh install without Virtualbox Guest Additions.
Comment by Sven Karsten Greiner (SammysHP) - Wednesday, 21 September 2016, 08:02 GMT
@Vlad

As explained the reason is transparency of the pointer. Without shadow most pointers do not have transparency and are rendered correctly, but some have transparency also without shadow.
Without guest additions there is no mouse integration and thus the pointer is rendered by the guest.
Comment by Vlad (splitfire) - Wednesday, 21 September 2016, 15:03 GMT
@Sven

Do you know about any openned issue on official virtualbox tracker? Or is it arch specific?
Comment by Marcin Mielniczuk (marmistrz) - Wednesday, 21 September 2016, 15:03 GMT
This is Arch-specific. This doesn't happen when using the upstream binaries. Or at least, it didn't as of 5.1.0
Comment by Christian Hesse (eworm) - Wednesday, 21 September 2016, 15:33 GMT
This is the upstream report:
https://www.virtualbox.org/ticket/15829
Comment by Marcin Mielniczuk (marmistrz) - Wednesday, 21 September 2016, 15:35 GMT
They'll say they don't support Arch-specific patches, just as when I asked on the forums: https://forums.virtualbox.org/viewtopic.php?f=2&t=78750

If we don't know where the issue is, we can just binsearch on the patches.
Comment by hamelg (hamelg) - Friday, 18 November 2016, 20:47 GMT
A quick workaround is to install virtualbox-bin from aur
Comment by Ralf Mardorf (Ralf) - Friday, 18 November 2016, 21:17 GMT
If you would read all comments, you could notice that we are already aware that the "Oracle branded non-OSE version" doesn't suffer from this issue. I'm using it, too. Don't forget to remove vboxhost from /etc/mkinitcpio.conf.
Comment by Vlad (splitfire) - Tuesday, 22 November 2016, 15:56 GMT
Any progress in 5.1.10?
Comment by Sven Karsten Greiner (SammysHP) - Thursday, 08 December 2016, 14:49 GMT
Another idea: It might not be related to virtualbox at all! It it possible that this is a Qt issue?

The same problem appears with QMapShack. The author says:

> Imho this is a bug in Arch Linux. The cursor *.png has a semi-transparent shadow. For what ever reason you system is not able to handle an alpha channel other than 0 or 255.

https://bitbucket.org/maproom/qmapshack/issues/136/tms-maps-are-rendered-a-bit-fuzzy

So maybe we should focus on Qt and related packages. Can someone check if virtualbox-bin ships a static version of Qt?
Comment by Christian Hesse (eworm) - Sunday, 29 January 2017, 11:56 GMT
Looks like this is fixed with Qt 5.8. Who can confirm?
Comment by Elvis Angelaccio (elvisangelaccio) - Sunday, 29 January 2017, 12:10 GMT
Yep, I'm still on the 5.8 RC and seems fixed.

Loading...