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

Losing data during ftp transfer when QProgressDialog is used.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.6.2, 4.6.3, 4.7.0, 4.7.1
    • Network: FTP
    • None
    • Tested on Windows.

    Description

      Using QFtp together with the QProgressDialog will randomly lose some data from the end of a file during a get operation.
      This can be reproduced with the ftp example in Qt, but I have also attached an example application that downloads the same file 50 times with some debug output to make it simpler to test this.
      I have tested this against Nokias Qt ftp site and it seems like I only have this issue with some files. The example is setup to download one such file that has this issue.

      It turns out that the problem happens when I use a QProgressDialog and I connect in to the setValue slot of the progress dialog. If I comment out that connection then all files are transferred ok. If the bad line is left in the code, then probably 80% of the 50 files transfer ok, but the others are slightly short by varying amounts, typically anything up to 20k is missing.

      Attachments

        1. ftptest.zip
          2 kB
        2. patch.diff
          0.7 kB

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              xcm Martin Petersson (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes