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

GUI freeze in gstreamer when unloading Video element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.8
    • Multimedia
    • Linux/Wayland

    Description

      The actual problem was first seen in a larger application on an embedded device, but could be reproduced with the attached simple video app (video.qml) on desktop (Ubuntu 22.04, Qt6.5.8, gstreamer 1.20.3). There's a 5s GUI thread freeze, when unloading the video component (by clicking the orange rectangle). The freeze only occurs after the video already stopped playing with several of the following warnings:

      QGstElement: failed to query position
      QGstPipeline: failed to query position, using previous position
      

      Afaiks, on the actual device, the video keeps playing, but the freeze still occurs.

      The attached qtmultimedia workaround (0001-Work-around-5s-freeze-in-GUI-thread.patch) reduces the timeout to 10ms, though I can't fully assess, whether that would be a viable workaround (there's at least the warning Could not finish change state of "playerPipeline" ASYNC PAUSED PAUSED).

      Attachments

        1. 0001-Work-around-5s-freeze-in-GUI-thread.patch
          2 kB
        2. test.mp4
          29 kB
        3. video.qml
          0.8 kB

        Issue Links

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

          Activity

            People

              lars.sutterud Lars Sutterud
              bweimer Bernd Weimer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes