Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.15, 6.2, 6.5
-
None
Description
1. Edit the minimal-qml example as follows:
diff --git a/examples/wayland/minimal-qml/main.cpp b/examples/wayland/minimal-qml/main.cpp index b187aa75..74524905 100644 --- a/examples/wayland/minimal-qml/main.cpp +++ b/examples/wayland/minimal-qml/main.cpp @@ -15,6 +15,9 @@ int main(int argc, char *argv[]) QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); QGuiApplication app(argc, argv); + { + QQmlApplicationEngine appEngine(QUrl("qrc:///main.qml")); + } QQmlApplicationEngine appEngine(QUrl("qrc:///main.qml")); return app.exec();
2. Attempt to launch webkitgtk 6.0's (the one based on gtk4) MiniBrowser using the compositor
3. Crash
As far as I understand, the cause is https://github.com/qt/qtwayland/commit/154bdf45dd51a521058c820e7b871008ce8508ae, the shuttingDown check. Once a QWaylandCompositor instance gets destroyed, the variable is set to true and no other QWaylandCompositor instance can use EGL.
I'm really surprised this wasn't reported for 6 years...