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

QNetworkReply::ReadAll crashes under Windows 32-bit MSVC2012

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.1.1
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      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

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            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