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

Memory leaks in Particles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.4.0
    • Component/s: Quick: Particles
    • Labels:
      None
    • Environment:
      linux with x11 and eglfs
    • Commits:
      32af8055985c1f978574eec62512638f472e8290

      Description

      Item and Image particles are leaking memory. Can be checked with the examples using pmap -x on linux.
      The bug can be related to QTBUG-34991 and QTBUG-34994.
      Even if the main the page is deleted and created again and gc is called by a timer:

      Item {
          id: root
          width: 1920
          height: 1080
      
          property variant particleEffect
      
         Component {
              id: comp
      
              Item {
                  anchors.fill: parent
      
                  ParticleEffect {
                      anchors.fill: parent
                  }
      
              }
          //}
      
          Timer {
              interval: 3000
              running: true
              repeat: true
              triggeredOnStart: true
              onTriggered: {
                  if(particleEffect != null) {
                      particleEffect.destroy()
                      gc()
                  }
                  particleEffect = comp.createObject(root);
              }
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jturcott Jocelyn Turcotte
              Reporter:
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes