[osg-users] OSG errors when running on a virtual machine

198 views
Skip to first unread message

AJ Kruze

unread,
Sep 4, 2013, 9:43:22 PM9/4/13
to osg-...@lists.openscenegraph.org
Good day everyone,

I am trying to execute a program with osgSWIG code on a Windows 8 virtual machine, but receive the error messages included down below.  The program does not crash but the 3D models do not load completely.  The program runs without problems on a Windows 7 host.

Maybe I need to install some drivers (OpenGL?) on the Windows guest, or upgrade those on the Ubuntu host?

Thanks!

-AJ

-----------------------------
Host: Ubuntu 12.04.2
Guest: Windows 8

OSG 3.0.1
osgSWIG cloned from the repository

VirtualBox 4.2.16, Guest Additions installed
VirtualBox settings:
    3D and 2D acceleration enabled
    256MB video memory (the maximum allowed)
-----------------------------

OpenGL Warning: Returning GetProcAddress:NULL for wglGetSwapIntervalEXT
OpenGL Warning: DrvShareLists: unsupported
OpenGL Warning: Returning GetProcAddress:NULL for wglGetSwapIntervalEXT
OpenGL Warning: Returning GetProcAddress:NULL for glDrawArraysInstanced
OpenGL Warning: Returning GetProcAddress:NULL for glDrawArraysInstancedARB
OpenGL Warning: Returning GetProcAddress:NULL for glDrawArraysInstancedEXT
OpenGL Warning: Returning GetProcAddress:NULL for glDrawElementsInstanced
OpenGL Warning: Returning GetProcAddress:NULL for glDrawElementsInstancedARB
OpenGL Warning: Returning GetProcAddress:NULL for glDrawElementsInstancedEXT
OpenGL Warning: Returning GetProcAddress:NULL for glGenOcclusionQueries
OpenGL Warning: Returning GetProcAddress:NULL for glGenOcclusionQueriesNV
OpenGL Warning: Returning GetProcAddress:NULL for glDeleteOcclusionQueries
OpenGL Warning: Returning GetProcAddress:NULL for glDeleteOcclusionQueriesNV
OpenGL Warning: Returning GetProcAddress:NULL for glIsOcclusionQuery
OpenGL Warning: Returning GetProcAddress:NULL for _glIsOcclusionQueryNV
OpenGL Warning: Returning GetProcAddress:NULL for glBeginOcclusionQuery
OpenGL Warning: Returning GetProcAddress:NULL for glBeginOcclusionQueryNV
OpenGL Warning: Returning GetProcAddress:NULL for glEndOcclusionQuery
OpenGL Warning: Returning GetProcAddress:NULL for glEndOcclusionQueryNV
OpenGL Warning: Returning GetProcAddress:NULL for glGetOcclusionQueryiv
OpenGL Warning: Returning GetProcAddress:NULL for glGetOcclusionQueryivNV
OpenGL Warning: Returning GetProcAddress:NULL for glGetOcclusionQueryuiv
OpenGL Warning: Returning GetProcAddress:NULL for glGetOcclusionQueryuivNV
OpenGL Warning: Returning GetProcAddress:NULL for glGetQueryObjectui64v
OpenGL Warning: Returning GetProcAddress:NULL for glGetQueryObjectui64vEXT
OpenGL Warning: Returning GetProcAddress:NULL for glQueryCounter
OpenGL Warning: Returning GetProcAddress:NULL for glGetInteger64v
OpenGL Warning: Returning GetProcAddress:NULL for glBindRenderbuffer
OpenGL Warning: Returning GetProcAddress:NULL for glGenRenderbuffers
OpenGL Warning: Returning GetProcAddress:NULL for glDeleteRenderbuffers
OpenGL Warning: Returning GetProcAddress:NULL for glRenderbufferStorage
OpenGL Warning: Returning GetProcAddress:NULL for glBindFramebuffer
OpenGL Warning: Returning GetProcAddress:NULL for glDeleteFramebuffers
OpenGL Warning: Returning GetProcAddress:NULL for glGenFramebuffers
OpenGL Warning: Returning GetProcAddress:NULL for glCheckFramebufferStatus
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTexture1D
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTexture2D
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTexture3D
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTexture
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureEXT
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureLayer
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureLayerEXT
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferRenderbuffer
OpenGL Warning: Returning GetProcAddress:NULL for glGenerateMipmap
OpenGL Warning: Returning GetProcAddress:NULL for glGetRenderbufferParameteriv
OpenGL Warning: Returning GetProcAddress:NULL for glBlitFramebuffer
OpenGL Warning: Returning GetProcAddress:NULL for glRenderbufferStorageMultisample
OpenGL Warning: Returning GetProcAddress:NULL for glRenderbufferStorageMultisampleEXT
OpenGL Warning: Returning GetProcAddress:NULL for glRenderbufferStorageMultisampleCoverageNV
OpenGL Warning: Returning GetProcAddress:NULL for glRenderbufferStorageMultisampleCoverageNVEXT
OpenGL Warning: Returning GetProcAddress:NULL for glProgramParameteri
OpenGL Warning: Returning GetProcAddress:NULL for glProgramParameteriEXT
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTexture
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureEXT
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureLayer
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureLayerEXT
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureFace
OpenGL Warning: Returning GetProcAddress:NULL for glFramebufferTextureFaceEXT
OpenGL Warning: Returning GetProcAddress:NULL for glPatchParameteri
OpenGL Warning: Returning GetProcAddress:NULL for glPatchParameterfv
OpenGL Warning: Returning GetProcAddress:NULL for glGetUniformuiv
OpenGL Warning: Returning GetProcAddress:NULL for glGetUniformuivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glBindFragDataLocation
OpenGL Warning: Returning GetProcAddress:NULL for glBindFragDataLocationEXT
OpenGL Warning: Returning GetProcAddress:NULL for glGetFragDataLocation
OpenGL Warning: Returning GetProcAddress:NULL for glGetFragDataLocationEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform1ui
OpenGL Warning: Returning GetProcAddress:NULL for glUniform1uiEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform2ui
OpenGL Warning: Returning GetProcAddress:NULL for glUniform2uiEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform3ui
OpenGL Warning: Returning GetProcAddress:NULL for glUniform3uiEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform4ui
OpenGL Warning: Returning GetProcAddress:NULL for glUniform4uiEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform1uiv
OpenGL Warning: Returning GetProcAddress:NULL for glUniform1uivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform2uiv
OpenGL Warning: Returning GetProcAddress:NULL for glUniform2uivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform3uiv
OpenGL Warning: Returning GetProcAddress:NULL for glUniform3uivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glUniform4uiv
OpenGL Warning: Returning GetProcAddress:NULL for glUniform4uivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glGetUniformIndices
OpenGL Warning: Returning GetProcAddress:NULL for glGetActiveUniformsiv
OpenGL Warning: Returning GetProcAddress:NULL for glGetActiveUniformName
OpenGL Warning: Returning GetProcAddress:NULL for glGetUniformBlockIndex
OpenGL Warning: Returning GetProcAddress:NULL for glGetActiveUniformBlockiv
OpenGL Warning: Returning GetProcAddress:NULL for glGetActiveUniformBlockName
OpenGL Warning: Returning GetProcAddress:NULL for glUniformBlockBinding
OpenGL Warning: Returning GetProcAddress:NULL for glGetProgramBinary
OpenGL Warning: Returning GetProcAddress:NULL for glProgramBinary
OpenGL Warning: No pincher, please call crStateSetCurrentPointers() in your SPU
OpenGL Warning: Returning GetProcAddress:NULL for glTexImage2DMultisample
OpenGL Warning: Returning GetProcAddress:NULL for glTexImage2DMultisampleARB
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIiv
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIivARB
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIuiv
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIuivARB
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIivEXT
OpenGL Warning: Returning GetProcAddress:NULL for glTexParameterIuivEXT
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
texture 'ductedFan.bmp' not found
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
texture 'gasMotor_1Cyl_2Stroke.bmp' not found
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..)
(This last message repeats infinitely)

Marcel Pursche

unread,
Sep 5, 2013, 11:03:38 AM9/5/13
to osg-...@lists.openscenegraph.org
Hi,

it looks like the driver in your virtual machine does not support OpenGL >=2.0. The function pointers for some newer features can not be found. So things like shaders, occlusion queries, framebuffers and instancing will not work.
If fear there is nothing much you can do about that. You can only try to update VMWare, VirtualBox or whatever product you are using and hope it fixes the problem. The 3D hardware acceleration in a virtual machine is generally not that good.

Thank you!

Cheers,
Marcel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56128#56128





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Aurelien Albert

unread,
Sep 5, 2013, 11:39:44 AM9/5/13
to osg-...@lists.openscenegraph.org
Hi,

I've got some bad experience with virtual machines.


> The 3D hardware acceleration in a virtual machine is generally not that good.


In fact, hardware acceleration is usualy not available at all on a Virtual Machine. Because this is a virtual machine.

Just like a remote session on windows : you can't access directly to the hardware.

There is 2 potential solutions :
- try finding a virtual macine system which allow direct access to the hardware (don't know the status, but NVidia made a lot of efforts on this since last year)
- try a "full software" openGL implementation, like MESA


Cheers,
Aurelien

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56129#56129

Marcel Pursche

unread,
Sep 5, 2013, 12:09:51 PM9/5/13
to osg-...@lists.openscenegraph.org
Hi,

according to the homepage of VMWare they support DirectX 9.0 and OpenGL 2.1 and VirtualBox has DirectX 9.0 and OpenGL(no version mentioned) support.
So hardware accelaration should work, if a new version of VMWare or VirtualBox is used.

Thank you!

Cheers,
Marcel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56131#56131

Jordi Torres

unread,
Sep 5, 2013, 12:21:30 PM9/5/13
to OpenSceneGraph Users
Hi Marcel,


2013/9/5 Marcel Pursche <marcel....@student.hpi.uni-potsdam.de>

Hi,

according to the homepage of VMWare they support DirectX 9.0 and OpenGL 2.1 and VirtualBox has DirectX 9.0 and OpenGL(no version mentioned) support.
So hardware accelaration should work, if a new version of VMWare or VirtualBox is used.


Don't expect the drivers of the virtual machine for OpenGL to be fully implemented. They may not have all extensions or features you need. At least not yet.

Cheers.

 
Thank you!

Cheers,
Marcel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56131#56131





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Jordi Torres


AJ Kruze

unread,
Sep 6, 2013, 3:27:30 AM9/6/13
to OpenSceneGraph Users
Thanks to everyone for the input.  So this seems like a dead end for now!

But two things I can try: MESA as Aurelien suggests, and some other VM which may support the necessary OpenGL functionality.

I'm posting here once more my system setup, just in case.

Alistair Baxter

unread,
Sep 6, 2013, 4:22:49 AM9/6/13
to OpenSceneGraph Users

Mesa works for us on Windows, just by dropping the GLU32.dll and OPENGL32.DLL into the directory with your executable. We use it to support OpenSceneGraph rendering via Remote Desktop Protocol.

 

It’s quite good in that it supports OpenGL version 2.1 and GLSL 1.2, but it’s not very fast, it’s effectively just for last-resort compatibility rather than any sort of decent performance unless your scenes are very simple.

 

The biggest problem with Mesa for Windows is getting it. The build instructions are a bit complex, we got prebuilt DLLs from someone on this list, but looking back through the mail archive the dropbox download links are no longer working.

 

Alistair Baxter
Software Engineer
________________________________

Midland Valley Exploration Ltd.
144 West George Street
Glasgow G2 2HG
United Kingdom

Tel:     +44 (0) 141 332 2681
Fax:    +44 (0) 141 332 6792

The structural geology experts

AJ Kruze

unread,
Sep 16, 2013, 3:57:38 AM9/16/13
to OpenSceneGraph Users
Thanks for the tip, Alistair.

I found precompiled Mesa libraries at the two links below and copied open32.dll and glu32.dll into the executable's directory.  It seems to be working better now, though I get the following error messages.  But I understand this is beyond OSG, I'll try to figure it out.

/AJ

----------------------
Precompiled Mesa drivers for Windows:

http://mycodelog.com/2010/05/15/gllibs/
http://www.mediafire.com/?8hbxdg50s6nndht

----------------------
PixelBufferWin32::init(), Error: some wgl extensions not supported
Warning: detected OpenGL error 'invalid enumerant' at after RenderBin::draw(..)
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: in 3ds loader: file has no nodes, traversing by meshes instead
Warning: detected OpenGL error 'invalid value' at after RenderBin::draw(..)
Warning: detected OpenGL error 'invalid value' at after RenderBin::draw(..)
(This last log message repeats infinitely)
Reply all
Reply to author
Forward
0 new messages