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

QFileSystemWatcher on Windows together with qt_ntfs_permission_lookup emits fileChanged incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • Windows 10 64-bit
    • 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

            cnn Qt Core & Network
            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