Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.0
-
None
-
Windows
-
-
7d663d2e0 (dev), d599451e2 (6.6), 0888056c3 (6.5)
Description
Hi,
We encounter a crash when one of our application closes.
Reason for that is a WM_DISPLAYCHANGE message being handled, leading to the qDisplayChangeObserverWndProc() being called. This callback calls the following code:
QWindowsContext::instance()->screenManager().handleScreenChanges();
However, at the point it's called, QWindowsContext::instance() has been set to null, and that call crashes.
Below a screenshot of the callstack:
Attachments
For Gerrit Dashboard: QTBUG-117473 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
506575,2 | Guard QWindowsContext::instance() during screen change on shutdown | dev | qt/qtbase | Status: MERGED | +2 | 0 |
510488,2 | Guard QWindowsContext::instance() during screen change on shutdown | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
510575,2 | Guard QWindowsContext::instance() during screen change on shutdown | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |