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

WASM: QThreadPool/QRunnable corrupts heap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.15.8
    • Core: Event loop
    • None
    • EMSDK: 2.0.6, Qt: 5.15.8, browser: Edge 100.0.1185.44, Chrome: 100.0.4896.127
    • WebAssembly

    Description

      A minimal webassembly application is created having QThreadPool example implemented inside. Around 25 secs later than 10 threads are created and run, the Qt application aborts with uncaught exception.

      The sample provided also contains other thread creation methods, but the issue appeas only when QThreadPool/QRunnable is used.

      Precompiled version is here: testwasm (nagyimre.com)

      Reproduce: 

      • launch application
      • select Threads -> ThreadPool (at this moment some thread message appears in the console)
      • keep your mouse moving over the applications toolbar (it takes around 30 secs).
      • in the console an "uncaught" exception would appear.

      This is most likely to have a callstack like this, but it depends on the user activity.

      The sample would be tested against EMSDK 3.0.16 + Qt 6.3 in the following days. (report would be updated accordingly)
       

      Attachments

        1. chrome_102802.log
          11 kB
        2. edge_102802.log
          6 kB
        3. testwasm_102802.tar.gz
          87 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            hyperborg Imre Nagy
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes