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

QFileSystemWatcher.fileChanged not emitted just after addPath on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.7.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      VS2015 update 2 on Windows 8.1

      Description

      The attached program does the following:

      • create a file
      • watch it with QFileSystemWatcher
      • open it with flags out | trunc | binary
      • wait for the fileChanged event and exit

      The fileChanged event is not emitted sometimes. I run the program in a loop in git bash and after 1 to 10 runs, it deadlocks because the signal is not emitted.

      If we add a short sleep before opening the file after starting watching it, the program always succeeds.

        Attachments

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

          Activity

            People

            • Assignee:
              kleint Friedemann Kleint
              Reporter:
              blastrock Philippe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes