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

Crash in WaylandEglClientBuffer::WaylandEglClientBuffer

XMLWordPrintable

    • Linux/Wayland
    • f14012c1b (dev), 07983adc2 (6.10)

       

      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...

        For Gerrit Dashboard: QTBUG-115063
        # Subject Branch Project Status CR V

            rgriebl Robert Griebl
            ilya-fedin Ilya Fedin
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes