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

QNetworkReply::ReadAll crashes under Windows 32-bit MSVC2012

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.1.1
    • Core: I/O
    • None
    • MSVC 2012
      Windows 8.1 64-Bit

    Description

      Using QNetworkReply under Windows 32-bit can cause access violation crashes if file size is around 450 MB.

      If you are using QNetworkReply after the finish signal is emitted and try to use readAll function, the application stops to response and crashes with an access violation. The same code works without any problem under Windows 64-bit.

      A workaround is to use reply->read(reply->size()), content is read and no crash happens. This problem is present since Qt5.0.

      Sample code: https://github.com/QuantumBytesInc/ROAL/blob/master/src/cpp/httpdownload.cpp

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            geladriet Manuel Gysin
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes