Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.9.6, 5.10.1, 5.11.2, 5.12.0 Beta 1
Description
If a QGuiApplication is started with no display connected or all connected displays turned off the eglfs qpa will not create any QScreen instances.
init_platform in qguiapplication.cpp correctly guards its call to QHighDpiScaling::updateHighDpiScaling() but QGuiApplicationPrivate::eventDispatcherReady() calls it unconditionally.
QHighDpiScaling::updateHighDpiScaling() calls QGuiApplication::primaryScreen() but doesn't account for the fact that it will return a null pointer if no QScreens have been created. The application will then crash when it tries to dereference the null pointer.
Attachments
For Gerrit Dashboard: QTBUG-71034 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
327939,4 | High-DPI: Test application startup with no screens | dev | qt/qtbase | Status: MERGED | +2 | 0 |