Pipeline memory leak GStreamer 10.2 Freescale IMX6

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline memory leak GStreamer 10.2 Freescale IMX6

_dmp
Hello!

I try use GStreamer 10.2 at board IMX6.
My pipeline have view:

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

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?

Please help!

Reply | Threaded
Open this post in threaded view
|

Re: Pipeline memory leak GStreamer 10.2 Freescale IMX6

Nicolas Dufresne-5
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment