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

Memory continuously increases when loading/unloading QML components with Loader

XMLWordPrintable

    • macOS

      A memory growth issue has been observed in a Qt Quick application using Loader to dynamically switch between QML components. As Loader.source is changed repeatedly, the application’s memory usage increases continuously. Memory does not appear to be reclaimed effectively, even when Loader.sourceComponent is set to NULL.

      This behavior becomes more pronounced in applications with complex or numerous components.

      Attached example shows the behavior. This example works better with Qt6.8.4 but Qt6.5 it is eating up memory.

      Run the example and hit left bottom button and then using any tool to observe the consumption of memory.

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

            qtqmlteam Qt Qml Team User
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes