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

QObject causes mem leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.11.3
    • 5.11.2
    • PySide
    • All
    • 6978325323208c395d135f19847a8ad0b13f93f9

    Description

      Maybe Shiboken issue ( ? ).

      Simple QObject creation and deletion causes mem leak.

      9 line example code included.

       

      I have tested it on Ubuntu14.04 LTS, Win7 32bit, Win7 64bit on PySide2 v5.11.2 and I believe it is general problem.

       

      I believe this can relate with other mem leak issues:

      https://bugreports.qt.io/browse/PYSIDE-763

      https://bugreports.qt.io/browse/PYSIDE-140

      https://bugreports.qt.io/browse/PYSIDE-154

      https://bugreports.qt.io/browse/PYSIDE-488

      https://bugreports.qt.io/browse/PYSIDE-618

      https://bugreports.qt.io/browse/PYSIDE-832

       

      Even this matplotlib interactive demo suffers from the leaks (tested on matplotlib 2.2.3).

      Just add this 3 lines at the beginning of the example to ensure you use PySide2 for it:

      import PySide2
      import matplotlib
      matplotlib.use("Qt5Agg")

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            mailos Miloš Korenčiak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes