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. image.png
          1 kB
          Basil Semuonov
        2. main.cpp
          0.3 kB
          Basil Semuonov
        3. main.qml
          3 kB
          Basil Semuonov
        4. qml.qrc
          0.1 kB
          Basil Semuonov
        5. qml_memleak.pro
          1 kB
          Basil Semuonov
        6. gesture.png
          37 kB
          Basil Semuonov
        7. 66090_memoryLeak.zip
          4 kB
          Paolo Angelelli
        8. memory_commit.png
          8 kB
          Basil Semuonov
        9. memory_commit2.png
          7 kB
          Basil Semuonov
        10. qml_memleak_imageprovider.zip
          4 kB
          Basil Semuonov
        11. 66090_memoryLeak2.zip
          4 kB
          Paolo Angelelli
        12. memory_commit_flickable.png
          8 kB
          Basil Semuonov
        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