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

Crash in WebEngine with openGL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 6.7.0 Beta3, 6.8.0
    • WebEngine
    • None
    • Windows 11
    • Windows

    Description

      Environment:

      Windows - 

      qt.qpa.gl logging:

       

      23:10:01: Starting C:\CODE\build-WebTest-Desktop_Qt_6_7_0_MSVC2019_64bit-Debug\appWebTest.exe...
      QML debugging is enabled. Only use this in a safe environment.
      [20240302 23:10:02.261 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsintegration.cpp:422 - QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile)
      [20240302 23:10:02.337 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp:394 - Basic wglCreateContext gives version 4.6
      [20240302 23:10:02.338 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp:412 - OpenGL 2.0 entry points available
      [20240302 23:10:02.345 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp:270 - GPU features: QSet("disable_program_cache")
      [20240302 23:10:02.346 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp:281 - Disabling program cache:  GpuDescription(vendorId=0x8086, deviceId=0x9a49, subSysId=0xa211028, revision=1, driver: "igdumdim64.dll", version=QVersionNumber(31.0.101.4575), "Intel(R) Iris(R) Xe Graphics""")
      [20240302 23:10:02.346 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsopengltester.cpp:293 - QWindowsOpenGLTester::supportedRenderers GpuDescription(vendorId=0x8086, deviceId=0x9a49, subSysId=0xa211028, revision=1, driver: "igdumdim64.dll", version=QVersionNumber(31.0.101.4575), "Intel(R) Iris(R) Xe Graphics""") 0 renderer:  QFlags(0x1|0x20|0x200)
      [20240302 23:10:02.347 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:142 - Qt: Using WGL and OpenGL from "opengl32"
      [20240302 23:10:02.355 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:1010 - QOpenGLStaticContext::create OpenGL: "Intel","Intel(R) Iris(R) Xe Graphics" default ContextFormat: v4.6 profile: QSurfaceFormat::CompatibilityProfile options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions),SampleBuffers, Extension-API present
      Extensions: 245
      [20240302 23:10:02.378 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:1080 - QWindowsGLContext::QWindowsGLContext WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_NV_DX_interop2 WGL_ARB_robustness_application_isolation WGL_ARB_robustness_share_group_isolation WGL_ARB_create_context_robustness WGL_ARB_context_flush_control 
      [20240302 23:10:02.380 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:621 - "ARB::choosePixelFormat  Attributes:  0x2003 , 0x2027 , 0x2010 , 0x1 , 0x2001 , 0x1 , 0x2014 , 0x18 , 0x2011 , 0x1 , 0x2013 , 0x202b , 0x201b , 0x8 , 0x2023 , 0x8 , 0x2041 , 0x0 , \n    obtained px # 5  of  1 \n     PIXELFORMATDESCRIPTOR dwFlags=0x8025 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16 "
      [20240302 23:10:02.380 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:761 - ARB::createContext Creating context version 2 . 0 3 attributes
      [20240302 23:10:02.390 GMT Standard Time D] C:\Users\qt\work\qt\qtbase\src\plugins\platforms\windows\qwindowsglcontext.cpp:1141 - QWindowsGLContext::QWindowsGLContext 0x21c8b071430 ARB  requested:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile) 
          obtained # 5 ARB QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::CompatibilityProfile) 
           PIXELFORMATDESCRIPTOR dwFlags=0x8025 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=24 cStencilBits=8 iLayerType=0 cAlphaBits=8 cAlphaShift=24 cAccumBits=64 cAccumRedBits=16 cAccumGreenBits=16 cAccumBlueBits=16 cAccumAlphaBits=16  swap interval:  1 
          default:  ContextFormat: v4.6 profile: QSurfaceFormat::CompatibilityProfile options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions) 
          HGLRC= 0x30000 

       

       

       

      Call stack:

          0000000000000000()    Unknown    No symbols loaded.
           Qt6WebEngineCored.dll!gl::WGLApiBase::wglCreateContextAttribsARBFn(HDC__ * hDC=0x000000004201097d, HGLRC__ * hShareContext=0x0000000000000000, const int * attribList=0x0000000b22efdd08) Line 129    C++    Symbols loaded.
           Qt6WebEngineCored.dll!gl::GLContextWGL::Initialize(gl::GLSurface * compatible_surface=0x000001d763071eb0, const gl::GLContextAttribs & attribs={...}) Line 59    C++    Symbols loaded.
           Qt6WebEngineCored.dll!gl::init::CreateGLContext(gl::GLShareGroup * share_group=0x0000000000000000, gl::GLSurface * compatible_surface=0x000001d763071eb0, const gl::GLContextAttribs & attribs={...}) Line 181    C++    Symbols loaded.
           Qt6WebEngineCored.dll!`anonymous namespace'::InitializeGLContext(gl::GLSurface * surface=0x000001d763071eb0) Line 94    C++    Symbols loaded.
           Qt6WebEngineCored.dll!gpu::CollectGraphicsInfoGL(gpu::GPUInfo * gpu_info=0x000001d763444668, gl::GLDisplay * display=0x000001d7633ce380) Line 568    C++    Symbols loaded.
           Qt6WebEngineCored.dll!gpu::CollectContextGraphicsInfo(gpu::GPUInfo * gpu_info=0x000001d763444668) Line 671    C++    Symbols loaded.
           Qt6WebEngineCored.dll!gpu::GpuInit::InitializeInProcess(base::CommandLine * command_line=0x000001d7630664b0, const gpu::GpuPreferences & gpu_preferences={...}) Line 916    C++    Symbols loaded.
           Qt6WebEngineCored.dll!content::InProcessGpuThread::Init() Line 78    C++    Symbols loaded.
           Qt6WebEngineCored.dll!base::Thread::ThreadMain() Line 401    C++    Symbols loaded.
           Qt6WebEngineCored.dll!base::`anonymous namespace'::ThreadFunc(void * params=0x000001d763419bd0) Line 135    C++    Symbols loaded.
           kernel32.dll!00007ffe4b44257d()    Unknown    Non-user code. Cannot find or open the PDB file.
           ntdll.dll!00007ffe4c52aa58()    Unknown    Non-user code. Cannot find or open the PDB file.
       

       

      Code:

      New Qt Quick project.

      Add to main

       

      QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);        QtWebEngineQuick::initialize();
      

      add to qml:

       

       

      import QtQuick
      import QtWebEngine
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")    WebEngineView {
              url: "https://google.com"
              anchors.centerIn: parent
              width: 300
              height: 300
          }
      }
        

       

      On 6.6.2 this example does not crash, but I have a more complicated example ( which I can't easily share ), where creating the same in a Dialog just appears as white.

       

       

      Attachments

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              michaelcox Michael Cox
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes