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

Deletion of a dynamic properties to JSObject ends up using all memory

XMLWordPrintable

    • All
    • 69d76d59cec0dcff4c52eef24e779fbef14beeca (qt/qtdeclarative/5.12) d8110b53ed9ee4d69b92e602e812c6311c1b863b

      Whenever a new Geometry object (with its name) is added, a dynamic property is added to the used JSObject and when Geometry object is removed, the corresponding dynamic property is also removed.

      when dealing with thousands of objects, the memory consumption is huge (magnitude of GBs)

      Attached example reproduces it:

      when this little example starts it takes around 600mb of memory and when it destroy (mouse click on window) memory consumption keeps going up and up until it runs out of the memory.

      Using it as simple array keeps the memory consumption around 50mb only.

        1. QTBUG-58559.zip.zip
          2 kB
          Irfan Omair
        2. qtbug58559.zip
          2 kB
          Mitch Curtis
        For Gerrit Dashboard: QTBUG-58559
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: