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 740121 - Race condition leads to missing ASYNC_DONE bus messages when seeking
Race condition leads to missing ASYNC_DONE bus messages when seeking
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.4.4
Other Windows
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-11-14 15:24 UTC by Alex
Modified: 2018-11-03 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Code to reproduce the bug (10.20 KB, text/plain)
2014-11-14 15:25 UTC, Alex
Details

Description Alex 2014-11-14 15:24:22 UTC
After calling gst_element_send_event to do a flushing seek, GST_MESSAGE_ASYNC_DONE should be received on the bus.  Usually, this happens, however sometimes the message is never received.  Enabling a lot of logging makes this occur much more frequently.  This is a blocker because if an application does a lot of seeking (such as scrubbing with a slider), and waits for the ASYNC_DONE message before proceeding, it will eventually deadlock.  This makes seeking unusable.

I don't think this bug existed with 0.10.

The following bug might have the same underlying cause: https://bugzilla.gnome.org/show_bug.cgi?id=734060

To reproduce, run the code attached (change line 165 to point to an existing video of your choice that supports seeking).  It will most likely run to the end and then crash (proper cleanup code and most error checking has been removed to prune down the example).  Then run it again with GST_DEBUG=3,GST_STATES:4,myplugin:9  - this time it will probably deadlock after 1 seek.
Comment 1 Alex 2014-11-14 15:25:11 UTC
Created attachment 290717 [details]
Code to reproduce the bug
Comment 2 Alex 2014-12-08 14:12:48 UTC
This bug does also occur in 0.10 but it seems slightly less likely to occur.
Comment 3 GStreamer system administrator 2018-11-03 12:24:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/81.