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

Memory leak in Phonon, phonon-backend, gstreamer-0.10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.1
    • (Inactive) Phonon
    • None
    • Ubuntu 10.04 LTS, gstreamer-0.10

    Description

      I have a small phonon application which tries to play videos in an infinite loop. I basically have connected the finished signal() to the play() slot. I use a simple logic to change the videos. I also have a timer for 5 sec which helps me change the video every 5 secs. What I expect is that the application plays the videos forever changing the video every 5 secs.

      But, The app stops playing the videos after about an hour or so. When I check it memory usage, every time the video changes its memory increases by 7-10mb and never decreases. By the time the app stops playing videos it was occupying about 2.4G!! The app itself never crashes though.

      On Ubuntu 10.04 LTS I can see this memory behavior in the System Monitor and using top. Also at the end I see the following message in the terminal "mmap() failed: Cannot allocate memory".

      On Ubuntu 12.04 LTS I dont see the memory being taken up but eventually the app stops playing the videos.

      The behavior is the same with or without the Timer. Without the timer each video plays for its full duration and hence it takes longer for the app to reach the same state.

      For me this looks like a bug or a memory leak some where either in Phonon or in the backend gstreamer. I have attached all the source code.

      Attachments

        1. phononTest.rar
          3 kB
          Suman Konda
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            suman Suman Konda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes