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

QML Memory leak with Image inside MapQuickItem

XMLWordPrintable

    • d19127807c193d612c6fee4f3418a8c8af9d262c

      Memory leak while performing pan operations with Map and MapQuickItem.

      Attached project shows the behaviour.

      How to reproduce:

      1. Compile and launch
      2. Start pan operation on map with user gesture, and drag map around while performing pan, so some of MapQuickItem will be destroyed and re-created.
        Check gesture.png for sample mouse gesture trajectory: start pan at Star point, and follow the line.
      3. When MapQuickItems are outside of visibleRegion, they are destroyed. And recreated when they are inside area.
      4. Note significant memory leak.

      Note the "timerPan" which is disabled by default. There is no memory leak when pan is performed programmically, i.e. when timerPan is enabled.

      This memory leak may be connected with QTBUG-61754

        1. qml.qrc
          0.1 kB
        2. qml_memleak.pro
          1 kB
        3. qml_memleak_imageprovider.zip
          4 kB
        4. memory_commit2.png
          memory_commit2.png
          7 kB
        5. memory_commit.png
          memory_commit.png
          8 kB
        6. memory_commit_flickable.png
          memory_commit_flickable.png
          8 kB
        7. main.qml
          3 kB
        8. main.cpp
          0.3 kB
        9. image.png
          image.png
          1 kB
        10. gesture.png
          gesture.png
          37 kB
        11. 66090_memoryLeak2.zip
          4 kB
        12. 66090_memoryLeak.zip
          4 kB
        For Gerrit Dashboard: QTBUG-66090
        # Subject Branch Project Status CR V

            erikv Erik Verbruggen
            basilsemuonov Basil Semuonov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes