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

QCoreApplication.postEvent leaks memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.0
    • 1.1.2, 1.2.0, 1.2.1, 1.2.2
    • PySide
    • None

    Description

      When calling QCoreApplication.postEvent(reciever,event) in a PySide application, the process leaks memory.

      I've attached a minimilistic example, which leaks memory reasonably slowly on my machine. However, I'm trying to write an application that will be calling QCoreApplication.postEvent quite frequently and needs to be able to run without crashing for months.

      If you switch to using PyQt4 (I have v4.10.1) there is no memory leak.

      Attachments

        1. 205-leak-noleak.log.zip
          4.74 MB
        2. memory_usage_pyqt4_linux.png
          memory_usage_pyqt4_linux.png
          37 kB
        3. memory_usage_pyqt4_windows_7.png
          memory_usage_pyqt4_windows_7.png
          43 kB
        4. memory_usage_pyside_1.2.1_linux.png
          memory_usage_pyside_1.2.1_linux.png
          40 kB
        5. memory_usage_pyside_1.2.1_windows_7.png
          memory_usage_pyside_1.2.1_windows_7.png
          47 kB
        6. pyside-205-leak.py
          2 kB
        7. pyside-205-noleak.py
          2 kB
        8. pyside-memleak.png
          pyside-memleak.png
          29 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ctismer Christian Tismer
            philip.starkey Philip Starkey
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes