GNOME Bugzilla – Bug 790110
dashdemux:memory leak dash playback
Last modified: 2017-11-09 14:36:10 UTC
There are several leaks of gstcaps and gstbuffer in dashdemux. Run this command,then CTRL+c: GST_TRACERS="leaks" GST_DEBUG="GST_TRACER:7" gst-launch-1.0 souphttps rc location=http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/RedBullPlayStreets/redbull_4s/RedBullPlayStreets_4s_isoffma in_DIS_23009_1_v_2_1c2_2011_08_30.mpd ! dashdemux ! decodebin ! videoconvert ! videoscale ! autovideosink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Redistribute latency... Redistribute latency... Redistribute latency... Redistribute latency... Redistribute latency... ^Chandling interrupt. Interrupt: Stopping pipeline ... ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... 0:00:21.510940728 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstBuffer, addres s=(gpointer)0x7fcbec5070c0, description=(string)buffer: 0x7fcbec5070c0, pts 99:99:99.999999999, dts 99:99:99.999999999, du r 99:99:99.999999999, size 38, offset none, offset_end none, flags 0x0, ref-count=(uint)1, trace=(string); 0:00:21.510957241 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstBuffer, addres s=(gpointer)0x7fcbec1ab5a0, description=(string)buffer: 0x7fcbec1ab5a0, pts 99:99:99.999999999, dts 99:99:99.999999999, du r 99:99:99.999999999, size 39, offset none, offset_end none, flags 0x0, ref-count=(uint)1, trace=(string); 0:00:21.510968411 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstCaps, address=(gpointer)0x7fcbd4050050, description=(string)video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string )1.3, profile=(string)constrained-baseline, codec_data=(buffer)0142c00dffe100166742c00dd98141fb0e1000003e90000ea608f142a68001000568c960f2c8, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)119/4, ref-count =(uint)1, trace=(string); 0:00:21.510978648 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstCaps, address=(gpointer)0x7fcbd409e540, description=(string)video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string )3, profile=(string)constrained-baseline, codec_data=(buffer)0142c01effe100176742c01ed981e0bfe5c38400000fa40003a9823c58b9a 001000568c960f2c8, width=(int)480, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)119/4, ref-count=(uint)1, trace=(string); 0:00:21.510987753 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstMemory, addres s=(gpointer)0x7fcbe000d300, description=(string)0x7fcbe000d300, ref-count=(uint)1, trace=(string); 0:00:21.510995369 13757 0x1db86f0 TRACE GST_TRACER :0:: object-alive, type-name=(string)GstMemory, addres s=(gpointer)0x7fcbe000d180, description=(string)0x7fcbe000d180, ref-count=(uint)1, trace=(string); ** (gst-launch-1.0:13757): WARNING **: Leaks detected
please try my patch in https://bugzilla.gnome.org/show_bug.cgi?id=788759, and share the result. if issue still exists, I will look into it in detail,
Wow, that explains all sort of bug I have seen in the past. I have a MP4 file(duration=1s),always run out of memory in loop playback after about 15 hours. Your patch also fix dash playback leaks,so I want mark this duplicate with https://bugzilla.gnome.org/show_bug.cgi?id=788759 *** This bug has been marked as a duplicate of bug 788759 ***
very glad that it works for you:) patch is under review,but I think you can apply it if needed