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

QFileSystemWatcher on Windows together with qt_ntfs_permission_lookup emits fileChanged incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 64-bit
    • Platform/s:
      Windows

      Description

      Hello,

      I have started to receive bug reports from users about incorrect work of my app. For some reason, code that worked perfectly fine started to act really strange.

      To react on change in files, I watch them with QFileSystemWatcher. Additionally, on Windows I enable  qt_ntfs_permission_lookup when work with file. And this combination started to work incorrectly. The watcher emits fileChanged for paths I don't watch. This mess with the logic of the app. It forces my app thinks that file was updated, when in reality it doesn't.

      I have prepared a simple test project to show three cases.

      If we do not use qt_ntfs_permission_lookup, it works as expected. But if to use at least in one case it messes all three watchers even if they watch different paths in separate folders. 

        Attachments

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

          Activity

            People

            Assignee:
            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            Reporter:
            dismine Roman Telezhynskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes