Pipeline memory leak GStreamer 10.2 Freescale IMX6

Nicolas Dufresne nicolas at ndufresne.ca
Fri Feb 10 20:51:53 UTC 2017


Le vendredi 10 février 2017 à 05:15 -0800, _dmp a écrit :
> gst-launch-1.0 -vvv alsasrc name=alsasrcstereo device=stereo    ! 
> deinterleave name=deinterleave_in    interleave name=interleave_out 
>> "audio/x-raw,channels=2,channel-mask=(bitmask)0x3" ! alsasink
> device=stereo   
> sync=false              deinterleave_in.src_0  ! tee
> name=tee_stereo_in_pre 
> !  queue  name=selflistening_channel1_queue     !      audiomixer
> name=audiomixer_channel1  !   volume name=channel1_out_volume     
> mute=false  !  "audio/x-raw,channels=1,channel-mask=(bitmask)0x1"  !
> interleave_out.sink_0  deinterleave_in.src_1   !  tee
> name=tee_speaker_in  ! 
> queue  name=selflistening_speaker_queue     !    volume mute=true !  
> audiomixer name=audiomixer_speaker  !   volume
> name=volume_speaker_out 
> mute=false !  "audio/x-raw,channels=1,channel-mask=(bitmask)0x2"   !
> interleave_out.sink_1

This is just a mess to my eyes, try indenting next time, it's like
code, the more its readable, the better the help will be.

> 
> After run an gst-launch-1.0 memory allocation in the HTOP is 92008
> bytes,
> but it value slowly increase.
> The HTOP show increase virtual memory allocation every 40...50 secs
> at 976
> bytes. So I think somewhere is memory leak.
> 
> Where this can happen? What tools and how can I find out?

Option a) the leaks tracer integrated into GStreamer:

GST_DEBUG="GST_TRACER:7" GST_TRACERS=leaks GST_LEAKS_TRACER_STACK_TRACE=1 gst-launch-1.0 ...

Option b) use valgrind. You'll need GStreamer suppression file:

https://cgit.freedesktop.org/gstreamer/common/plain/gst.supp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170210/bbb3eac9/attachment.sig>


More information about the gstreamer-devel mailing list