Details
Description
Despite the fact we use default D3D11 RHI backend on Windows, I encountered several issues related to OpenGL context creation in our users' reports.
There are warnings:
Failed to load and resolve WGL/OpenGL functions
Failed to load opengl32sw (The specified module could not be found.)
And even crashes on some older GPUs with the following call stack:
... ig11icd64.pdb 0xbc9e2de9 + 77289 ntdll.pdb 0x35cdfc41 + 64577 opengl32.pdb 0x14bdca2f + 117295 opengl32.pdb 0x14cbb000 + 1028096 opengl32.pdb 0x14cbba90 + 1030800 opengl32.pdb 0x14bdcf40 + 118592 opengl32.pdb 0x14bdcad0 + 117456 opengl32.pdb 0x14bdd223 + 119331 ntdll.pdb 0x35cdfce8 + 64744 qwindows.pdb QWindowsGLContext::updateObtainedParams(HDC__ *,int *) qwindowsglcontext.cpp:1192 qwindows.pdb QWindowsGLContext::QWindowsGLContext(QOpenGLStaticContext *,QOpenGLContext *) qwindowsglcontext.cpp:1131 qwindows.pdb QWindowsIntegration::createPlatformOpenGLContext(QOpenGLContext *) qwindowsintegration.cpp:426 Qt6Gui.pdb QOpenGLContext::create() qopenglcontext.cpp:358 Qt6WebEngineCore.pdb QtWebEngineCore::initialize() qtwebenginecoreglobal.cpp:84 Qt6Core.pdb QCoreApplicationPrivate::init() qcoreapplication.cpp:919 Qt6Gui.pdb QGuiApplicationPrivate::init() qguiapplication.cpp:1580 Qt6Gui.pdb QGuiApplication::QGuiApplication(int &,char * *,int) qguiapplication.cpp:642
In both cases the call stack leads us to QtWebEngineCore::initialize().
Attachments
For Gerrit Dashboard: QTBUG-128784 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
588744,9 | Do not create shared OpenGL context when D3D11 RHI is used | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
590191,2 | Do not create shared OpenGL context when D3D11 RHI is used | 6.8 | qt/qtwebengine | Status: MERGED | +2 | 0 |
590647,2 | Do not create shared OpenGL context when D3D11 RHI is used | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |
592183,10 | WebEngineContext: actualize and cleanup GL type detection | dev | qt/qtwebengine | Status: MERGED | +2 | +1 |
593119,3 | WebEngineContext: actualize and cleanup GL type detection | 6.8 | qt/qtwebengine | Status: MERGED | +2 | 0 |