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

QNetworkAccessBackend pointer is NULL when request is done in thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.2, 4.7.3, 4.8.0
    • Network
    • None
    • WindowsXP and Windows7
    • 7e662f3727e7c3dd3c41c29ed49bc41d2b66c744, 29495592d27505feff024d574e1333809794c304

    Description

      QNetworkAccessBackend pointer is sometimes NULL with an application that has two threads that issue network request. With the attached application the issue can be reproduced using an invalid url. Sometimes when the application is run the request is started and a correct error message is received: "Host www.ll.m not found". Occasionally the QNetworkAccessBackend pointer is NULL and error message: "Protocol "http" is unknown" is received.

      When there is no backend the message is sent from QNetworkReplyImplPrivate::_q_startOperation().

      The problem does not occur when threads are not used.

      Attachments

        Issue Links

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

          Activity

            People

              shkearns Shane Kearns
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes