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

QNetworkAccessManager::get crashes with specific url

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.4, 5.13.1, 5.14.0 Alpha
    • 5.11, 5.12.3, 5.13.0 Beta3
    • Network
    • None
    • WinRT
    • 8adcfa8b240876236f08ad826e6d77ff1f5e9a96 (qt/qtbase/5.12)

    Description

      When accessing the web address "https://nominatim.openstreetmap.org" then the app crashes with Qt 5.11, 5.12, and 5.13 (both WinRT 32 and 64). The crash does not occur with Qt 5.10 WinRT 32/64.

      Interestingly the crash does not happen with different other webserver addresses I tested.

       

      The following code reproduces the problem (just place it in a new project):

       

      auto nam = new QNetworkAccessManager(this);
      
      QNetworkRequest request;
      //request.setHeader(QNetworkRequest::UserAgentHeader, "Test Browser");
      //request.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true);
      //request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true);
      
      request.setUrl(QUrl("https://nominatim.openstreetmap.org/reverse?format=json&addressdetails=1&namedetails=1&extratags=1&lat=58.02&lon=11.9&zoom=10&accept-language=en-US"));
      
      QNetworkReply* reply = nam->get(request);
      if (reply)
      {
      	qDebug() << "Got reply. Ok...";
      }
      

       

       

      Attachments

        Issue Links

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

          Activity

            People

              manordheim Mårten Nordheim
              DanielSt Peter Staab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes