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

QML page switching has memory leaks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.0.2, 5.1.0 RC1
    • None
    • Windows, Linux, Embedded linux

    Description

      Switching between QML pages with Loader or with Qt.createComponent causes memory leak even if gc() is called.
      Please check the attached code for reproduction. It uses a timer to switch between 2 qml pages in every second.
      Please use property bool useloader: true//false in main.qml between switching the loading with Loader or js.
      On Linux the application calls pmap to log the change of the memory usage every 10 seconds on windows please use the taskmanager.
      Valgrind was not able to detect the problem, but I had to run the application for at least 15 minutes to see the grow, we have been running the application whole night also and the difference is big.

      Attachments

        1. main.qml
          5 kB
        2. qml2memleakcheck2.tar.gz
          16 kB
        3. v8_internal.jpg
          v8_internal.jpg
          448 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes