Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.1
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.