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

AndroidContentFileEngineIterator hangs when listing shared content with nested dirs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15, 6.0, 6.1, 6.2, 6.3
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      Android
    • Sprint:
      2022wk34FOQtforAndroid

      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

              Assignee:
              assam Assam Boudjelthia
              Reporter:
              taipan BogDan Vatra
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes