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

Networkmanager reply never returns in Release builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.6.2
    • Network
    • None
    • All

    Description

      I have a qt cmake project and use qt creator.

      In Debug builds everything works fine, i receive the data from my api. But when i set the build type to "Release" then the networkmanager just freezes and never returns a reply:

      auto m_manager = new QNetworkAccessManager(this);

      QNetworkReply* reply = m_manager->post(request, postData);

      connect(reply, &QNetworkReply::finished, this, [=,this]()

      {         // In Release builds it will never be called     // In Debug builds this works fine }

      );

       

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            trittler_s Sven Trittler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes