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

QML Memory leak with Image inside MapQuickItem

    XMLWordPrintable

Details

    • d19127807c193d612c6fee4f3418a8c8af9d262c

    Description

      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

      Attachments

        1. 66090_memoryLeak.zip
          4 kB
        2. 66090_memoryLeak2.zip
          4 kB
        3. gesture.png
          gesture.png
          37 kB
        4. image.png
          image.png
          1 kB
        5. main.cpp
          0.3 kB
        6. main.qml
          3 kB
        7. memory_commit_flickable.png
          memory_commit_flickable.png
          8 kB
        8. memory_commit.png
          memory_commit.png
          8 kB
        9. memory_commit2.png
          memory_commit2.png
          7 kB
        10. qml_memleak_imageprovider.zip
          4 kB
        11. qml_memleak.pro
          1 kB
        12. qml.qrc
          0.1 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes