Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.11.2
-
-
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")