Qt World Summit: Submit your Presentation

No network reply received in WinRT after calling QNetworkAccessManager::post

  • Hi

    I'm using Qt 5.4.1 and have an App which runs fine on all the other platforms except on winrt where after a QNetworkAccessManager::post, the QNetworkAccessManager::finished signal never gets triggered. The post is just an http message and I can see that the server receives and responds to the post.

    So the call to post is working fine but no timeout is triggered and the finished signal is never emitted so the app just sits and waits for the reply.

    The only clue that I can see are some error messages in the debug output indicating exceptions being thrown by the windows libraries:

    First-chance exception at 0x00007FF9A3578B9C (KernelBase.dll) in app.exe: 0x40080202: WinRT transform error (parameters: 0x000000008000000B, 0x0000000080070490, 0x0000000000000014, 0x0000001CD208EF00)

    If I enable breaking on exceptions I can trace these back to this method/line
    hr = view2->get_Dispatcher(&coreDispatcher);

    I get a couple of these exceptions before the call to post and then at least one after, so there may be other things that have been affected.

    Any suggestions on what might be wrong?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since it looks like it could be a very platform specific bug, i'd recommend to check the bug report system to see if it's something known. You can also bring the discussion to the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)

  • Thanks.
    I couldn't find a bug myself but it seems there is one, so in the event that someone else might be interested it is https://bugreports.qt.io/browse/QTBUG-43837.

Log in to reply