Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42985

Qt GUI application disappear or crash when no screens are available

    XMLWordPrintable

Details

    • 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

          For Gerrit Dashboard: QTBUG-42985
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              zaps166 Błażej Szczygieł
              Votes:
              34 Vote for this issue
              Watchers:
              65 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: