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

SignalSpy.qml triggers a memory leak in the QML engine

    XMLWordPrintable

    Details

    • Commits:
      8d848811dc (qt/tqtc-qtdeclarative/5.15)

      Description

      Instantiating the following component leaks a lot of memory, in particular property caches:

      import QtQml
      import QtTest
      
      QtObject {
          id: mouseArea
          property SignalSpy spy: SignalSpy {
              signalName: "onObjectNameChanged"
              target: mouseArea
          }
      }
      

      If you switch the property assignments, no memory leaks:

      import QtQml
      import QtTest
      
      QtObject {
          id: mouseArea
          property SignalSpy spy: SignalSpy {
              target: mouseArea
              signalName: "onObjectNameChanged"
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes