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 767555 - 'mini_object->refcount > 0' failed
'mini_object->refcount > 0' failed
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.6.3
Other Linux
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-12 09:22 UTC by yvonne.chen
Modified: 2016-06-14 05:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file stream (347.46 KB, video/webm)
2016-06-12 09:48 UTC, yvonne.chen
Details

Description yvonne.chen 2016-06-12 09:22:45 UTC
Hello 
I can not get rid of the error ,following is the valgrind shows . Any one help to fix it ?
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
==14360== Thread 1:
==14360== Invalid read of size 4
==14360==    at 0x48A0F1C: gst_mini_object_unref (gstminiobject.c:442)
==14360==    by 0x4961953: g_value_unset (in /usr/lib/libgobject-2.0.so.0.4600.2)
==14360==  Address 0x50d3bec is 4 bytes inside a block of size 160 free'd
==14360==    at 0x482E8CC: free (vg_replace_malloc.c:530)
==14360==    by 0x551506F: gst_buffer_unref (gstbuffer.h:364)
==14360==    by 0x551506F: gst_matroska_demux_parse_blockgroup_or_simpleblock.isra.13 (matroska-demux.c:3742)
==14360==    by 0x551D82B: gst_matroska_demux_parse_id (matroska-demux.c:4367)
==14360==    by 0x551E907: gst_matroska_demux_loop (matroska-demux.c:4543)
==14360==    by 0x48DAB0B: gst_task_func (gsttask.c:331)
==14360==    by 0x49E6453: ??? (in /usr/lib/libglib-2.0.so.0.4600.2)
==14360==  Block was alloc'd at
==14360==    at 0x482D35C: malloc (vg_replace_malloc.c:299)
==14360==    by 0x49C9A87: g_malloc (in /usr/lib/libglib-2.0.so.0.4600.2)
==14360== 

(gst-launch-1.0:14360): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object->refcount > 0' failed
Comment 1 Sebastian Dröge (slomo) 2016-06-12 09:34:19 UTC
Which GStreamer and gst-plugins-good version are you using? Does this happen on all files or only specific one(s)? What is the pipeline you're using, and can you provide such a file for reproducing the problem?
Comment 2 yvonne.chen 2016-06-12 09:44:40 UTC
version 1.6.3 , gst-play-1.0, file attached ,sometimes happen。
Could you help to review the source code of matroska-demux.c ?

done:
  if (buf) {
    gst_buffer_unmap (buf, &map);
    gst_buffer_unref (buf); ---this is the line 3742 ,buf is inside the function 
  }
  g_free (lace_size);

  return ret;
Comment 3 yvonne.chen 2016-06-12 09:48:23 UTC
Created attachment 329633 [details]
file stream
Comment 4 Sebastian Dröge (slomo) 2016-06-13 06:55:23 UTC
Doesn't seem to happen here with latest GIT master or 1.8.2. Can you check if it still happens for you?


What do you mean with helping to review that code? The lines you copied are all correct, if anything is wrong there it would be in the context.

Also how did you create this file?
Comment 5 Tim-Philipp Müller 2016-06-13 08:40:18 UTC
This might also be a refcounting issue further downstream somewhere.

What decoders are you using? Are you using custom decoders?
Comment 6 yvonne.chen 2016-06-14 01:41:46 UTC
Yes, I use custom decoders , Sebastian Dröge (slomo)  has fixed this issue in another bug. close this issue now