Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QtMultimedia - UI Freezes after 6.4.0 update.
Forum Update on Monday, May 27th 2025

QtMultimedia - UI Freezes after 6.4.0 update.

Scheduled Pinned Locked Moved Unsolved Qt 6
qtmultimediaqt6.4.0qt6videoplayback
18 Posts 3 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lucas Simoes
    wrote on 7 Oct 2022, 14:11 last edited by
    #1

    Hi all,
    Since I updated Qt 6.2.4 to 6.4.0 (which fixes QTBUG-105344) my application seems slower and in some cases it freezes all the UI.

    The application is a kind of video player, I am currently using MPG files (mpeg-1/2), but also tested .AVI. (I don't think these matters)

    After start the playback it freezes for a while (5-10 seconds, or more), sometimes it goes back to normal, but sometimes I need to terminate the process.
    It also seems slower when jump to a point of the video by doing QMediaPlayer::setPosition.

    I already tested the Qt example “Media Player Example” and it seems normal while running any video format.

    Anyone having the same issue or something similar??

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 7 Oct 2022, 18:38 last edited by
      #2

      Hi,

      What is different between the Qt example and your application from a Qt multimedia point of view ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • L Offline
        L Offline
        Lucas Simoes
        wrote on 8 Oct 2022, 00:43 last edited by
        #3

        Hi SGaist, thanks for the fast replay.

        A lit bit confuse , but...
        I have a QGraphicsView and inside my QGraphicsScene I have the QGraphicsVideoItem, and then I send the video output to it (m_player->setVideoOutput( videoItem );).

        *I am currently using QGraphicsView because I need to rotate de video.

        The freeze occurs only after start the playback.

        I already tried to disable some features like the eventFilter which set the QToolTip by passing the mouse through, but nothing works. It is really strange because in 6.2.4 works well, I had never seen this problem. Maybe the playback mechanism has changed in this new version?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 8 Oct 2022, 19:01 last edited by
          #4

          Can you check with Qt 6.3 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply 10 Oct 2022, 13:16
          0
          • S SGaist
            8 Oct 2022, 19:01

            Can you check with Qt 6.3 ?

            L Offline
            L Offline
            Lucas Simoes
            wrote on 10 Oct 2022, 13:16 last edited by
            #5

            @SGaist the freeze does not happen with Qt 6.3.0, but I really need 6.4 because of the fix. :(

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 10 Oct 2022, 13:22 last edited by
              #6

              You should open a bug report and provide a minimal compilable example that shows the freeze.

              As a workaround, you can build the qtmultmedia from your 6.3 sources (only this module, no need to build anything else) with the patch you need added on top of it.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • L Offline
                L Offline
                Lucas Simoes
                wrote on 10 Oct 2022, 19:39 last edited by
                #7

                Ok @SGaist, I am currently trying this workaround, I will let you know what I got.
                Thanks.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Lucas Simoes
                  wrote on 11 Oct 2022, 14:48 last edited by
                  #8

                  @SGaist, I was able to make the workaround possible. The video is rewinding normally, but I needed to convert my mpeg1/2 video to mp4|avi, using MPG it crashes.

                  Thank you.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 11 Oct 2022, 18:35 last edited by
                    #9

                    Which platform are you on ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    L 1 Reply Last reply 13 Oct 2022, 14:24
                    0
                    • S SGaist
                      11 Oct 2022, 18:35

                      Which platform are you on ?

                      L Offline
                      L Offline
                      Lucas Simoes
                      wrote on 13 Oct 2022, 14:24 last edited by
                      #10

                      @SGaist
                      Linux OpenSuse 15.4 kernel 5.14.21
                      KDE: 5.90 / Plasma: 5.24.4

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 13 Oct 2022, 19:21 last edited by
                        #11

                        Do you have the same issue if you play the video with gstreamer directly ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        L 2 Replies Last reply 14 Oct 2022, 16:36
                        0
                        • S SGaist
                          13 Oct 2022, 19:21

                          Do you have the same issue if you play the video with gstreamer directly ?

                          L Offline
                          L Offline
                          Lucas Simoes
                          wrote on 14 Oct 2022, 16:36 last edited by
                          #12

                          No, only in my code.

                          1 Reply Last reply
                          0
                          • S SGaist
                            13 Oct 2022, 19:21

                            Do you have the same issue if you play the video with gstreamer directly ?

                            L Offline
                            L Offline
                            Lucas Simoes
                            wrote on 14 Oct 2022, 17:37 last edited by Lucas Simoes
                            #13

                            @SGaist I Forgot to mention... the entire UI freezes but the video still running normally.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 14 Oct 2022, 18:36 last edited by
                              #14

                              Then it's something you should report.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              1
                              • S Offline
                                S Offline
                                Sam Aaron
                                wrote on 18 Oct 2022, 10:43 last edited by Sam Aaron
                                #15

                                Just to add that I have noticed similar behaviour with Sonic Pi (https://github.com/sonic-pi-net/sonic-pi).

                                After upgrading Qt to 6.4, the app freezes at some point. It appears non-deterministic - sometimes after minutes, another time after an hour or so.

                                Downgrading to Qt 6.3.2 didn't fix the issue either - my guess is that whatever is causing the issue is new to 6.3.2 and 6.4.

                                Downgrading to Qt 6.2.4 does appear to have fixed the issue. I've had the GUI running overnight and all morning and no freezing so far.

                                I should also note that I've been working on Sonic Pi from the very first Qt 5.x releases for 10 years now and this has been the first time I've seen such freezing.

                                S 1 Reply Last reply 18 Oct 2022, 21:04
                                1
                                • L Offline
                                  L Offline
                                  Lucas Simoes
                                  wrote on 18 Oct 2022, 14:41 last edited by
                                  #16

                                  Update:

                                  Unfortunately, I couldn't fix the freeze by using Qt 6.4, but that workaround worked with Qt 6.3.2 and 2.4.0.

                                  About the rewind problem, I was finally able to run without crashes. So, the final solution for me:

                                  Fedora 36 (KDE Plasma 5.25.5) - kernel 5.19.15
                                  Gstreamer backend 1.20.3
                                  Qt 6.3.2 (plus qtmultimedia workaround)

                                  And I forgot to mention, the freeze also appears in Qt 6.3.2 if using Wayland as window manager.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 18 Oct 2022, 15:18 last edited by
                                    #17

                                    So I insist: open a bug report :-) Both of you have solid evidence that something is amiss so don't hesitate.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    1
                                    • S Sam Aaron
                                      18 Oct 2022, 10:43

                                      Just to add that I have noticed similar behaviour with Sonic Pi (https://github.com/sonic-pi-net/sonic-pi).

                                      After upgrading Qt to 6.4, the app freezes at some point. It appears non-deterministic - sometimes after minutes, another time after an hour or so.

                                      Downgrading to Qt 6.3.2 didn't fix the issue either - my guess is that whatever is causing the issue is new to 6.3.2 and 6.4.

                                      Downgrading to Qt 6.2.4 does appear to have fixed the issue. I've had the GUI running overnight and all morning and no freezing so far.

                                      I should also note that I've been working on Sonic Pi from the very first Qt 5.x releases for 10 years now and this has been the first time I've seen such freezing.

                                      S Offline
                                      S Offline
                                      Sam Aaron
                                      wrote on 18 Oct 2022, 21:04 last edited by
                                      #18

                                      @Sam-Aaron said in QtMultimedia - UI Freezes after 6.4.0 update.:

                                      Downgrading to Qt 6.2.4 does appear to have fixed the issue. I've had the GUI running overnight and all morning and no freezing so far.

                                      Unfortunately (for me) this assertion was wrong and I got a freeze with a Qt 6.2.4 build. Apologies for the red herring - my issue is likely unrelated.

                                      1 Reply Last reply
                                      0

                                      9/18

                                      11 Oct 2022, 18:35

                                      • Login

                                      • Login or register to search.
                                      9 out of 18
                                      • First post
                                        9/18
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved