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

Crash in WaylandEglClientBuffer::WaylandEglClientBuffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15, 6.2, 6.5
    • Wayland Compositor
    • None
    • Linux/Wayland

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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes