Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63925 WebAssembly: shared libraries and dynamic linking
  3. QTBUG-114256

WebAssembly: Support multithreading for shared libraries and dynamic linking

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • Other
    • None
    • WebAssembly

    Description

      Enabling threads currently results in a non-functional build:

      • Emscripten does not call locateFile() when downloading shared libraries from workers, which means that we can’t redirect the download to “qt/lib”
        Workaround: copy or symlink Qt libraries to application directory.
      • Emscripten downloads and instantiates each shared library for each web worker, which causues the browser to run out of memory.
        Workaround: build in release mode / with optimizations
      • Finally, there is an error on startup:
        Uncaught (in promise) LinkError: imported shared memory but unshared required

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            sorvig Morten Sørvig
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes