Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2169

minimal_asyncio.py example might lead to memory leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.0, 6.4.3
    • 6.4.1
    • PySide
    • None
    • windows 10 64bits
      Python 3.11.1
      PySide6 6.4.1
    • Windows
    • e49516c72 (dev), 1d537e8b0 (6.4), 53e14d6f1 (dev), ad398d480 (6.4), 546861747 (dev), 392559ed8 (6.4)

    Description

      running the asyncio miminal example which loads a qml file, the python process memory usage increase 10M per seconds, while there is nothing running in the backends.

      here is the screen capture videos

      https://drive.google.com/file/d/1guKyEj88joUOytk07RMke7-pPbwQOE0p/view?usp=sharing

      it will collapse until running out of memories i guess

      here is the example i running, 

      the qml file it loads is just a simple window

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
       id: window
       width: 400
       height: 500
       visible: true
      }
      

      change the AsyncHelper to qasync, the memory usage is stable, not growing any more

      Attachments

        Issue Links

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

          Activity

            People

              adherrma Adrian Herrmann
              allenz allen zhu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes