[vtkusers] Failed to get wglChoosePixelFormatARB on VM
Jesse Kinross-Smith
Jesse.Kinross-Smith at bentley.com
Wed May 23 21:18:13 EDT 2018
It’s very easy (and pretty safe) to test.
Just go to the github below – download their latest prebuilt release.
Extract it somewhere, then copy the opengl32.dll appropriate for your application (32 or 64) into the same directory as your app and that’s it.
To get back to normal just delete the opengl32.dll at the end
I haven’t done an exhaustive test, but while it’s a little slower to load it seems to do everything we’re asking of it.
Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle
From: Todd [mailto:nztoddler at yahoo.com]
Sent: Wednesday, 23 May 2018 4:25 PM
To: Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com>
Cc: David E DeMarle <dave.demarle at kitware.com>; vtk <vtkusers at vtk.org>
Subject: RE: [vtkusers] Failed to get wglChoosePixelFormatARB on VM
I'd be interested to know whether or not you notice any performance issues using Mesa.
On 23 May 2018 3:33 p.m., Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com<mailto:Jesse.Kinross-Smith at bentley.com>> wrote:
Ahh! Mesa.. of course! (I’d completely forgotten about that project)
All I had to do was install Mesa on the VMs and that has enabled them to use software rendering without changing a line of code.
https://github.com/pal1000/mesa-dist-win<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pal1000_mesa-2Ddist-2Dwin&d=DwMGaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=kZ2WZR9tK_shl3xOoI8FNj6ZXUJDDcrHVpsePRgM3HA&s=eSdnb7s0dw5HYYQWEqc3lxhseyaAWlyWrThJEw1AAB0&e=> was really helpful here and just did a system wide deployment for my test VM.
This enables us to at least deploy this on our automated test environment and get things going there.
I’m using VTK 8.1.0 atm, but will look at the helper when I upgrade things and try and do this better.
Thanks David!
Regards,
Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle
From: David E DeMarle [mailto:dave.demarle at kitware.com]
Sent: Wednesday, 23 May 2018 4:42 AM
To: Todd Martin <nztoddler at yahoo.com<mailto:nztoddler at yahoo.com>>
Cc: vtk <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>; Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com<mailto:Jesse.Kinross-Smith at bentley.com>>
Subject: Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM
In VTK 8.1.1 on windows, there is a helper that:
1) makes a system call intended to test openGL compatibility
2) lets you swap in mesa if required.
See Rendering/OpenGL/vtkTestOpenGLVersion.h and https://gitlab.kitware.com/vtk/vtk/commit/2d10325efedca53a6262550db94484ccc8a12e49<https://urldefense.proofpoint.com/v2/url?u=https-3A__gitlab.kitware.com_vtk_vtk_commit_2d10325efedca53a6262550db94484ccc8a12e49&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=YWTvq_SH7QU1PkypBIcAWBUyd-hVC_H0DAxlQf3_c6A&e=>
David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Tue, May 22, 2018 at 3:47 AM, Todd Martin via vtkusers <vtkusers at vtk.org<mailto:vtkusers at vtk.org>> wrote:
Failing that you could try using Virtualbox.
Todd Martin, Ph.D.
Freelance Engineer/Software Architect.
On Tuesday, May 22, 2018, 6:56:58 PM GMT+12, Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com<mailto:Jesse.Kinross-Smith at bentley.com>> wrote:
So it looks like Microsoft’s VM’s only support OpenGL 1.1, and of course our library is built using OpenGL2.
Somehow I thought there’d be a fallback option in case it wasn’t supported, but this doesn’t seem to be the case.
☹
Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle
From: Todd Martin [mailto:nztoddler at yahoo.com<mailto:nztoddler at yahoo.com>]
Sent: Tuesday, 22 May 2018 1:56 PM
To: vtk <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>; Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com<mailto:Jesse.Kinross-Smith at bentley.com>>
Subject: Re: [vtkusers] Failed to get wglChoosePixelFormatARB on VM
Did you install GLEW on the virtual machine?
Todd Martin, Ph.D.
Freelance Engineer/Software Architect.
On Tuesday, May 22, 2018, 5:33:53 PM GMT+12, Jesse Kinross-Smith <Jesse.Kinross-Smith at bentley.com<mailto:Jesse.Kinross-Smith at bentley.com>> wrote:
Getting the following errors when testing our app with VTK rendering on a Hyper-V virtual machine (works great on my laptop though):
ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 685
vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get wglChoosePixelFormatARB
ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx, line 769
vtkWin32OpenGLRenderWindow (000001D110ADE9F0): failed to get valid pixel format.
ERROR: In C:\hg\sharedlibs\VTK-8.1.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 785
vtkWin32OpenGLRenderWindow (000001D110ADE9F0): GLEW could not be initialized.
We’re using the vtkMFCWindow class and I don’t see any fallback options anywhere.
Is there any way this can default to software rendering on low end machines like this?
Jesse
--
Jesse Kinross-Smith
Senior Software Engineer - BSW
Bentley Systems, Fremantle
_______________________________________________
Powered by www.kitware.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=sGMDKt7Uoqcj_hTM_yl65V92dQnOb8ofk91Q8VV-cZI&e=>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=bqbTWJI4m5_7_qEnO2JKkvbluKt8OCZB4gYwDl9xUpI&e=>
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=UzFAHgl7PyQg5ESRLyUxCocKInz_vIzTQ_d1cJRd0VU&e=>
Search the list archives at: http://markmail.org/search/?q=vtkusers<https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=FBdGMsou1CQoJAQ6LND1TyA0NVI1KbJVx4vcVuvrWF0&e=>
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers<https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=FK6sM6Bp3hbBX5EMYm2faK9qcACWQxeJcUnKBuPmoWI&s=0tDVpJThCwRRKDpjOerLgkBKOzJbzHtlrNCi_KBFapY&e=>
_______________________________________________
Powered by www.kitware.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=sGMDKt7Uoqcj_hTM_yl65V92dQnOb8ofk91Q8VV-cZI&e=>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=-psFdc7GUu8-VvnRZtKZDfGVerTjPTD30TizeyLpq3Q&e=>
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=oBV9CgopOin0khnxKDNIODROvypqdfMttkqnim8UPVk&e=>
Search the list archives at: http://markmail.org/search/?q=vtkusers<https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=2agetOYTbkyZ_lDcpXuD5rShB0wDeccaExoBFXaz0yU&e=>
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers<https://urldefense.proofpoint.com/v2/url?u=https-3A__vtk.org_mailman_listinfo_vtkusers&d=DwMFaQ&c=hmGTLOph1qd_VnCqj81HzEWkDaxmYdIWRBdoFggzhj8&r=QPUyrnKdkaGJHD0OTha3x09u1N6qkcvUsRW8n2fg59E&m=LAWtQyKjaVtb40DNHOGshfhWRtzOCjVvBx7_bOhQ6LQ&s=e_xMNJdXo6jh-jwkpk7MUm-89pyeFYpjdE0LYDu5O04&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180524/5c6c05e9/attachment.html>
More information about the vtkusers
mailing list