glmark2 and general opengl issues

Discussions about using Linux guests in VirtualBox.
Post Reply
ctrauma
Posts: 5
Joined: 25. Mar 2015, 20:57

glmark2 and general opengl issues

Post by ctrauma »

I have been running a Ubuntu 14.04 trusty guest in a Windows 7 host for months with no issues. Recently I ran into a limitation while running Blender where I needed access to glsl because of an export plugin that was trying to call gpu.export_shader() from the Blender python API and was rolling over when it hit GPU_glsl_support() because the function informed blender it was not supported. Looking into it further I realized I was not using 3D acceleration. I switched it on for the VM and gave it some more video memory.

When I fired up blender it was flickering on and off, parts of the UI were missing, and it frequently just locked up forcing me to kill the process. Searching around the web I found a bunch of discussions here as well as in the Ubuntu forums and in the Blender forums.

Solutions were:

make sure 3D acceleration is enabled
have the latest VirtualBox installed and matching guest additions
make sure that glxinfo lists Chromium/Humper as renderer

There was also a host of test releases mentioned here and there that are now old or unavailable and I'm currently running VirtualBox VM 4.3.27 r99022 win.amd64 (Mar 17 2015 19:25:57) which is pretty new. There were lots of posts from people reporting the OpenGL Warnings about strings not found in the mesa table as well as the missing dri extension, but from what I understand from the answers to those posts is that it is normal behavior because of how VirtualBox hooks the OpenGL calls and these warnings are just noise.

So I have everything up to date, everything enabled, and seemingly all settings correct. Not sure what to try next.. Any suggestions?

Below I've put all the data I could gather and attached both the VBox.log and the output from systeminfo from the host..

Host:

Code: Select all

OS Name:                   Microsoft Windows 7 Professional 
OS Version:                6.1.7601 Service Pack 1 Build 7601
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Workstation
OS Build Type:             Multiprocessor Free
Guest:

Code: Select all

% uname -a                                                                                                                                                                                             
Linux GhostWheel 3.13.0-48-lowlatency #80-Ubuntu SMP PREEMPT Thu Mar 12 11:33:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

% lsb_release -a                                                                                                                                                                                        
No LSB modules are available.
Distributor ID:     Ubuntu
Description:     Ubuntu 14.04.2 LTS
Release:     14.04
Codename:     trusty
running glmark2 dies with:

Code: Select all

libGL error: pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL Warning: glXChooseVisual: ignoring attribute 0x22
OpenGL Warning: glXChooseFBConfig returning NULL, due to attrib=0x2, next=0x1
Error: glXChooseFBConfig() failed
Error: Error: Could not get a valid XVisualInfo!
Error: Error: Couldn't create X Window!
Error: main: Could not initialize canvas
grepping glxinfo returns:

Code: Select all

OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 4.30 NVIDIA via Cg compiler
Display is set up as follows:
Display is set up as follows:
Display is set up as follows:
vb_issue01.jpg (37.44 KiB) Viewed 5736 times
Running blender from the prompt dumps out:

Code: Select all

libGL error: pci id for fd 8: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
OpenGL Warning: crPixelCopy3D:  simply crMemcpy'ing from srcPtr to dstPtr
OpenGL Warning: No pincher, please call crStateSetCurrentPointers() in your SPU
found bundled python: /mnt/build/blender-2.74-22e2225-linux-glibc211-x86_64/2.74/python
Blender UI is missing a few panels that tend to wink on and off:
Blender UI is missing a few panels that tend to wink on and off:
Blender UI is missing a few panels that tend to wink on and off:
vb_issue02.jpg (117.31 KiB) Viewed 5736 times
The preferences screen in Blender is a complete train wreck, not sure what is going on here..
The preferences screen in Blender is a complete train wreck, not sure what is going on here..
The preferences screen in Blender is a complete train wreck, not sure what is going on here..
vb_issue03.jpg (55.13 KiB) Viewed 5736 times
ctrauma
Posts: 5
Joined: 25. Mar 2015, 20:57

Re: glmark2 and general opengl issues

Post by ctrauma »

Used up my attachment allotment on the last post so here are the logs mentioned in the post above...
VBox.log
virtualbox log
(103.35 KiB) Downloaded 17 times
sys.txt
host system information
(13.81 KiB) Downloaded 18 times
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: glmark2 and general opengl issues

Post by loukingjr »

Just curious, why are you not running the Windows version of Blender? It's bound to run better natively than in a virtual machine.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ctrauma
Posts: 5
Joined: 25. Mar 2015, 20:57

Re: glmark2 and general opengl issues

Post by ctrauma »

Good question, I do actually run Blender w/Ubuntu native on my desktop without a problem, unfortunately my laptop has to run Windows 7 as it's main OS, so I have to suffer with windows for a lot of my work, and run Ubuntu in a VM to actually get things done.

I really only used Blender in this post as an an example because it gave me the most visual example of problems, every other opengl application I run in virtualbox has similar issues, so I just chose Blender as the poster child. I wanted to give more examples than just the glmark2 output.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: glmark2 and general opengl issues

Post by loukingjr »

Blender apparently renders correctly with 3D acceleration disabled. Screen is Blender 2.69 but the results are the same.
Attachments
Untitled.jpg
Untitled.jpg (121.1 KiB) Viewed 5718 times
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ctrauma
Posts: 5
Joined: 25. Mar 2015, 20:57

Re: glmark2 and general opengl issues

Post by ctrauma »

Yea I did notice disabling 3D acceleration solved all of the render problems but caused some exporters to die because gpu.export_shader() is called in the export script and that throws which stops the export dead in it's tracks. I traced the call back to the source and found that GPU_glsl_support() was telling the python API that glsl support was disabled.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: glmark2 and general opengl issues

Post by loukingjr »

Now you tell me. :lol:
So I installed it for nothing. :D
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ctrauma
Posts: 5
Joined: 25. Mar 2015, 20:57

Re: glmark2 and general opengl issues

Post by ctrauma »

:roll: hahaha.. thanks for the effort, sometimes I post too much data and some of the trees get lost in the forest :oops:
Post Reply