Bug 245701 - emulators/virtualbox-ose: remote DISPLAY: graphics refresh issue if DISPLAY is set to <hostname>:0 (i.e., TCP socket connection)
Summary: emulators/virtualbox-ose: remote DISPLAY: graphics refresh issue if DISPLAY i...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2020-04-17 15:03 UTC by Martin Birgmeier
Modified: 2025-04-30 17:55 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
example for distorted virtualbox main window (252.65 KB, image/png)
2020-04-17 15:03 UTC, Martin Birgmeier
no flags Details
distortions when running a Windows XP client (380.60 KB, image/jpeg)
2020-04-17 15:22 UTC, Martin Birgmeier
no flags Details
Screenshot of current behavior with transparent background (402.55 KB, image/png)
2025-01-12 09:45 UTC, Martin Birgmeier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2020-04-17 15:03:20 UTC
Created attachment 213498 [details]
example for distorted virtualbox main window

Scenario:
- running virtualbox on FreeBSD 12.1-RELEASE-p2 amd64 host
- nvidia quadro 1000m graphics card
- latest ports
- virtualbox-ose has been updated to ports r531736 (switch to clang for compiling)

Result:
- The Virtualbox main window has severe graphics artifacts - it is not displayed correctly (see attachment - the right part of the window is entirely unrelated to the rest; there can also be scrolling artifacts)

Scenario (continued):
- Starting a client running Windows 10 or Linux

Result (continued):
- The Virtualbox client windows have severe graphics artifacts - they are not displayed correctly
- Updates to the window contents by the respective clients are distorted/partial/misplaced
Comment 1 Martin Birgmeier 2020-04-17 15:22:36 UTC
Created attachment 213499 [details]
distortions when running a Windows XP client
Comment 2 Martin Birgmeier 2020-04-27 12:13:02 UTC
Minimizing and re-displaying the windows removes the distortions... up to the next drawing. So maybe this is instead caused by something else (compositing)?

I tried going back to virtualbox-ose-5.2.34_2, to no avail (exactly the same refresh issues).

Any ideas are appreciated...

-- Martin
Comment 3 Martin Birgmeier 2020-08-02 11:38:18 UTC
Very interesting news:

The graphics refresh problem happens if DISPLAY is set to <hostname>:0 (i.e., TCP socket connection).

The graphics refresh problem does not happen if DISPLAY is set to :0 (i.e., local UNIX socket).

So there seems to be an issue only when using a remote DISPLAY.

The question is, which library handles this in VirtualBox?

-- Martin
Comment 4 Martin Birgmeier 2025-01-12 09:45:01 UTC
Created attachment 256640 [details]
Screenshot of current behavior with transparent background

Not having used virtualbox on this machine for a long time I thought I could probably close this with "overcome by events". So I started up a VM. The astonishing result is that now I get a console with white text on a perfectly transparent background (I can move the window around and the background keeps shining through properly; however, the preview does not change).

Starting X in this VM (using scfb) keeps the transparency, and starting "oclock -jewel red -geometry 400x400" gives an oclock with white background, transparent hands, and a jewel which is sometimes red depending on the transparent background color.

It's sort of pretty but not very usable...

Screenshot attached.

-- Martin
Comment 5 Martin Birgmeier 2025-01-12 09:52:15 UTC
Some more info:
- It is fine when running virtualbox on a local display.
- Host os is stable/14
- Ports latest

-- Martin
Comment 6 Martin Birgmeier 2025-04-30 17:55:29 UTC
Does not occur anymore on stable/14 with virtualbox-ose-6.1.50