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

Qt wayland client' main thread blocks if it is not visible on the compositor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.6.3
    • QPA: Wayland
    • Target OS: Automotive AditPF Linux
      Target architecture: AditPFLinux-x86_64

      QT_QPA_PLATFORM=wayland-egl
    • Linux/Wayland

    Description

      The same issue reported by QTBUG-74715 for Qt5.12 has been observed with Qt5.6.3.
      The original patch (https://codereview.qt-project.org/#/c/251380/5/) can not be applied.

      Problem description

      QtWaylandClient blocks the main thread when it is not visible in the compositor window.
      The thread continues if the client application is brought to foreground (i.e. visible). It is suspected that the wayland client waits for an event from the wayland compositor.

      The issue causing the client to block is reproducible in two cases:

      1. When a client is connected,  its wayland surface is attached to a surfaceItem (with visible: false)
      2. When a client is connected, its wayland surface is attached to a surfaceItem (with visible: true). After that, the surfaceItem is destroyed.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            chenh Hk Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes