OpenGL broken with guest additions

Discussions related to using VirtualBox on Linux hosts.

OpenGL broken with guest additions

Postby ofer4 » 21. Jun 2012, 20:20

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.
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

Postby Perryg » 21. Jun 2012, 20:37

Where did you install the guest additions? Are you sure they actually installed?
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: OpenGL broken with guest additions

Postby ofer4 » 21. Jun 2012, 20:54

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
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

Postby Perryg » 21. Jun 2012, 21:02

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.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: OpenGL broken with guest additions

Postby ofer4 » 22. Jun 2012, 01:39

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 19 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

Postby Perryg » 22. Jun 2012, 01:55

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   Expand viewCollapse view
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   Expand viewCollapse view
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   Expand viewCollapse view
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.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: OpenGL broken with guest additions

Postby ofer4 » 22. Jun 2012, 02:23

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 7 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

Postby ofer4 » 22. Jun 2012, 02:53

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

Other thoughts?

Thanks -
Ryan
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

Postby Perryg » 22. Jun 2012, 02:55

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.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: OpenGL broken with guest additions

Postby ofer4 » 22. Jun 2012, 03:10

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 https://forums.virtualbox.org/viewtopic.php?f=3&t=46120 . But alas, I checked my bios, and the Intel/Card switching feature was already disabled.
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

Postby Perryg » 22. Jun 2012, 03:19

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.
Perryg
Site Moderator
 
Posts: 25964
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX - Other

Re: OpenGL broken with guest additions

Postby ofer4 » 22. Jun 2012, 03:46

For record's sake, here's the ticket: https://www.virtualbox.org/ticket/10693
ofer4
 
Posts: 10
Joined: 16. Sep 2011, 20:42
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows 7 Pro


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 21 guests