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

AndroidContentFileEngineIterator hangs when listing shared content with nested dirs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.13, 6.2.7, 6.4.3, 6.5.0
    • 5.15, 6.0, 6.1, 6.2, 6.3
    • Core: I/O
    • None
    • Android
    • f3c998510 (dev), a549aa434 (6.4), e5d591a0d (dev), 8dd90fc8a (6.4), 5cff1bc56 (tqtc/lts-6.2), cec1aff0b (6.5), 732c6ab2d (tqtc/lts-6.2), 762adef2a (tqtc/lts-5.15), 01679de6e (tqtc/lts-5.15)
    • 2022wk40FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk44FOQtforAndroid, 2022wk46FOQtforAndroid, 2022wk48FOQtforAndroid, 2022wk50FOQtforAndroid

    Description

      QDirIterator (using AndroidContentFileEngineIterator) will iterate forever if the folder conatins nested folders.
      Steps to reproduce:

      • use android 10+
      • open Android's file manager and create a few nested folders
      • run the following Qt code and choose the to top folder with nested folders
            const auto url = QFileDialog::getExistingDirectory(this);
            QDirIterator it{url, QDirIterator::Subdirectories};
            while(it.hasNext()) {
                qDebug() << it.next();
            }
        

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              taipan BogDan Vatra
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: