Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl

Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 995 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hello!

    When I have installed Qt 5.9.9 and use QNetworkAccessManager, it displays the following issue:

    QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl("https://....")
    

    No such issue was present in the Qt 5.9.8. Any ideas how to fix it? Or is it a bug in Qt 5.9.9? Thanks.

    1 Reply Last reply
    0
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #2

      Yes, it is a bug. I have checked the code from Qt 5.9.9 - qnetworkreplyhttpimpl.cpp:

      void QNetworkReplyHttpImplPrivate::_q_startOperation()
      {
          Q_Q(QNetworkReplyHttpImpl);
      
          // ensure this function is only being called once
          if (state == Working) {
              qDebug() << "QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once" << url;
              return;
          }
          state = Working;
      ...
      

      And from Qt 5.13.2 and Qt 5.14.0:

      void QNetworkReplyHttpImplPrivate::_q_startOperation()
      {
          Q_Q(QNetworkReplyHttpImpl);
      
          if (state == Working) // ensure this function is only being called once
              return;
      
          state = Working;
      ...
      

      As you can see in Qt 5.13.2 and Qt 5.14.0 code, no qDebug() is found, but it is present in Qt 5.9.9. I will report it.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Cobra91151 said in Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl:

        I will report it.

        It was already fixed, no need to open another report for it.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        Cobra91151C 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @Cobra91151 said in Qt network issue: QNetworkReplyHttpImplPrivate::_q_startOperation was called more than once QUrl:

          I will report it.

          It was already fixed, no need to open another report for it.

          Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by Cobra91151
          #4

          @Christian-Ehrlicher

          Hello!

          You mean it was fixed in Qt 5.12.2: https://bugreports.qt.io/browse/QTBUG-72463? I need it for Qt 5.9.9. I will fix it by myself. Thanks.

          Christian EhrlicherC 1 Reply Last reply
          0
          • Cobra91151C Cobra91151

            @Christian-Ehrlicher

            Hello!

            You mean it was fixed in Qt 5.12.2: https://bugreports.qt.io/browse/QTBUG-72463? I need it for Qt 5.9.9. I will fix it by myself. Thanks.

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Cobra91151 Correct, it was not backported because it's not really critical, only a (wrong) warning

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            2
            • Cobra91151C Offline
              Cobra91151C Offline
              Cobra91151
              wrote on last edited by Cobra91151
              #6

              So, I have fixed this issue and successfully rebuilt Qt 5.9.9. Now it works well. The issue is resolved.

              1 Reply Last reply
              2

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved