Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
6.4.1
-
None
-
Windows 10. PySide6 6.4.1. Ran in conda env
Description
I have identified a memory leak in the implementation of QAbstractTableModel in PySide6, version 6.4.1. Using an example found on the Qt Website (https://doc.qt.io/qtforpython/examples/example_external__pandas.html)
There is a constant increase in memory usage when scrolling through the table, resizing the window, clicking on cells, etc. This increase in memory will not decrease at any point. Preliminary analysis points to the implementation of data() as the culprit of the memory leak
I used the exact same example above in PySide2 and there was not the above described memory leak.. This issue only exists in PySide6
I went through many other examples found on the Qt website and any example implementing not only QAbstractTableModel, but QAbstractItemModel as well suffers from this memory leak.
Some examples used
https://doc.qt.io/qtforpython/examples/example_charts__modeldata.html
https://doc.qt.io/qtforpython/examples/example_widgets_itemviews_jsonmodel.html
Attachments
Issue Links
- duplicates
-
PYSIDE-2169 minimal_asyncio.py example might lead to memory leak
- Closed