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

Qt Quick 2, Windows 11: memory leak as application window gets resized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15.8
    • None
    • Qt Creator 6.0.2 (based on Qt 6.2.2, MSVC 2019 64 bit)
      Qt build: Qt 5.15.8 MSVC 2019 32 bit

    Description

      On testing our app we noticed the application window causes memory leaks every time it is resized.

      In the attached video you may find the behaviour of the default Qt Quick 2 application window: at the beginning, the application occupies 10-11 MB of memory, while this value grows up to 100-150 MB as the window undergoes resizing. You will notice the memory is never released as the window is resized back to the starting size.

      Our app should support window resizing on button press by the user. The memory occupied at the start is around 80-90 MB and it may grow up to 300-400 MB during the resizing.

      This behaviour seems to be specific to Windows 11: we have carried out the same test on another PC with Windows 11 installed and the results are pretty similar.
      On the contrary, by repeating the test on Windows 10, the memory always gets released as the resizing terminates.

      This issue appears to be similar to QTBUG-91110 (though this was found on Windows 10).

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              arappazzo Agostino Rappazzo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes