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

AnimatedImage doesn't close file opened

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.4.1, 5.5.1, 5.6.0 Alpha
    • None
    • Linux (OpenSuse Leao 42.1 on iMac - 8GB ram - Lubuntu on i386 2GB ram - Android 4.4.2 1 GB ram)

      QMovie doesnt' close the file opened with QMovie(fileName). This implies that by opening many files on Linux and Android we have the error (and crash): "too many open files".

      import QtQuick 2.5
      import QtQuick.Window 2.2
      
      Window {
          visible: true
      
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  Qt.quit();
              }
          }
          Repeater {
              model: 2000
              AnimatedImage {
                  cache: true
                  fillMode: Image.PreserveAspectFit
                  source: "file:loading.gif"
              }
          }
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            niqt Nicola De Filippo
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes