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

AnimatedImage uses a lot of memory when caching is enabled

XMLWordPrintable

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

      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.

        1. animbad.zip
          100 kB
        2. qtbug64272.zip
          100 kB
        For Gerrit Dashboard: QTBUG-64272
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There is 1 open Gerrit change