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 132849 - gst_element_query crashes when using vorbisfile
gst_element_query crashes when using vorbisfile
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: High critical
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-01-29 13:40 UTC by Richard Hult
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Hult 2004-01-29 13:40:02 UTC
When I'm doing a query in jamboree to get the current time when using
vorbisfile results in a crash:

 q = gst_element_query (sink, GST_QUERY_POSITION, &format, &time);

It works with the mad decoder.

0x004b21dc in ov_pcm_total () from /usr/lib/libvorbisfile.so.3
(gdb) bt
  • #0 ov_pcm_total
    from /usr/lib/libvorbisfile.so.3
  • #1 ov_pcm_total
    from /usr/lib/libvorbisfile.so.3
  • #2 ov_time_tell
    from /usr/lib/libvorbisfile.so.3
  • #3 gst_vorbisfile_src_query
    at vorbisfile.c line 891
  • #4 gst_pad_query
    at gstpad.c line 3775
  • #5 gst_pad_query_dispatcher
    at gstpad.c line 3713
  • #6 gst_pad_dispatcher
    at gstpad.c line 3567
  • #7 gst_pad_query_default
    at gstpad.c line 3741
  • #8 gst_pad_query
    at gstpad.c line 3775
  • #9 gst_pad_query_dispatcher
    at gstpad.c line 3713
  • #10 gst_pad_dispatcher
    at gstpad.c line 3567
  • #11 gst_pad_query_default
    at gstpad.c line 3741
  • #12 gst_pad_query
    at gstpad.c line 3775
  • #13 gst_pad_query_dispatcher
    at gstpad.c line 3713
  • #14 gst_pad_dispatcher
    at gstpad.c line 3567
  • #15 gst_pad_query_default
    at gstpad.c line 3741
  • #16 gst_pad_query
    at gstpad.c line 3775
  • #17 gst_element_query
    at gstelement.c line 2264
  • #18 tick_timeout_cb
    at player.c line 347

Comment 1 Elijah Newren 2004-01-29 23:55:07 UTC
This appears to be a unique stack trace, according to the
simple-dup-finder.  I'm setting fields appropriately.
Comment 2 Richard Hult 2004-02-01 20:00:13 UTC
I think the crash happens when there is no source or when it's stopped.
Comment 3 Benjamin Otte (Company) 2004-02-08 15:05:46 UTC
Brings up a general question:
How should queries be handled on NULL or READY? I'd propose to refuse
them to be in line with events (which can only happen on PAUSED or
PLAYING).
Especially in the context that I want to make queries be events in 0.10.

Comments?
Comment 4 Thomas Vander Stichele 2004-02-24 15:05:03 UTC
benjamin: sounds good
richard: we're deprecating vorbisfile, have you tried with oggdemux !
vorbisdec ?
Comment 5 Richard Hult 2004-02-24 16:53:49 UTC
I made my code not do a query unless in PLAYING state... I will switch
to the new element at some point though. I could hack the old behavior
back in temporarily and try oggdemux if it would help.
Comment 6 Christian Fredrik Kalager Schaller 2004-03-10 07:54:12 UTC
Vorbisfile is now removed from 0.7.x and will not be shipping with
0.8. I am closing this bug, open a new one if the new elements give
you any trouble Richard.