Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63122

tst_QOpenGL::wglContextWrap fails when using system opengl32.dll

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.6
    • Fix Version/s: None
    • Component/s: GUI: OpenGL
    • Environment:
      Windows 7 x86

      Description

      By not replacing the system32\opengl32.dll with the VMware Gallium 0.4 llvmpipe MESA driver, but instead adding it to the OS as opengl32sw.dll, we end up with the following error:

      call C:\Users\qt\work\qt\qtbase\tests\auto\gui\qopengl\target_wrapper.bat release\tst_qopengl.exe wglContextWrap
      [ 0.000 D] qt.qpa.input.tablet unknown - Tablet support: "None"
      [ 0.000 D] qt.qpa.windows unknown - TestNamespace::QWindowsContext::setProcessDpiAwareness 2
      [ 0.000 D] qt.qpa.windows unknown - TestNamespace::QWindowsIntegrationPrivate::QWindowsIntegrationPrivate DpiAwareness= 2 effective process DPI awareness= -1
      [ 0.000 D] qt.qpa.windows unknown - TestNamespace::QWindowsContext::registerWindowClass "Qt5ClipboardView" style=0x0 brush=0x0 icon=false atom=49517
      [ 0.000 D] qt.qpa.mime unknown - TestNamespace::QWindowsClipboard::registerViewer m_clipboardViewer: 0x8f022a format listener: true next: 0x0
      [ 0.000 D] qt.qpa.windows unknown - New Monitor: Screen "\\.\DISPLAY1" 1024x768+0+0 avail: 1024x728+0+0 physical: 361x271 DPI: 96x96 Depth: 32 Format: 4 primary virtual desktop
      [ 0.000 D] qt.qpa.fonts unknown - TestNamespace::QWindowsFontDatabase::systemDefaultFont QFont( "MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0" )
      [ 0.000 D] qt.qpa.windows unknown - TestNamespace::QWindowsTheme::refreshIconPixmapSizes (16, 32, 48, 256)
      ********* Start testing of tst_QOpenGL *********
      Config: Using QtTest library 5.6.3, Qt 5.6.3 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2010)
      PASS : tst_QOpenGL::initTestCase()
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.002 D] qt.qpa.gl unknown - TestNamespace::QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior 0, swapInterval 1, profile 0)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - Basic wglCreateContext gives version 1.1
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - OpenGL version too low
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - OpenGL 2.0 entry points not found
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - GPU features: QSet()
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - TestNamespace::QWindowsOpenGLTester::supportedRenderers GpuDescription(vendorId=0x15ad, deviceId=0x405, subSysId=0x40515ad, revision=0, driver: "vm3dum.dll", version=8.14.1.6, "VMware SVGA 3D") renderer: QFlags(0x2|0x4|0x8|0x20)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.022 D] qt.qpa.gl unknown - Qt: Using EGL from libEGL
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 0.024 D] qt.qpa.gl unknown - Qt: Using OpenGL ES 2.0 from libGLESv2
      QWARN : tst_QOpenGL::wglContextWrap() [ 2.033 W] default unknown - TestNamespace::QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
      QWARN : tst_QOpenGL::wglContextWrap() [ 2.033 W] default unknown - TestNamespace::QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.033 D] qt.qpa.gl unknown - Qt: Using WGL and OpenGL from "opengl32sw.dll"
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.045 D] qt.qpa.windows unknown - TestNamespace::QWindowsContext::registerWindowClass "QtOpenGLDummyWindow" style=0x0 brush=0x0 icon=false atom=49516
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.064 D] qt.qpa.gl unknown - TestNamespace::QOpenGLStaticContext::create OpenGL: "VMware, Inc.","Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits)" default ContextFormat: v3.0 profile: 0 options: QFlags(0x4),SampleBuffers, Extension-API present
      Extensions: 204
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.065 D] qt.qpa.gl unknown - "TestNamespace::ARB::choosePixelFormat Attributes: 0x2003 , 0x2027 , 0x2010 , 0x1 , 0x2001 , 0x1 , 0x2014 , 0x18 , 0x2011 , 0x1 , 0x2013 , 0x202b , 0x201b , 0x8 , 0x2023 , 0x8 , 0x2041 , 0x0 , \n obtained px # 45 of 1 \n PIXELFORMATDESCRIPTOR dwFlags=0x0 iPixelType=0 cColorBits=0 cRedBits=0 cRedShift=0 cGreenBits=0 cGreenShift=0 cBlueBits=0 cBlueShift=0 cDepthBits=0 iLayerType=0 "
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.065 D] qt.qpa.gl unknown - TestNamespace::ARB::createContext Creating context version 2 . 0 3 attributes
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.079 D] qt.qpa.gl unknown - TestNamespace::QWindowsGLContext::QWindowsGLContext 0x13f5580 ARB requested: QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior 0, swapInterval 1, profile 0) 
      obtained # 45 ARB QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior 2, swapInterval 1, profile 0) 
      PIXELFORMATDESCRIPTOR dwFlags=0x0 iPixelType=0 cColorBits=0 cRedBits=0 cRedShift=0 cGreenBits=0 cGreenShift=0 cBlueBits=0 cBlueShift=0 cDepthBits=0 iLayerType=0 swap interval: 0 
      default: ContextFormat: v3.0 profile: 0 options: QFlags(0x4) 
      HGLRC= 0x1
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.079 D] qt.qpa.windows unknown - TestNamespace::QWindowsContext::registerWindowClass "Qt5QWindowOwnDCIcon" style=0x28 brush=0x110007a icon=true atom=49518
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.079 D] qt.qpa.windows unknown - TestNamespace::QWindowsGeometryHint::frame style=0x86cf0000 exStyle=0x0 RECT: left/top=-8,-30 right/bottom=8,8 QMargins(8, 30, 8, 8)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.079 D] qt.qpa.windows unknown - TestNamespace::QWindowCreationContext::QWindowCreationContext QWindow(0x1408e58) QRect(0,0 256x256) pos incl. frame=false frame=272x294+0+0 min=QSize(0, 0) max=QSize(16777215, 16777215) custom margins=QMargins(0, 0, 0, 0)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.079 D] qt.qpa.windows unknown - CreateWindowEx: QWindow(0x1408e58) class="Qt5QWindowOwnDCIcon" title="tst_qopengl"
      WindowCreationData: QFlags<Qt::WindowType>(Window|WindowTitleHint|WindowSystemMenuHint|WindowMinMaxButtonsHint|WindowCloseButtonHint)
      topLevel=true popup=false dialog=false desktop=false embedded=false tool=false
      style=0x86cf0000 WS_POPUP WS_CLIPSIBLINGS WS_CLIPCHILDREN WS_THICKFRAME WS_DLGFRAME WS_SYSMENU WS_MINIMIZEBOX WS_MAXIMIZEBOX
      requested: QRect(0,0 256x256): 272x294+0+0 custom margins: QMargins(0, 0, 0, 0)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.080 D] qt.qpa.windows unknown - >TestNamespace::QWindowsGeometryHint::applyToMinMaxInfo< min=0,0 max=16777215,16777215 in MINMAXINFO maxSize=1040,784 maxpos=-8,-8 mintrack=132,38 maxtrack=1044,788
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.080 D] qt.qpa.windows unknown - TestNamespace::QWindowsGeometryHint::frame style=0x86cf0000 exStyle=0x0 RECT: left/top=-8,-30 right/bottom=8,8 QMargins(8, 30, 8, 8)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.080 D] qt.qpa.windows unknown - <TestNamespace::QWindowsGeometryHint::applyToMinMaxInfo frame=QMargins(8, 30, 8, 8) 16,38 out MINMAXINFO maxSize=1040,784 maxpos=-8,-8 mintrack=132,38 maxtrack=1044,788
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.081 D] qt.qpa.windows unknown - CreateWindowEx: returns QWindow(0x1408e58) 0x910234 obtained geometry: QRect(8,30 256x256) QMargins(8, 30, 8, 8)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.081 D] qt.qpa.windows unknown - TestNamespace::QWindowsIntegration::createPlatformWindow QWindow(0x1408e58)
      Requested: QRect(0,0 256x256) frame incl.=false QFlags<Qt::WindowType>(Window)
      Obtained : QRect(8,30 256x256) margins=QMargins(8, 30, 8, 8) handle=0x910234 QFlags<Qt::WindowType>(Window|WindowTitleHint|WindowSystemMenuHint|WindowMinMaxButtonsHint|WindowCloseButtonHint)
      
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.081 D] qt.qpa.mime unknown - TestNamespace::QWindowsWindow::setDropSiteEnabled QWindow(0x1408e58) true
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.081 D] qt.qpa.mime unknown - TestNamespace::QWindowsOleDropTarget::QWindowsOleDropTarget 0x1409ec8 QWindow(0x1408e58)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.092 D] qt.qpa.windows unknown - TestNamespace::QWindowsWindow::setVisible 0x1407b10 QWindow(0x1408e58) 0x910234 true
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.096 D] qt.qpa.events unknown - Entering QWindow(0x1408e58)
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.106 D] qt.qpa.gl unknown - TestNamespace::QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior 0, swapInterval 1, profile 0)
      QWARN : tst_QOpenGL::wglContextWrap() [ 2.106 W] default unknown - QWindowsGLContext: Failed to get pixel format
      QWARN : tst_QOpenGL::wglContextWrap() [ 2.107 W] default unknown - QWindowsGLContext: Failed to describe pixel format
      FAIL! : tst_QOpenGL::wglContextWrap() 'adopted->create()' returned FALSE. ()
      tst_qopengl.cpp(1419) : failure location
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.107 D] qt.qpa.windows unknown - TestNamespace::QWindowsWindow::setVisible 0x1407b10 QWindow(0x1408e58) 0x910234 false
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.110 D] qt.qpa.windows unknown - TestNamespace::QWindowsWindow::destroyWindow 0x1407b10 QWindow(0x1408e58) 0x910234
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.110 D] qt.qpa.mime unknown - TestNamespace::QWindowsWindow::setDropSiteEnabled QWindow(0x1408e58) false
      QDEBUG : tst_QOpenGL::wglContextWrap() [ 2.110 D] qt.qpa.mime unknown - TestNamespace::QWindowsOleDropTarget::~QWindowsOleDropTarget 0x1409ec8
      PASS : tst_QOpenGL::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tosaraja Tony Sarajärvi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes