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

[wasm] crash when using Asyncify & exec loops

    XMLWordPrintable

Details

    • WebAssembly

    Description

      I'm executing multiple web requests synchronously in a row, but after two successful request the third one crashes (see log_qnam.txt). I've also tried using the emscripten_fetch API with the same result (see log_fetch.txt).

      I'm using a QEventLoop to wait until the  request is done.

      I've attached a demo project that illustrates the issue (just start it and click on the main window)

      I'm using a self built multithreaded version of Qt6.3 for WASM

      The Qt version was built using the following configure options:

      configure -xplatform wasm-emscripten  \
          -nomake tests -nomake examples -feature-thread \
          -skip qtxmlpatterns -skip qt3d -skip qtserialbus -skip qtserialport -skip qtandroidextras -skip qtmacextras -skip qtspeech -skip qtsensors -skip qtwebengine -skip qtactiveqt \
          -skip qtquick3d -skip qtwebview -skip qtlanguageserver -skip qtremoteobjects -skip qtscxml  \
          CMAKE_TOOLCHAIN_FILE=/space/emscripten/emsdk/upstream/emscripten/cmake
      /Modules/Platform/Emscripten.cmake  -qt-host-path /opt/qt/6.3.0/gcc_64/ \
          -device-option QT_EMSCRIPTEN_ASYNCIFY=1
      

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              lkdem Ludger Krämer
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes