GNOME Bugzilla – Bug 335288
Totem Crashes on Certain .mpg Files
Last modified: 2007-07-07 21:55:22 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/totem/+bug/32566 "When opening certain .mpg files, totem will begin to load but then crash. When launching $totem mediafilename.mpg, this output is displayed on the console: (totem:12732): GStreamer-CRITICAL **: gst_object_ref: assertion `GST_IS_OBJECT (object)' failed Segmentation fault I have gstreamer0.10-bad, gstreamer0.10-good, and gstreamer0.10-ugly installed. ... > Thanks for your bug. I've a .mpg on my disk and totem plays it just fine with the gstreamer0.10-plugins-ugly package installed. Do you have any URL to .mpg producing that bug. If not could you put one somewhere for download (feel free to point it by mail if you don't want to put the URL on the bug tracker)? Media bugs are not easy to fix without having an example exibing the issue Could you get a backtrace of the crash: - gdb totem (gdb) run ... crahs (gdb) thread apply all bt and copy that to a comment ... Playing http://www.novell.com/linux/xglrelease/transparency.mpg Related to Bug #33325. Trying to seek a position inside the file. ------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1953598384 (LWP 11018)] 0x74853e46 in mpeg2_init_fbuf () from /usr/lib/libmpeg2.so.0 (gdb) thread apply all bt
+ Trace 67080
Thread 1 (Thread 1995400896 (LWP 11001))
Not yet. Totem 1.4.0, GStreamer 0.10.4. When i try to seek a position, going forward and backwark using the time scrollbar, i receive the error."
Backtrace with a debug mpeg2dec package: Program received signal SIGSEGV, Segmentation fault.
+ Trace 67081
Thread NaN (LWP 31187)
mpeg2dec manages the fbufs wrongly and occasionally runs into unreffing a buffer twice. I think I broke that some time ago...
*** Bug 330891 has been marked as a duplicate of this bug. ***
*** Bug 335665 has been marked as a duplicate of this bug. ***
Ok, Wim thinks that this issue is caused by come of the changes in this commit: http://webcvs.freedesktop.org/gstreamer/gst-plugins-ugly/ext/mpeg2dec/gstmpeg2dec.c?r1=1.90&r2=1.91 Thecould needed parts from this change should be reverted.
Also when it gets put back, please add some comments explaining it so it doesn't get flushed again the next time someone decides to do some code cleanup :)
Well, this one clearly comes under the heading of "if it ain't broke don't fix it, especially if it's so ugly you don't understand it" I'll try and fix this _again_, hopefully in a way that'll make Wim happier
I tried to fix this for a few hours the other night and couldn't get it right. At this point, I'm not sure how to solve it.
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_base_init), (gst_mpeg2dec_class_init), (gst_mpeg2dec_init), (gst_mpeg2dec_finalize), (gst_mpeg2dec_reset), (gst_mpeg2dec_qos_reset), (gst_mpeg2dec_alloc_buffer), (gst_mpeg2dec_negotiate_format), (init_dummybuf), (handle_sequence), (handle_picture), (handle_slice), (gst_mpeg2dec_chain), (gst_mpeg2dec_sink_event), (gst_mpeg2dec_src_event), (gst_mpeg2dec_change_state): * ext/mpeg2dec/gstmpeg2dec.h: Fix padtemplate as we can now do fractional framerates. Small cleanups. Use GstSegment. Add simple frame dropping QoS. Precalc buffer output sizes and UV offsets. Always give libmpeg2 a valid fbuf when it wants one. don't trust libmpeg to discard our buffers but manage it ourselves. Fixes #343627, #327350, #335288
*** Bug 337330 has been marked as a duplicate of this bug. ***
*** Bug 346224 has been marked as a duplicate of this bug. ***
*** Bug 357914 has been marked as a duplicate of this bug. ***
*** Bug 363122 has been marked as a duplicate of this bug. ***
*** Bug 365826 has been marked as a duplicate of this bug. ***
*** Bug 374727 has been marked as a duplicate of this bug. ***
*** Bug 374500 has been marked as a duplicate of this bug. ***
*** Bug 374360 has been marked as a duplicate of this bug. ***
*** Bug 375259 has been marked as a duplicate of this bug. ***
*** Bug 375333 has been marked as a duplicate of this bug. ***
*** Bug 375615 has been marked as a duplicate of this bug. ***
*** Bug 375644 has been marked as a duplicate of this bug. ***
*** Bug 375914 has been marked as a duplicate of this bug. ***
*** Bug 376856 has been marked as a duplicate of this bug. ***
*** Bug 377983 has been marked as a duplicate of this bug. ***
*** Bug 378707 has been marked as a duplicate of this bug. ***
*** Bug 379348 has been marked as a duplicate of this bug. ***
*** Bug 378391 has been marked as a duplicate of this bug. ***
*** Bug 378518 has been marked as a duplicate of this bug. ***
*** Bug 379597 has been marked as a duplicate of this bug. ***
*** Bug 376131 has been marked as a duplicate of this bug. ***
*** Bug 379867 has been marked as a duplicate of this bug. ***
*** Bug 381129 has been marked as a duplicate of this bug. ***
*** Bug 380450 has been marked as a duplicate of this bug. ***
*** Bug 382802 has been marked as a duplicate of this bug. ***
*** Bug 381416 has been marked as a duplicate of this bug. ***
*** Bug 381738 has been marked as a duplicate of this bug. ***
*** Bug 386027 has been marked as a duplicate of this bug. ***
*** Bug 386182 has been marked as a duplicate of this bug. ***
*** Bug 384997 has been marked as a duplicate of this bug. ***
*** Bug 384522 has been marked as a duplicate of this bug. ***
*** Bug 386184 has been marked as a duplicate of this bug. ***
*** Bug 386353 has been marked as a duplicate of this bug. ***
*** Bug 387186 has been marked as a duplicate of this bug. ***
*** Bug 387783 has been marked as a duplicate of this bug. ***
*** Bug 388079 has been marked as a duplicate of this bug. ***
*** Bug 389563 has been marked as a duplicate of this bug. ***
*** Bug 454616 has been marked as a duplicate of this bug. ***