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

Textureinthread example crashes when run in i.MX8 on Wayland.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Incomplete
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: QPA: Wayland
    • Environment:
      Embedded linux / i.MX8
    • Platform/s:
      Linux/Wayland, Linux/Yocto

      Description

      The qtdeclarative example examples/quick/scenegraph/textureinthread is crashing when run on the imx8 in Weston:

      Thread 1 "textureinthread" received signal SIGSEGV, Segmentation fault.
      0x0000fffff4b90260 in wl_list_insert () from /usr/lib/libwayland-server.so.0
      (gdb) bt
      #0 0x0000fffff4b90260 in wl_list_insert () from /usr/lib/libwayland-server.so.0
      #1 0x0000fffff4b6abfc in wl_display_read_events () from /usr/lib/libwayland-client.so.0
      #2 0x0000fffff49b01d0 in QtWaylandClient::QWaylandDisplay::flushRequests() () from /usr/lib/libQt5WaylandClient.so.5
      #3 0x0000fffff690bf28 in ?? () from /usr/lib/libQt5Core.so.5
      #4 0x0000fffff6931a40 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
      #5 0x0000fffff68d0764 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
      #6 0x0000fffff68d9450 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
      #7 0x0000aaaaaaab0954 in main ()
      {{}}

      It also crashes on Qt Wayland compositor pure-qml:

      Thread 5 "QSGRenderThread" received signal SIGSEGV, Segmentation
      fault.
      [Switching to Thread 0xffffd3d8a160 (LWP 1574)]
      0x0000fffff2c9d270 in wl_list_insert () from /usr/lib/libwayland-server.so.0
      (gdb) bt
      #0 0x0000fffff2c9d270 in wl_list_insert () from /usr/lib/libwayland-
      server.so.0
      #1 0x0000fffff2c77bfc in wl_display_read_events () from /usr/lib/libwayland-
      client.so.0
      #2 0x0000fffff2a05ffc in
      QtWaylandClient::QWaylandDisplay::dispatchQueueWhile(wl_event_queue*,
      std::function<bool ()>, int) () from
      /opt/qt5/lib/libQt5WaylandClient.so.5
      #3 0x0000fffff2a0d180 in
      QtWaylandClient::QWaylandWindow::waitForFrameSync(int) () from
      /opt/qt5/lib/libQt5WaylandClient.so.5
      #4 0x0000fffff264c0c4 in
      QtWaylandClient::QWaylandGLContext::swapBuffers(QPlatformSurface*) ()
      from /opt/qt5/plugins/wayland-graphics-integration-client/libqt-plugin-
      wayland-egl.so
      #5 0x0000fffff75ad444 in QOpenGLContext::swapBuffers(QSurface*) () from
      /opt/qt5/lib/libQt5Gui.so.5
      #6 0x0000fffff7c92ebc in ?? () from /opt/qt5/lib/libQt5Quick.so.5
      #7 0x0000fffff7c96828 in ?? () from /opt/qt5/lib/libQt5Quick.so.5
      #8 0x0000fffff67d78a0 in ?? () from /opt/qt5/lib/libQt5Core.so.5
      #9 0x0000fffff63de850 in start_thread (arg=0xfffffffff356) at
      pthread_create.c:479
      #10 0x0000fffff6094f6c in thread_start () at
      ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
      {{}}

      It was tested on an NXP i.MX8 QM MEK board. 
      * Linux kernel 5.4.47
      * Yocto 3.1 Zeus
      * Weston 8.0.0

      Only Qt 5.15.2 is affected. With Qt 5.15.1 it was still working.

        Attachments

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

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            tuomas.vaarala Tuomas Vaarala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes