After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790110 - dashdemux:memory leak dash playback
dashdemux:memory leak dash playback
Status: RESOLVED DUPLICATE of bug 788759
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.12.3
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-09 07:26 UTC by rland
Modified: 2017-11-09 14:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rland 2017-11-09 07:26:02 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
Comment 1 Jun Xie 2017-11-09 07:55:42 UTC
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,
Comment 2 rland 2017-11-09 09:10:44 UTC
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 ***
Comment 3 Jun Xie 2017-11-09 14:36:10 UTC
very glad that it works for you:)

patch is under review,but I think you can apply it if needed