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

Memory leaks in Particles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.2.1
    • Quick: Particles
    • None
    • linux with x11 and eglfs
    • 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

          For Gerrit Dashboard: QTBUG-36782
          # Subject Branch Project Status CR V

          Activity

            People

              jturcott Jocelyn Turcotte
              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