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")
Attachments
For Gerrit Dashboard: PYSIDE-832 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
242755,1 | Fix memory leaks involving pyside signal instances | 5.12 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |
243892,6 | Fix Memory Leak Caused By Wrong Limited API Default | 5.11 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
243927,1 | Fix Memory Leak Caused By Wrong Limited API Default | 5.12 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |