appsink memory leak

umit sivrumit at yahoo.com
Thu Sep 19 07:46:01 UTC 2019


Hello Maddy,

Thanks for your reply.

I had added that line to check if it would help. I know that it is
unnecessary as the unmap line just above that line should deallocate
resources.
I removed the line as you suggested and executed a test run with trace
options: GST_TRACERS="leaks" & GST_DEBUG="GST_TRACER:7"

Here is trace the output after 1 run(via break in 'q' input):

GST_TRACER :0:: object-alive, type-name=(string)GstAppSink,
address=(gpointer)0000024A13FA7BA0, description=(string)<appsinkname>,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstBuffer,
address=(gpointer)0000024A146A95A0, description=(string)buffer:
0000024A146A95A0, pts 0:00:00.820323653, dts 99:99:99.999999999, dur
0:00:00.039987204, *size 3686400*, offset none, offset_end none, flags 0x0,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstBuffer,
address=(gpointer)0000024A146A9120, description=(string)buffer:
0000024A146A9120, pts 99:99:99.999999999, dts 99:99:99.999999999, dur
99:99:99.999999999,* size 3686400*, offset none, offset_end none, flags 0x0,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstCaps,
address=(gpointer)0000024A1461EC90, description=(string)video/x-raw,
width=(int)1280, height=(int)960, interlace-mode=(string)progressive,
multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)3126/125,
format=(string)RGB, ref-count=(uint)2, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstMemory,
address=(gpointer)0000024A156EC040, description=(string)0000024A156EC040,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstMemory,
address=(gpointer)0000024A1518A040, description=(string)0000024A1518A040,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstPad,
address=(gpointer)0000024A145F4E30, description=(string)<appsinkname:sink>,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstSample,
address=(gpointer)0000024A145169A0, description=(string)0000024A145169A0,
ref-count=(uint)1, trace=(string);
GST_TRACER :0:: object-alive, type-name=(string)GstVideoBufferPool,
address=(gpointer)0000024A146BEE50, description=(string)<videobufferpool1>,
ref-count=(uint)1, trace=(string);

As seen above, app leaks 2 frames of decoded data.

Btw I am testing in windows environment and version *1.16*, which is the
latest.

It seems I'm missing something simple but can't figure it out.

Thanks,

Umit



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list