Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.0 RC
-
Arch Linux and OpenSUSE 13.2, Qt 5.3 an Qt 5.4 (not tested with Qt 5.2 and older, Qt 4.x works OK)
-
cf1c4d810a043ca5fe60623569c131a2a7a417df f4b8697c40bd476ef6bf83418e144adce7c7d4a3 1f4b84f69f13edd10300d035321623291c5d073e a094af001795c9651b299d700a992150d1aba33a
Description
When I disconnect monitor or connect/disconnect another monitor then all Qt5 applications disappears(process exists, GUI does not) or crashes(depending on Qt version, compilation, etc). I think the bug is in QXcbConnection::updateScreens() when "has_randr_extension" is "true". After disconnecting a monitor it is removed from "m_screens". After connecting a monitor, it is not detected again. The list is empty, so GUI disappears. The method "QXcbConnection::sendConnectionEvent()" can also crash the application when "m_screens" is empty.
The easiest way to reproduce the problem is:
xrandr --output HDMI2 --off && xrandr --output HDMI2 --auto
Replace "HDMI2" by your output name. It works with one monitor is connected. Not tested with more screens.
Attachments
Issue Links
- is duplicated by
-
QTBUG-44511 Qt is crashing, when one of the monitors is turned off or when the screen geometry is changed
- Closed
-
QTBUG-45081 Crashes when swapping screens
- Closed
-
QTBUG-45093 NULL dereference in QWidgetPrivate::drawWidget
- Closed
-
QTBUG-47033 Crashing when waking up from suspend/laptop is undocked
- Closed
-
QTBUG-47041 Changing the (only) active screen: Applications stop repainting, crashes on click exit
- Closed
-
QTBUG-47385 Crash in XCB Backend after display turned off/on
- Closed
- is required for
-
QTBUG-48845 Issues to be fixed before Qt 5.6.0 RC
- Closed
- relates to
-
QTBUG-38326 Qt Creator window disappears when plugging out second monitor
- Closed
-
QTBUG-40174 xrandr disabling the current screen results in qml applications crashing
- Closed
-
QTBUG-75768 keepassxc: segfault at error 4 in libQt5WaylandClient
- Closed
-
QTBUG-31389 "QXcbConnection: Failed to get the primary output of the screen" when launching applications when using X forwarding
- Closed
-
QTBUG-32567 Qt5: Signal QDesktopWidget::workAreaResized ( int screen ) does not work
- Closed
-
QTBUG-32973 Windows disappear when X monitor is disconnected
- Closed
-
QTBUG-44388 QXcbConnection::updateScreens accesses QGuiApplicationPrivate::platform_integration before it is constructed
- Closed
-
QTBUG-40174 xrandr disabling the current screen results in qml applications crashing
- Closed
-
QTBUG-48900 QtCreator crashes when changing screen resolutions
- Closed
-
QTBUG-49450 libqt5xcbqpa5 SIGSEGV crashes sporadically at QXcbWindow::handleClientMessageEvent
- Closed
-
QTBUG-44213 QScreen availableGeometry is incorrect after unplugging then plugging in primary monitor on Windows 7
- Closed
- replaces
-
QTCREATORBUG-14406 Crash with multiple screens after entering power saving mode
- Closed