OpenGL broken with guest additions

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

OpenGL broken with guest additions

Post by ofer4 »

I've seen similar issues posted in various other forums, but I have yet to find a satisfactory solution.

Host: Redhat 6.3
Guest: Ubuntu 12.04
Virtualbox: 4.1.8
Latest guest additions installed


In short, using 3d acceleration does not work. I've installed guest additions and enabled 3d acceleration in the virtualbox options. When running a program that uses 3d acceleration, however, I get the following error:

OpenGL Warning: No pincher, please call crStateSetCurrentPointers() in your SPU
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 14 (X_GetGeometry)
Resource id: 0x400000c


Accordingly, the display for this program is pretty wonky.

If it helps, disabling 3d acceleration removes the error, although the acceleration functionality is then not available.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL broken with guest additions

Post by Perryg »

Where did you install the guest additions? Are you sure they actually installed?
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

Hi, Perryg... Yes, they are definitely installed. Resizing the guest desktop to fit the window, for example, only works with the additions installed. I have no idea where they are installed. I just used Devices --> Install Guest Additions and used defaults. (In Ubuntu, a disk image was mounted, and the installation process occurred.)

Thanks -
Ryan
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL broken with guest additions

Post by Perryg »

What program is it that you are having issues with?
Post the guests log file (as an attachment)
See Online Users Manual for the location of the file.
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

The program is called IQmol, which is a GUI for some scientific software. My log file is attached.

Thanks!
Attachments
VBox.log
(65.8 KiB) Downloaded 30 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL broken with guest additions

Post by Perryg »

Your guest additions are newer than the version of VirtualBox. This usually will cause errors. Update to the latest release 4.1.18 and the GAs to the same version.

Code: Select all

VirtualBox 4.1.8 r75467 linux.amd64 (Dec 19 2011 16:27:50) release log
00:00:10.204 Guest Additions information report: Version 4.1.12 r77245 '4.1.12_Ubuntu'
Save at least one core for the host. so don't use 4 cores if the all you have is 4

Code: Select all

00:00:00.816   NumCPUs         <integer> = 0x0000000000000004 (4)
00:00:00.820 Full Name:          Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Update your hosts video card drivers. 295 seems to work a lot better.

Code: Select all

00:00:12.286 OpenGL Info: Render SPU: GL_VERSION:  4.1.0 NVIDIA 280.13
00:02:13.513 OpenGL Warning: Cleared gl error 0x502 on context creation
00:02:13.588 OpenGL Warning: Trying to switch contexts when the attribute stacks weren't empty.  Currently, this is not supported.
00:02:13.677 OpenGL Warning: Trying to switch contexts when the attribute stacks weren't empty.  Currently, this is not supported.
Make sure that you have selected 3D in the guests settings -> display.
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

Ok... I updated virtualbox, installed the new extension pack, and installed the matching guest additions. Still no luck. The new log is attached.

My machine has 8 cores, so 4 assigned to the guest should be okay.

I'll work on updating the video drivers next.

Thanks -
Ryan
Attachments
VBox.log
(67.62 KiB) Downloaded 15 times
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

I've now upgraded my video drivers to 295.59, and it's behaving the same.

Other thoughts?

Thanks -
Ryan
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL broken with guest additions

Post by Perryg »

Not off the top of my head. You can create a ticket at bugtracker and ask the DEVs if they are going to support this program in some way or if there is anything that you can do.
BE SURE to tell the everything including the latest log file.
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

Thanks, Perryg. I will submit a ticket and see what happens.

During some googling of the log's error messages, I stumbled across a promising issue at viewtopic.php?f=3&t=46120 . But alas, I checked my bios, and the Intel/Card switching feature was already disabled.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: OpenGL broken with guest additions

Post by Perryg »

Yeah I looked at that but IIRC this is not a feature that Linux understands and would be enabled full by default. Of course I could be mistaken. See what the DEVs have to say.
ofer4
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: OpenGL broken with guest additions

Post by ofer4 »

For record's sake, here's the ticket: https://www.virtualbox.org/ticket/10693
Post Reply