OpenGL crashes with 3D acceleration

Discussions about using Linux guests in VirtualBox.
Post Reply
f456
Posts: 54
Joined: 2. Sep 2012, 16:42

OpenGL crashes with 3D acceleration

Post by f456 »

I use Qt5 and the latest version of its QtCreator to create an application. The application at some point uses standard Qt mechanisms of drawing to the screen (which internally is based on opengl). This crashes my application.


host: win7 x64
guest: ubuntu 14.04 x64
vbox: 4.3.14

To clarify:

1) with 3d acc. disbled, my app starts fine, but when i start drawing, it crashes asking me to enable 3d acc. in my VM.
2) with 3d acc. enabled, my app starts fine, but crashes after i start drawing, with the following err output:

note the "libGL error: failed to load driver: vboxvideo".

libGL error: pci id for fd 11: 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: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1b8ccb0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1b8ccb0, failed to get XVisualInfo
The program has unexpectedly finished.
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: OpenGL crashes with 3D acceleration

Post by loukingjr »

Did you install the guest additions in Ubuntu?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
f456
Posts: 54
Joined: 2. Sep 2012, 16:42

Re: OpenGL crashes with 3D acceleration

Post by f456 »

yes.
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: OpenGL crashes with 3D acceleration

Post by loukingjr »

To be honest it's hard to say what is going on. I found a few posts elsewhere where people are experiencing Qt5 and Qt5 Creator crashes even running on hardware. As far as the error you mentioned, that crops up even when one just runs "glxinfo | grep OpenGL" even though vboxvideo is clearly running.

perhaps someone else has a better idea. Or you could check with the Qt5 developers.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
pgloor
Posts: 7
Joined: 14. Jan 2016, 22:29

Re: OpenGL crashes with 3D acceleration

Post by pgloor »

Host: Windows 8.1, 64-bit, Intel i7-4770K, 16 GB RAM, NVIDIA Geforce GTX 660
VirtualBox: 5.0.10
Guest: Linux Ubuntu (64-bit), 8 GB RAM, 4 Proc, KVM, 128 MB Video Memory, Ubuntu 15.10 AMD64 Desktop installed

I installed the OpenSource Qt5.1.1 64-bit Linux build from the Qt download pages (qt-opensource-linux-x64-5.5.1.run) and started Qt Creator under various conditions. My personal conclusion: the problem comes with the missing LIBGL "hardware support" of the drivers replaced by VirtualBox GuestAdditions. The best workaround for me is to "export LIBGL_ALWAYS_SOFTWARE=1".

Case 1: 3D Accelleration disabled, VirtualBox GuestAdditions not installed.
Qt Creator starts and runs nicely without errors nor crashes.

Code: Select all

pet@ubuntu:~/Qt5.5.1/Tools/QtCreator/bin$ ./qtcreator
Case 2: 3D Accelleration enabled, VirtualBox GuestAdditions not installed.
Qt Creator starts and runs nicely without errors nor crashes.

Code: Select all

pet@ubuntu:~/Qt5.5.1/Tools/QtCreator/bin$ ./qtcreator
Case 3: 3D Accelleration disabled, VirtualBox GuestAdditions installed.
Qt Creator starts with a few error messages, but seems to run nicely afterwards.

Code: Select all

pet@ubuntu:~/Qt5.5.1/Tools/QtCreator/bin$ ./qtcreator
pci id for fd 21: 80ee:beef, driver (null)
libGL error: unable to load driver: vboxvideo_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: vboxvideo
Case 4: 3D Accelleration enabled, VirtualBox GuestAdditions installed.
In this case I disabled acceleration on application level by prepending LIBGL_ALWAYS_SOFTWARE=1.
The result is the same as in case 1 & 2. Qt Creator starts and runs nicely without errors nor crashes.

Code: Select all

pet@ubuntu:~/Qt5.5.1/Tools/QtCreator/bin$ LIBGL_ALWAYS_SOFTWARE=1 ./qtcreator
Case 5: 3D Accelleration enabled, VirtualBox GuestAdditions installed.
Qt Creator immediately crashes after start before any window is opened.

Code: Select all

pet@ubuntu:~/Qt5.5.1/Tools/QtCreator/bin$ ./qtcreator
pci id for fd 21: 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: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 00000000038408d0, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00000000038408d0
OpenGL Warning: Retry with 0x8002 returned 0 visuals
Could not initialize GLX
Aborted (core dumped)
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: OpenGL crashes with 3D acceleration

Post by loukingjr »

Case 2 is rather meaningless seeing there is no 3D acceleration without the guest additions.

Did you try the current 5.0.12 version?

The info is interesting none the less.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
pgloor
Posts: 7
Joined: 14. Jan 2016, 22:29

Re: OpenGL crashes with 3D acceleration

Post by pgloor »

loukingjr wrote:Case 2 is rather meaningless seeing there is no 3D acceleration without the guest additions.
Yes, but I was not sure and wanted to test all combinations.
loukingjr wrote:Did you try the current 5.0.12 version?
No, I only tested VirtualBox VM 5.0.10 r104061 win.amd64 (Nov 10 2015 16:56:18). It's the most recent up-to-date version coming with checking for new updates.
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: OpenGL crashes with 3D acceleration

Post by loukingjr »

https://www.virtualbox.org/wiki/Downloads

I don't know if it will fix your issue. worth a try though.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
pgloor
Posts: 7
Joined: 14. Jan 2016, 22:29

Re: OpenGL crashes with 3D acceleration

Post by pgloor »

loukingjr wrote:[reference to downloads removed]
I don't know if it will fix your issue. worth a try though.
Meanwhile I installed VirtualBox 5.0.12 and its Guest Additions, but nothing has changed (tested only case 4 and 5, where 5 is still crashing).

I've been wondering that on my System VirtualBox 5.0.12 has not yet been automatically updated as it's already out since December 18th and I have set my VirtualBox to check for new updates daily. In addition I perform a manual Check for Updates prior to any important software test or changes on my systems, but I always got the message it's already running the most recent version.
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: OpenGL crashes with 3D acceleration

Post by loukingjr »

Sometimes it just takes them awhile to update the server. Sometimes a very long awhile. :D
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mcon
Posts: 7
Joined: 2. Nov 2014, 17:56

Re: OpenGL crashes with 3D acceleration

Post by mcon »

I have the same problem with latest VirtualBox (Version 5.0.14 r105127) and the latest version of QtCreator (Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 32 bit) - Built on Oct 15 2015 01:56:09 - From revision b4c52505ca); both installed today (VM is older).

Host is: Win7Pro SP1 64bit (Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz 3.40GHz - 16.0 GB);
Guest is: Linux visteon 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux ("Ubuntu 14.04 LTS").

Disabling hardware acceleration workaround (LIBGL_ALWAYS_SOFTWARE=1 /opt/Qt/Tools/QtCreator/bin/qtcreator) works for me, otherwise I get the following output:

Code: Select all

visteon@visteon:~$ /opt/Qt/Tools/QtCreator/bin/qtcreator
libGL error: pci id for fd 14: 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: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 09ad7570, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 09ad7570
OpenGL Warning: Retry with 0x8002 returned 0 visuals
Could not initialize GLX
Aborted (core dumped)
I am available for testing, if useful.

Regards.
Post Reply