Priority: P1: Critical
Affects Version/s: 6.2.1
Fix Version/s: None
Component/s: QPA: X11/XCB
Environment:Debian buster ("oldstable") amd64 with Qt 5.17.6 and 6.2.1 installed using the MaintainanceTool. cmake version 3.18.4. GeForce GT 710, NVidia driver 418.211.00. X Server "The X.Org Foundation" version 1.20.4 (12004000). XDG_SESSION_TYPE is "x11"
Just started playing with Qt 6...
But even my most trivial "minimal example" QQuickView-based application seems to Segmentation fault in the exit. gdb showed it to be in XQueryExtension().
Double checked same code works fine when built with 5.15.6.
Attached files are
- main.cpp, main.qml, resource.qrc - what you'd expect for an it-doesn't-get-simpler-than-this QML app.
- CMakeLists.txt - I'm new to CMake but this seems to work.
- MAKE-linux-native - captures the cmake invocation to build vs. Qt6.
- MAKE-linux-native-qt5 - captures the cmake invocation to build vs. Qt5. NB Needs all the "Qt6" in CMakeLists.txt substituting with "Qt5" before using.
Stack trace for the crash-on-exit 6.2.1 build is
While the build vs. 5.15.6 exits cleanly.
I don't have any Debian "bullseye" ("stable") machines currently but will start upgrading at some point and report back if that improves things.
Update: Another data point... on another Debian buster/"olstable" amd64 machine with Intel's on-chip graphics (i7-770K) and Wayland graphics (XDG_SESSION_TYPE is "wayland"), the Qt6.2.1 build exits fine. (FWIW, it also emits a message to the console "qt.qpa.wayland: Creating a fake screen in order for Qt not to crash"). Seems to imply this is something specific to x11 rather than wayland though.