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

[wasm] qt-wasm app's memory keep growing when qt event system is running

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.1
    • Core: Event loop
    • None
    • emscipten 1.39.8
      qt-5.15.2 (with pthread enabled)
      ubuntu 20.04/Windows 10
      chrome 84/86
    • WebAssembly

    Description

          I build qt5-wasm from the latest git 5.15 branch with emscripten 1.39.8 and with pthread enabled. I found that when qt event system is running, qt app's memory consumption keep growing.

          I run a very simple qt-wasm app which simply post event every 40 ms, run it from chrome 84 (ubuntu 20.04), after five minutes this app's memory grow about 82MB (I observe memory consumption from chrome's task manager). Run this app with chrome under Windows I can see similar memory growing.

          I have attached a sample program to reproduce this issue. Start the app in chrome, press start button, you will see memory keep growing with chrome's task manager. Wait for 5 minutes, the memory will grow significantly.

          BTW: Run the same sample program under Ubuntu/Windows (I mean the desktop version), the memory consumption will be a constant value which is expected.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            jianliang79 liang jian
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes