How to get rid of OpenGL Warning
-
Hi forum,
When I run my Qt5.2 gui application window I get the following warnings. The main window is displayed correctly however I am concern for the number of warning that are rendered.
I am new to Qt development so I will like to know if I should be worried about these warning and if so how do I get rid of them.
I am running Qt5.2.1 in Linux mint oliva 64-bits version within virtual box as a guest operating system running windows 7 host.
########################
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: failed to load driver: vboxvideo
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1cbcc00, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1cbcc00, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1cbcc00, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
OpenGL Warning: glXGetFBConfigAttrib for 0x1cbcc00, failed to get XVisualInfo
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x1cbcc00
OpenGL Warning: Retry with 0x8002 returned 0 visuals
#################Many thanks in advance.
onio
-
This is probably due to virtual box OpenGL drivers being incomplete (or your Mesa being outdated). I guess you can safely ignore them if your application works well and is intended for non-VM usage.
You can enable OpenGL/ DirectX support in VirtualBox and update Mesa on your machine and see if it helps.
-
Hi sierdzio,
Thanks for speedy reply. I can't find any option to enable/disble OpenGL/ DirectX support in VirtualBox.
Before installing Qt I performed a system update on my machine so I like to believe things are up todate aleast 24/03/14.
Like you pointed out these tools were not ideally built for VM but for standard OS.
This is my first time using any form of Qt tool and for now I can Build / Run and Debug so I kind of okay for now, it just that I will perfer to always see a clean console when running.
Once again thanks for your input.
Regards
onio
-
Go to Virtual Box Vm->Settings->Display->Enable 3D Acceleration. Since your OS is already installed, it might require reinstalling the Virtual Box Guest Additions.
-
Hi sierdzlo,
I already have 3D Acceleration enabled thanks.
Regards
onio
-
try to run your app with LIBGL_DEBUG=verbose
@
export LIBGL_DEBUG=verbose
./yourapp
@what does it say?
If you run glxinfo or glxgears does it produce the same error?what is output of
@
ls -l /dev/dri
@Does Linux Mint has a video group?
@
grep video /etc/group
@Is you user a part of the video group?
@
id
@ -
Hi andreyc
Thanks for your reply. Please find information requested.
export LIBGL_DEBUG=verbose
./yourapp
The above command started the applications outside the IDE but with the same warning outline in my first email.If you run glxinfo or glxgears does it produce the same error?
The glxinfo displayed lots of information in table form. Part of the data shown contains the warning I descibed in my first email.
The glxgears showed gear animation dialog box.ls -l /dev/dri
crw-rw----+ 1 root video 226, 0 Mar 25 16:29 card0ui
uid=1000(onio) gid=1000(onio) groups=1000(onio),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),125(sambashare)Regards
onio
-
As a first step please add your username in group video and try to run your app.
what is output of
@
ldd ./yourapp | grep GL
@What is version of mesa libraries do you have?
With export LIBGL_DEBUG=verbose you should have more info regarding libGL error. It is different from OpenGL Warning.
Do you have the same error when you run qtcreator from Qt5.2?
what is output of
@
ldd /part/to/qtcreator | grep GL
@ -
ldd /part/to/qtcreator | grep GL
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f67e2b40000)Note:
In order for my test program to build I had to create a symbolic link to libGL.so.1 as shown below.sudo ln -s libGL.so.1 libGL.so
Regards
onio -
Do you have the same error when you run qtcreator from Qt5.2?
-
Qt5.2.1 is my first ever Qt applications I am not aware of qtcreator Qt5.2. May I clarify that the initial post was about "Warnings" and not "Errors".
The only time I got a build error was before I made a symbolic link to the libGL shared library object.
Once that was done the program runs correctly, but with the above "Warnings" output to the console. It does not seem to affect the application for now as I am not doing anything complicated at present.
At this point I am only playing with basic stuff such as reading edit box control on the press of push button and display it on MessageBox. This seems to work as expected.
Regards
onio
-
QtCreator is an IDE that comes with Qt.
Maybe if you will install the latest mesa you will get rid of these messages.
-
I will try and install that tomorrow. I however can't recall explicitly installing mesa on my system.
I will report findings tomorrow. I assume that I should be able to install with sudo apt-get install mesa -
You already have it on your system.
I think that the version that comes with Linux Mint Oliva is a bit behind.Also I'm not 100% sure that installing the latest mesa will fix a problem.
-
Couple questions:
What version of VirtualBox do you use?
Is version of Guest Additions the same as VirtualBox? -
Try to set LIBGL_ALWAYS_SOFTWARE=1 before starting your app.
@
export LIBGL_ALWAYS_SOFTWARE=1
./yourapp
@What is the result?
There are bunch of other mesa3d environment variables described "here":http://www.mesa3d.org/envvars.html