round circles are displayed oval

Discussions about using Windows guests in VirtualBox.
Post Reply
Gerhard Sachs
Posts: 5
Joined: 3. Feb 2014, 18:59

round circles are displayed oval

Post by Gerhard Sachs »

Using 4.3.6r91406, Host Windows7Pro 64Bit, Guest Windows7Pro 32Bit.
When developing Windows applications with Delphi XE4 and TeeChart, a display problem occurs.
Both images shows the output of the same exe running on the same PC, one native and one in virtual box.
The rectangle has the same size and aspect ratio in both cases, but the circle is round as it should be on native windows, but oval under Virtual Box.

Sounds to be a minor problem, but prevents me from using virtual box.

Regards
Gerhard Sachs
Attachments
Screenshort on native windows7
Screenshort on native windows7
T1700_VirtualBox_Win7.JPG (83.2 KiB) Viewed 3391 times
Screenshot on Virtual box
Screenshot on Virtual box
T1700_Direct_Win7.JPG (86.45 KiB) Viewed 3391 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: round circles are displayed oval

Post by mpack »

I doubt that this problem has anything to do with VirtualBox.

If you have a problem with specific PC software you should seek help from whomever is responsible for supporting that software.
Gerhard Sachs
Posts: 5
Joined: 3. Feb 2014, 18:59

Re: round circles are displayed oval

Post by Gerhard Sachs »

When the exact same EXE on the exact same Hardware shows correct graphics on native Windows and incorrect graphics on Virtual Box then something must be wrong on Virtual Box.
I understand you if you declare this Problem as minor and rather exotic and not worth to put work on it.
But please dont try to blame something else, this IS a virtual box Problem.

Gerhard Sachs
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: round circles are displayed oval

Post by mpack »

If you can demonstrate that any other software has a similar problem, I might believe that the common factor is VirtualBox. Before that - not.

Even in the examples you post it's clear that the text is not transformed in the same way, nor the box with the "1 " inside it, nor the square at the center of the circle/ellipse... so what kind of bug would do that?
Gerhard Sachs
Posts: 5
Joined: 3. Feb 2014, 18:59

Re: round circles are displayed oval

Post by Gerhard Sachs »

The example was created using TeeChart on Delphi XE4, which uses the Win32 Api.
It asked them for more Information about the way rectangles and circles are drawn.

Currently I have no other application that shows the same behaviour.
But I know for sure that the Problem does not occur on VMWare.
I will make more tests with Virtual PC and native XP and trying to find another application with the same Problem.

Gerhard Sachs
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: round circles are displayed oval

Post by BillG »

Looks like a simple screen resolution problem to me. What are the host and guest screen settings? Are they both the same height to width ratio?
Bill
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: round circles are displayed oval

Post by socratis »

Gerhard Sachs wrote:the circle is round as it should be on native windows, but oval under Virtual Box.
The pictures that you posted state otherwise. The one labelled "Screenshort on native windows7" shows two ovals, while the one labelled "Screenshot on Virtual box" shows a circle (left) and an oval (right). Mislabeling?

Second, could you post the .exe so that we can try it on other VM/host combinations?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Gerhard Sachs
Posts: 5
Joined: 3. Feb 2014, 18:59

Re: round circles are displayed oval

Post by Gerhard Sachs »

Today I made a test with MS Virtual PC which had the same Problem as Virtual Box.
To repeat it, the Exe runs on the PCs host OS and Displays properly.
The same Exe on the same PC in Virtual Box or Virtual PC does not.
This makes me believe that the Problem can not be on the Exe.
I suspect that the Software library used by the demo uses a special and seldom used way to draw its circles.

Both host and guest OS has the same Screen Resolution of 1920x1200.
If aspect Ratio would be the Problem, then the rectangles would be different, but the look the same.

And yes, the Labels on the screenshots are exchanged, sorry for the confusion.

Here is a download link to the Exe, it was too big to upload it here (14MB).
Click to download: http://www.mtspp.de/outdisk/20140204084 ... ndex.shtml

Gerhard Sachs
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: round circles are displayed oval

Post by socratis »

  • Host: OSX 10.6.8, VBox 4.3.6
  • Guest: Windows XP, 7, 8
  • Resolutions: 1024x768, 1280x960, 1280x1024, 1920x1200 (full screen)
  • Result: Circles in all, EXCEPT Windows XP which does behave erratically depending on the guest resolution. It only works as expected when the guest resolution is at 4:3 ratios.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: round circles are displayed oval

Post by mpack »

@Socrates: is this your finding when using the OPs application, or something else?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: round circles are displayed oval

Post by socratis »

The OPs application.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Gerhard Sachs
Posts: 5
Joined: 3. Feb 2014, 18:59

Re: round circles are displayed oval

Post by Gerhard Sachs »

Here is another screenshot from may Desktop.
I ran Virtual Box and VMware on my host at the same time.
Then I startet my demo app (a little bit reduced so they all fit on one screen) on the host and on both VMs.
The left app runs on the host, the middle app in Virtual Box and the right one in VMWare, the result should be self explanatory.

I will now try to move the whole Project to VMWare.
If it works you will not here from me again in this case.

Gerhard Sachs
Attachments
3x_W7_VBox_VMWare.JPG
3x_W7_VBox_VMWare.JPG (81.18 KiB) Viewed 3328 times
Post Reply