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

Simple QWebSocket app hangs in WebAssembly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.3.1
    • Network
    • None
    • WebAssembly

      I have a simple gui websocket app modelled on qtwebsockets/examples/websockets/echoclient

      When built for Windows with Qt 5.7.0 the app connects to the server, gets a response and displays it. When built for WebAssembly with Qt 6.3.1 the app hangs as soon as the socket is created with the browser reporting "This page is slowing down Firefox. To speed up your browser, stop this page."

      Emscripten is v3.0.0 and Qt 6.3.1 for WebAssembly was configured with:

      ./configure -qt-host-path /opt/Qt/6.3.1/gcc_64 -platform wasm-emscripten -prefix /opt/Qt/6.3.1-wasm/qtbase -device-option QT_EMSCRIPTEN_ASYNCIFY=1

      Source code for the project is attached.

        1. wasmtest.zip
          4 kB
          Stephen Jackson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lpotter Lorn Potter
            spj.oasis Stephen Jackson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes