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

WASM: Browser tab stops responding on aborting NetworkRequest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.1
    • 5.15.0 Beta4
    • Network: HTTP
    • None
    • Windows 10 / Qt 5.15.0 Beta 4 SingleThreaded / emsdk 1.39.8
      Chrome Version 81.0.4044.122 (Offizieller Build) (64-Bit)
    • WebAssembly
    • b2e998d4678b82f823d24f3c97d78dec034f4e71 (qt/qtbase/5.15) 3d452492c6c8e8e67f92f8ca573ac045843227b6 (qt/qtbase/dev)

    Description

      The attached example performs a HTTP-Request to a webserver and an invalid port that always will fail. There is a timeout that calls abort after 3 seconds to stop the running request.

      It does not work with Qt 5.15.0 Beta 4(emsdk 1.39.8) Single/Multithreaded.
      It works if the app is built for Windows.

      It worked with Qt 5.14.0 Beta 2(emsdk 1.39.0).

      I also tested it with the new QNetworkRequest::setTransferTimeout instead of the timer,
      this works in Windows but fails in the browser too.

      I attached the project to reproduce and the built wasm apps.

      Attachments

        1. Chrome_Trace1.png
          115 kB
          Marscho
        2. Chrome_Trace2.png
          212 kB
          Marscho
        3. ExampleProject.zip
          3 kB
          Marscho
        4. image-2020-04-23-15-43-03-532.png
          9 kB
          Marscho
        5. image-2020-04-23-15-43-39-100.png
          20 kB
          Marscho
        6. Test_5-14-0-Beta2.zip
          7.19 MB
          Marscho
        7. Test_5-15-0-Beta4.zip
          6.35 MB
          Marscho
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            Marscho Marscho
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes