Priority: P2: Important
Affects Version/s: 5.1.0
Fix Version/s: 5.2.0
Component/s: GUI: Window management
Commits:4e043026725b1dfd201bf432bdd0b28ba8867196, 9194fc00a61379fa9ccd4b05c480f67b2fb739bc, f738a4a5d5f62c1136b5820a89c9b47080d150a4
Windows: When switching users while a QGLWidget is still visible then it can cause a crash when the user comes back. The reason it crashes is because the QPlatformWindow for the QGLWidget has been deleted (due to the top level one being recreated) but it has not been recreated at this point. Therefore when it goes to flush the backing store it will crash as it cannot get the HDC for the deleted QPlatformWindow.
I reproduced this using the hellogl_es2 example and doing the following:
1) Run the example
2) CTRL+ALT+DEL and select switch user
3) Just pick the same user (you don't actually need to switch, as long as the switch user is triggered)
4) The app will crash
If it does not crash, then try on a higher resolution such as 1920x1080.
|For Gerrit Dashboard: QTBUG-33062|
|63536,2||Do not recreate window if it is moved to a virtual sibling screen.||stable||qt/qtbase||Status: MERGED||+2||0|
|63568,2||Windows: Keep monitors when system is locked.||stable||qt/qtbase||Status: MERGED||+2||0|