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

Memory leak when using AnimatedImage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.8.1
    • None
    • Ubuntu 12.04

    Description

      I used a Loader to load/unload an AnimatedImage and an Image items.

      • Expected results:
      • User is able to tap on the screen to show an image and an animated image alternatively.
      • When an image is unloaded the previous one has to be freed.
      • Real results:
      • Although the item has been unloaded (set its source to empty string and got the log "item is destroyed") but the memory still does not be reduced.
      • Even if do that actions many time, the memory will be increased.

      I checked the source code and found that you always set CacheAll mode for the movie to cache all frames of the animated image. Why don't you provide cache property for the item to change the cache mode from outside. And is it able to set the cache size or LRU cache algorithms?

      I attached a demo code for you to recheck.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              raycad Nguyen Truong Duong
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes