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
    • 6.0, 6.1, 6.3, 5.15, 6.2
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: