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

QGuiApplication causes crash when there is no display available

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.6.0
    • QPA: X11/XCB
    • 64bit Arch Linux, Qt 5.6.0

    Description

      A simple application like this:

      #include <QGuiApplication>
      
      int main(int argc, char** argv)
      {
          QGuiApplication app(argc, argv);
          return app.exec();
      }
      

      causes crash when there is no display available:

      $ DISPLAY="" ./gui_app
      QXcbConnection: Could not connect to display
      Aborted (core dumped)
      $

      Instead of unsetting DISPLAY one can run application from Xorg-less environment.
      Any KDE application crashes in similar scenario.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              paeglis Gatis Paeglis
              kicer MichaƂ Walenciak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes