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

AnimatedImage uses a lot of memory when caching is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.1
    • None

    Description

      this will continue to allocate memory until it crashes. But not if visible.

      import QtQuick 2.7
      import QtQuick.Window 2.0
      
      Window {
          visible: true
          width: 640
          height: 680
          title: qsTr("QTBUG-64563")
      
          AnimatedImage {
              id: animation
              source: "miller.gif"
              cache: false
              visible: false
          }
      }
      

      In my app this happens, not because my AnimatedImage is set to not visible, but because it is clipped or on a page that is not currently visible.

       

      example project attached.

      Attachments

        1. animbad.zip
          100 kB
        2. qtbug64272.zip
          100 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jkj jkj yuio
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change