[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] memory leak when creating several usrp2 objects
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] memory leak when creating several usrp2 objects |
Date: |
Thu, 30 Jul 2009 10:41:47 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Jul 30, 2009 at 06:40:00PM +0200, Jakob Meineke wrote:
> Hi all,
>
> I have encountered a memory leak that seems to be related to the creation of
> a usrp2_sink object. An admittedly stupid test case that shows the same
> symptoms as my actual program is given below:
Jakob,
Thanks for the detailed report.
I'm busy with something else today, perhaps somebody else on the
list can take a look at this...
Eric
> import time
> from gnuradio import gr
> from gnuradio import usrp2
>
> if __name__ == "__main__":
> for i in range(5):
> time.sleep(2)
> usrp2.sink_16sc("eth0", "")
>
> I can then see that every two seconds the program takes up another ca. 24 MB
> of RAM as seen with htop. This is with rev 11516 on ubuntu 8.10.
> In the test case the problem goes away if one assigns the return value of
> usrp2.sink_16sc as one would do of course to do anything sensible with a
> usrp2.