PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 714 - Excessive memory consumption while using QLabel.setPixmap
: Excessive memory consumption while using QLabel.setPixmap
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: PC MS Windows XP/Vista/7
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-07 15:34 EET by maxistasse
Modified: 2011-04-01 23:15 EEST (History)
8 users (show)

See Also:


Attachments
The used memory after resizing the window. (101.21 KB, image/png)
2011-03-07 15:34 EET, maxistasse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxistasse 2011-03-07 15:34:07 EET
Created attachment 281 [details]
The used memory after resizing the window.

The bug appeared in a program of mines while I was creating a little program to
screenshot... The preview was refreshed eatch second.

With my netbook, after 1 minute, the program crashed...
So I made a lot of tests to locate the problem.

And here is:
Just run this example:
http://qt.gitorious.org/pyside/pyside-examples/blobs/e5d379f38bf03406056e8b14af95ae36a0a1de08/examples/desktop/screenshot.py
and resize the window(a lot to see it's a big problem ;) ). The used memory
will grow anormally... And never be cleaned until you close the program.

So the pixmap in a QLabel is never cleaned and they can stack if you use
setPixmap more than once.

The used memory is 17k at the beginning...
I made a screenshot with the task manager to let you see after a lot resize.

Thanks for looking at this !

PS: Maybe it happens on Unix too, I don't have any linux PC here.
And the problem doesn't exist on the C++ version of Qt.

And sorry for my bad english.
Comment 1 Matti Airas 2011-03-08 08:38:16 EET
Thanks for the report. Sounds like a bad memory leak to me - I'm prioritizing
this P2. The bug will be taken care of once the preceding P2 bugs have been
resolved (most likely within two weeks or so).
Comment 2 renato filho 2011-03-09 23:14:50 EET
fixed on pyside commit:
commit 957fa171a97b4ae0261f8cef0fe9e30b364a86b7
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Wed Mar 9 17:17:43 2011 -0300
Comment 3 Hugo Parente Lima 2011-04-01 23:15:54 EEST
Closing bug after release of PySide 1.0.1.