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

Memory leaks in QtMultimedia 5.0 on QML element MediaPlayer and Video

    XMLWordPrintable

Details

    • 5be252432804ebf50992c266dad9c93bd039ed41

    Description

      Hi there,

      Not quite sure if this is a bug. Maybe I was just walking the wrong way. Please help me understand if I misunderstood this.

      I’m currently working on a project, in which, I need a simple video player component to constantly play a list of videos. Let’s say, I have 8 videos, and want to switch to the next video in the list every 10 seconds. So, 1->2->3->4->5->6->7->8->1->2->3->4-> ...

      I did the test with a very simple code (see attachment, only writing QML code, leaving other code files in the project as default). When I run this simple test program, it looks like it keeps eating memory without releasing it.

      on start, it uses only around 60 MB memory (observed simply via Windows Task Manager)
      30 minutes later, the memory usage goes up to around 130 MB, and keeps increasing
      3 hours later, this program crashes.
      So the question here is, is this a bug, or am I walking the wrong way?

      Environment:
      ==========
      Windows 7 SP1, Visual Studio 2010, Qt 5.1.0 32 bit.

      Code:
      ====
      (putting the Timer in QML is only for test purpose…)
      (the maximum video file size is around 8MB, total size of these 8 videos is less than 24 MB)

      See the attachment (main.qml).

      Additionally, I’ve also tried Video instead of MediaPlayer+VideoOutput. Same issue.

      Any suggestion would be really appreciate.

      Attachments

        For Gerrit Dashboard: QTBUG-32481
        # Subject Branch Project Status CR V

        Activity

          People

            ylopes Yoann Lopes
            yin Yin Chang
            Votes:
            10 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes