[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Debug potential memory leaks
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2015-04-08 8:42:15
Message-ID: CAExHGmTZmbqgsYVtSKLRvGof+yUANZgz=Nje_-qv4H61F6igYA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Phil,

On Tue, Apr 7, 2015 at 9:55 PM, Phil Thompson <phil@riverbankcomputing.com>
wrote:

> On 07/04/2015 8:47 pm, Andreas Pakulat wrote:
>
>> Hi,
>>
>> I'm having a small 'systray' application that monitors a jenkins service
>> and it seems there's some kind of memory leak, especially on MacOSX. After
>> having it run for a while (with the machine going to sleep now and again)
>> it starts eating quite some memory - if I understand top/ActivityMonitor
>> correctly - and amd wondering now how I'd best debug a PyQt application's
>> memory consumption.
>>
>> So what tools do you guys usually use to debug such memory leaks? I've
>> tried valgrind on Linux but there's no good hint there, possibly also due
>> to the way Python works.
>>
>
> You could try a debug version of Python that will track objects. If that
> shows objects are not being collected then it is probably a PyQt problem.
> Otherwise it might be more likely to be a Qt problem.


I'll check that option if I can determine its not my own code hanging on to
objects it shouldn't hang onto anymore...

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi Phil,<div class="gmail_extra"><br><div class="gmail_quote">On Tue, \
Apr 7, 2015 at 9:55 PM, Phil Thompson <span dir="ltr">&lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 07/04/2015 8:47 pm, \
Andreas Pakulat wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
<br>
I&#39;m having a small &#39;systray&#39; application that monitors a jenkins \
service<br> and it seems there&#39;s some kind of memory leak, especially on MacOSX. \
After<br> having it run for a while (with the machine going to sleep now and \
again)<br> it starts eating quite some memory - if I understand \
top/ActivityMonitor<br> correctly - and amd wondering now how I&#39;d best debug a \
PyQt application&#39;s<br> memory consumption.<br>
<br>
So what tools do you guys usually use to debug such memory leaks? I&#39;ve<br>
tried valgrind on Linux but there&#39;s no good hint there, possibly also due<br>
to the way Python works.<br>
</blockquote>
<br></div></div>
You could try a debug version of Python that will track objects. If that shows \
objects are not being collected then it is probably a PyQt problem. Otherwise it \
might be more likely to be a Qt problem.</blockquote><div><br></div><div>I&#39;ll \
check that option if I can determine its not my own code hanging on to objects it \
shouldn&#39;t hang onto \
anymore...</div><div><br></div><div>Andreas</div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
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