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

WebAssembly QNetworkAccessManager requests crash application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.0 FF
    • 5.15.2
    • Network: HTTP
    • None
    • Emscripten version 1.39.8
      Qt built with -feature-thread

      Built with
      QMAKE_WASM_PTHREAD_POOL_SIZE = 8
      QMAKE_WASM_TOTAL_MEMORY = 3GB
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: