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 163437 - [ffenc_*] Encoders segfault on exit
[ffenc_*] Encoders segfault on exit
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.8.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-09 10:39 UTC by Luca Ognibene
Modified: 2005-01-09 22:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (1.76 KB, text/plain)
2005-01-09 21:14 UTC, Luca Ognibene
  Details
possible fix (544 bytes, patch)
2005-01-09 21:46 UTC, Ronald Bultje
none Details | Review

Description Luca Ognibene 2005-01-09 10:39:04 UTC
gdb --args `which gst-launch-0.8` videotestsrc !
video/x-raw-rgb,width=640,height=480,framerate=2.0 ! identity error-after=1 !
ffcolorspace ! ffenc_mpeg4 ! fakesink

I've tried also with ffenc_mjpeg, ffenc_msmpeg4 and ffenc_h263p. They give the
same error on exit and (sometime) segfault.
(process:31284): GLib-GObject-WARNING **: invalid unclassed pointer in cast to
`GstObject'

(process:31284): GStreamer-CRITICAL **: file gstelement.c: line 3277
(gst_element_get_scheduler): assertion `GST_IS_ELEMENT (element)' failed

The backtrace is:
(gdb) bt
  • #0 g_type_check_instance_is_a
    from /usr/lib/libgobject-2.0.so.0
  • #1 gst_element_get_scheduler
    at gstelement.c line 3277
  • #2 gst_pad_get_scheduler
    at gstpad.c line 1978
  • #3 gst_bin_unset_element_sched
    at gstbin.c line 413
  • #4 gst_bin_remove_func
    at gstbin.c line 556
  • #5 gst_bin_remove
    at gstbin.c line 620
  • #6 gst_bin_dispose
    at gstbin.c line 922
  • #7 gst_pipeline_dispose
    at gstpipeline.c line 141
  • #8 g_object_interface_list_properties
    from /usr/lib/libgobject-2.0.so.0
  • #9 gst_object_unref
    at gstobject.c line 248
  • #10 main
    at gst-launch.c line 569

Comment 1 Ronald Bultje 2005-01-09 19:42:15 UTC
I think all elements do this on the gst-launch commandline. Can you reproduce it
without gst-launch?
Comment 2 Luca Ognibene 2005-01-09 21:13:14 UTC
Yes, i can reproduce it. I'll attach a simple example. If i remove latest
gst_object_unref there are no warnings but... i don't like memleaks :)
Comment 3 Luca Ognibene 2005-01-09 21:14:07 UTC
Created attachment 35755 [details]
test case
Comment 4 Ronald Bultje 2005-01-09 21:46:03 UTC
Created attachment 35756 [details] [review]
possible fix

Does this fix it?
Comment 5 Luca Ognibene 2005-01-09 22:01:45 UTC
yup, fixed, thanks!