a media-hub thread ocasionally hangs when resetting pipeline

Bug #1379881 reported by Alberto Aguirre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
media-hub (Ubuntu)
Expired
High
Unassigned
media-hub (Ubuntu RTM)
Incomplete
High
Unassigned

Bug Description

After around 50 or so iterations (on average, but happens randomly) of creating/destroying a mediaplayer-app instance to play video using the script here: http://pastebin.ubuntu.com/8534316/ the media-hub server will hang.

When receiving the client death notification, the gstreamer engine playbin attempts to reset the pipeline with a call to gst_element_set_state(pipeline, GST_STATE_NULL) wich never completes - preventing the client disconnected signal from broadcasting and consequently the player instance is never destroyed (and remains in play state).

When another instance is started (say another mediaplayer-app instance) the media-hub server attempts to pause all other playing instances including the one waiting for the NULL state transition - this hangs as the pause transition can never complete.

Examining the thread stack, it seems the Android stagefright framework has sent a flush message to the codec, waiting until the codec responds with a flush done signal, which never happens.

If the pause request (as described above) is ignored then the next instance plays with no issue. It's almost as if the framework forgot to cleanup its pending ack request (like flush) when another instance was created.

Jim Hodapp (jhodapp)
Changed in media-hub:
importance: Undecided → High
Revision history for this message
Jim Hodapp (jhodapp) wrote :

Does this still happen on the latest RTM image?

Jim Hodapp (jhodapp)
no longer affects: media-hub
Changed in media-hub (Ubuntu):
importance: Undecided → High
Changed in media-hub (Ubuntu RTM):
importance: Undecided → High
Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu):
status: New → Incomplete
Changed in media-hub (Ubuntu RTM):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for media-hub (Ubuntu) because there has been no activity for 60 days.]

Changed in media-hub (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.