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 766659 - gst_element_seek_simple randomly hangs
gst_element_seek_simple randomly hangs
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.8.0
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-05-19 13:38 UTC by Marcin Lewandowski
Modified: 2016-11-11 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDB dump with alsasink (8.51 KB, text/plain)
2016-05-19 13:38 UTC, Marcin Lewandowski
Details
GDB dump with jackaudiosink (9.07 KB, text/plain)
2016-05-19 13:39 UTC, Marcin Lewandowski
Details
GST_DEBUG=*:5 with alsasink (1.78 MB, application/x-xz)
2016-05-19 13:41 UTC, Marcin Lewandowski
Details
GST_DEBUG=*:5 with jackaudiosink (246.21 KB, application/x-xz)
2016-05-19 13:41 UTC, Marcin Lewandowski
Details

Description Marcin Lewandowski 2016-05-19 13:38:26 UTC
I am using ubuntu 16.04 and gstreamer/jack/pulseaudio that ships with it.

I am creating a pipeline that basically fetches a MP3 file over HTTP, decodes and plays to the JACK.

It goes into PAUSED state and once Pipeline is already PAUSED I want to perform an accurate seek to the desired location. Sometimes it works, sometimes don't (no pattern found), but usually it don't. I do check return value of seek, and it returns true. 

The mainloop is blocked once it happens.

I have tried replacing jackaudiosink with alsasink - the same.

I have tried disabling accurate seek - the same.
Comment 1 Marcin Lewandowski 2016-05-19 13:38:47 UTC
Created attachment 328184 [details]
GDB dump with alsasink
Comment 2 Marcin Lewandowski 2016-05-19 13:39:07 UTC
Created attachment 328185 [details]
GDB dump with jackaudiosink
Comment 3 Marcin Lewandowski 2016-05-19 13:41:06 UTC
Created attachment 328186 [details]
GST_DEBUG=*:5 with alsasink
Comment 4 Marcin Lewandowski 2016-05-19 13:41:27 UTC
Created attachment 328187 [details]
GST_DEBUG=*:5 with jackaudiosink
Comment 5 Marcin Lewandowski 2016-05-19 14:45:56 UTC
The same happens with Ogg/Opus encoded by gstreamer.
Comment 6 Marcin Lewandowski 2016-05-19 15:24:45 UTC
When I replaced seek_simple with seek as described here the problem disappears:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html 

at least for MP3.
Comment 7 Sebastian Dröge (slomo) 2016-05-20 06:40:03 UTC
That's equivalent to gst_element_seek_simple() though.


Can you provide a testcase application to reproduce this?
Comment 8 Marcin Lewandowski 2016-05-20 21:05:00 UTC
I'll try.
Comment 9 Tim-Philipp Müller 2016-11-11 14:52:36 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!