Getting rid of OpenGL warnings on machines without HW acceleration



  • When running the regular "animated tiles" example in a virtual machine, I get an OpenGL warning "unable to connect to host. Make sure hardware acceleration is enabled".

    Well, I don't have HW acceleration on that machine, and I ain't going to get it. How do I get rid of the warning?



  • See: http://askubuntu.com/questions/150685/why-do-i-get-an-opengl-warning-message-after-running-google-chrome-through-the

    It is a problem with VirtualBox and not actually related to Qt.
    (aside from the fact that Qt has to make use of the opengl libraries with those examples)

    Perhaps you can verify if HW accelleration is disabled in your vbox or perhaps you can uninstall the host extensions?



  • HW acceleration is disabled. That is, the option "3D acceleration" under "Display" - "Extended features" is disabled.

    It was enabled at first, and I got a ton more errors.

    Edit: Here are the errors I get with HW acceleration enabled:

    @OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo
    OpenGL Warning: XGetVisualInfo returned 0 visuals for 0xa21e2a0
    OpenGL Warning: Retry with 0x8002 returned 0 visuals
    OpenGL Warning: glXGetFBConfigAttrib for 0xa21e2a0, failed to get XVisualInfo@

    Edit 2:
    I should stress that the program paints correctly either way - with HW acceleration enabled or disabled. Also, the Linux in the VirtualBox runs pretty slowly (especially new windows are real slow to appear) - maybe there's a configuration problem.

    Edit 3:
    I tried the same VirtualBox on a better computer, it runs smoothly there, but the error messages are the same.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.