Details
Description
We have received crash reports from users where the log files show our shared QOpenGLContext is created with a QSurfaceFormat with OpenGL version 1.1. The program then crashes when we try to initialize shaders.
Here is an example context:
QOpenGLContext(0x1e6e01b48e0, nativeHandle=QVariant(QWGLNativeContext, ), format=QSurfaceFormat(version 1.1, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 16, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), screen="\\.\DISPLAY1")
We have tens of thousands of users, and we've only seen this on Windows 11 machines that have Intel Iris XE + NVidia graphics cards. Oddly, the error occurs when the program is using the NVidia card, which is the default. If the user configures our program to use the Intel integrated card, the issue does not occur.
The customers have tried various NVidia driver updates, and it doesn't seem to make a difference.
So far, though, we have been unable to duplicate this.
Attachments
For Gerrit Dashboard: QTBUG-109453 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
449293,5 | windows: gl: Fix WGL_SAMPLES reduction | dev | qt/qtbase | Status: MERGED | +2 | 0 |
450635,2 | windows: gl: Fix WGL_SAMPLES reduction | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
450636,2 | windows: gl: Fix WGL_SAMPLES reduction | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
450637,2 | windows: gl: Fix WGL_SAMPLES reduction | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |