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

QML Loader Memory Leak

XMLWordPrintable

       QTBUG-61536 issue has been closed but I am still observing memory leak when loading 2 qml files one by one with in timer (1 sec) using QQmlComponent 

      "QQmlComponent newComponent(engine,QUrl(m_urlPath)); //newComponent->loadUrl(QUrl(m_urlPath)); return newComponent.create();"

       

      I have tried on QT 5.5.1 , 5.9.0, 5.10.0 versions on Windows & QNX. 

      both the QML files have only one rectangle :

      Rectangle { color: "green" border.color: "#00221e1e" width: 800 height: 800}, 

       

      Also, I am releasing the memory using below functions:

      collectGarbage();

      releaseResources();

      trimComponentCache();

      clearComponentCache();

       

      Kindly let me know if more details are required.

        1. loadertest.zip
          3 kB
        2. OpenGLTest.7z
          1 kB
        3. out
          147 kB
        4. QTQMLIntegration.7z
          3 kB
        5. QtTestScreen.7z
          3 kB
        6. testWidgetApplication.7z
          1 kB
        7. testWidgetApplicationText.7z
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            parmod Parmod Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes