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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: