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

Running into unreachable code on BGR888 displays

    XMLWordPrintable

Details

    Description

      Some X severs seems to default to BGR888 visuals which cause Qt applications to abort. Running a Qt application on such causes (Qt Designer in this case):

      QXcbConnection: Failed to initialize XRandr
      Qt: XKEYBOARD extension not present on the X server.
      QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
      ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file /home/user/work/qt/git/qtbase/src/gui/image/qimage_p.h, line 132
      Aborted (core dumped)
      

      Can be reproduced at least with vnc4server (under that name in Ubuntu repos) and:

      vncsever -pixelformat bgr888 &
      QT_XCB_GL_INTEGRATION=none DISPLAY=:1 ./designer
      

      This almost works with Qt 5.10 when QT_XCB_NATIVE_PAINTING=1 is set and also with Qt 4. In these cases it can display the Designer just fine.

      Attachments

        1. gdb.txt
          3 kB
        2. qtdiag.txt
          6 kB
        3. xdpyinfo.txt
          3 kB

        Activity

          People

            vgt Eirik Aavitsland
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: