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

WebAssembly QNetworkAccessManager requests crash application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.15.2
    • Fix Version/s: 6.2.0 FF
    • Component/s: Network: HTTP
    • Labels:
      None
    • Environment:
      Emscripten version 1.39.8
      Qt built with -feature-thread

      Built with
      QMAKE_WASM_PTHREAD_POOL_SIZE = 8
      QMAKE_WASM_TOTAL_MEMORY = 3GB
    • Platform/s:
      WebAssembly

      Description

      Application built for WebAssembly with QNetworkAccessManager request on valid address with listening server works well, but crash occures when I type in invalid address. The reply that is handled after QNetworkReply::finished() signal is emmited and deleted with deleteLater() afterwards calls abort() somewhere in destructor making application crash.

      Furthermore - the crash behave inconsistenly, sometimes the app crashes with first request (after deleteLater() is called) and sometimes after third.

      Application works without reply->deleteLater(), but creates memory leak.

       UPDATE: I just tried to built Qt without -feature-thread and it crashes too

        Attachments

        1. AccessManager.zip
          4 kB
        2. call_stack
          15 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lpotter Lorn Potter
            Reporter:
            brky Ard Querk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes