[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] PyQt Phonon video player memory leak
From: Judd Simantov <juddsim () gmail ! com>
Date: 2012-05-08 19:16:15
Message-ID: CACKTUf-icKp44AkdetJwc8PD4zrvkY2iwD1s8CXZac7JX4OCcA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hey,
Sorry about the reply to you... I thought if I hit reply it just
automatically replied to the list. I didn't look at the actual "To" field.
I'll try what you said with stop, but from the tests I've done it allocates
the 40mb on this call:
player = Phonon.VideoPlayer(Phonon.VideoCategory,self)
and it just keeps adding it up. I haven't even called play or loaded a file
yet. It seems like it might have something to do with the version I'm using
as well.
My PyQt version is 4.4.4 and Qt is 4.4.3. It's a limitation I can't change
right now either.
Thanks again!
On Tue, May 8, 2012 at 8:15 AM, Andreas Pakulat <apaku@gmx.de> wrote:
> Hi,
>
> please keep the discussion on the list.
>
> On Tue, May 8, 2012 at 11:29 AM, <juddsim@gmail.com> wrote:
>
>> Each instance created allocates 40mb (I'm just looking at the task
>> manager) and eventually the app gets to like 2 gigs and crashes.
>>
>
> The task-manager is not necessarily a good leak-detector. Can you provide
> a small self-contained example which demonstrates this? I've
> just tried here with a small video thats replayed and each 5 seconds the
> player instance is stopped, removed from the layout and del'ed and
> the memory consumption doesn't even reach 20M - thats minus the shared
> memory already. The important bit seems to be to stop the playing
> url, otherwise the player-object seems to not be garbage collected.
>
>
>> I'm not familiar with a valgrind log file.
>>
>
> Valgrind is a multi-purpose tool, among others it can help you detect
> memory leaks in applications. Its Linux-Only though, but there are similar
> tools for other platforms afaik. A task-manager's memory-column is not
> always a good measurement for detecting actual memory leaks.
>
> Andreas
>
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
[Attachment #5 (text/html)]
Hey, <br><br>Sorry about the reply to you... I thought if I hit reply it just \
automatically replied to the list. I didn't look at the actual "To" \
field. <br><br>I'll try what you said with stop, but from the tests I've done \
it allocates the 40mb on this call:<br> <br>player = \
Phonon.VideoPlayer(Phonon.VideoCategory,self)<br><br>and it just keeps adding it up. \
I haven't even called play or loaded a file yet. It seems like it might have \
something to do with the version I'm using as well. <br> <br>My PyQt version is \
4.4.4 and Qt is 4.4.3. It's a limitation I can't change right now either. \
<br><br>Thanks again!<br><br><br><div class="gmail_quote">On Tue, May 8, 2012 at 8:15 \
AM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de" \
target="_blank">apaku@gmx.de</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<div><br></div><div>please keep the discussion on the \
list.<br><br><div class="gmail_quote"><div class="im">On Tue, May 8, 2012 at 11:29 \
AM, <span dir="ltr"><<a href="mailto:juddsim@gmail.com" \
target="_blank">juddsim@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Each instance created allocates 40mb (I'm just looking at \
the task manager) and eventually the app gets to like 2 gigs and crashes.<br>
</blockquote><div><br></div></div><div>The task-manager is not necessarily a good \
leak-detector. Can you provide a small self-contained example which demonstrates \
this? I've </div><div>just tried here with a small video thats replayed and each \
5 seconds the player instance is stopped, removed from the layout and del'ed \
and</div>
<div>the memory consumption doesn't even reach 20M - thats minus the shared \
memory already. The important bit seems to be to stop the playing</div><div>url, \
otherwise the player-object seems to not be garbage collected.</div> <div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> I'm not familiar with a valgrind log \
file.<br></blockquote><div><br></div></div><div>Valgrind is a multi-purpose tool, \
among others it can help you detect memory leaks in applications. Its Linux-Only \
though, but there are similar tools for other platforms afaik. A task-manager's \
memory-column is not always a good measurement for detecting actual memory \
leaks.</div> <span class="HOEnZb"><font color="#888888">
<div><br></div><div>Andreas </div></font></span></div></div>
<br>_______________________________________________<br>
PyQt mailing list <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic