Sessions are not recreated after a media-hub crash

Bug #1506953 reported by Tiago Salem Herrmann
64
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
John McAleely
media-hub (Ubuntu)
Fix Released
Critical
Jim Hodapp
media-hub (Ubuntu RTM)
Fix Released
Critical
Jim Hodapp
qtubuntu-media (Ubuntu)
Fix Released
Critical
Jim Hodapp
qtubuntu-media (Ubuntu RTM)
Fix Released
Critical
Jim Hodapp

Bug Description

After a media-hub crash (or even a manual kill $(pidof media-hub-server) ), existing sessions are not being invalidated/recreated.
That causes telephony-service-indicator to stop playing notifications for new messages, as it always reuse the same instance.

In dbus we see it is still trying to use an invalid session:
-----
method call sender=:1.132 -> dest=core.ubuntu.media.Service serial=77706 path=/core/ubuntu/media/Service/sessions/3; interface=org.mpris.MediaPlayer2.Player; member=OpenUri
   string "file:///usr/share/sounds/ubuntu/notifications/Xylo.ogg"
error sender=:1.485 -> dest=:1.132 error_name=org.freedesktop.DBus.Error.UnknownMethod reply_serial=77706
   string "Method "OpenUri" with signature "s" on interface "org.mpris.MediaPlayer2.Player" doesn't exist
"
---

And the logs are being flooded with the following message:

-----
Failed to get current playback position: org.freedesktop.DBus.Error.UnknownMeth
od: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properti
es" doesn't exist
------

AalMediaPlayerService creates both the media session and the media hub control instance in its constructor, but it does not seem to manage media-hub appearing/disappearing on dbus.

Related branches

Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
importance: Undecided → High
milestone: none → backlog
status: New → Confirmed
Changed in qtubuntu-media (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Bill Filler (bfiller)
Changed in qtubuntu-media (Ubuntu):
importance: Undecided → High
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

bump priority and mark for this release, this causes missing ringtones on incoming calls

Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → Bill Filler (bfiller)
importance: High → Critical
milestone: backlog → ww46-2015
Revision history for this message
Bill Filler (bfiller) wrote :

for ota8, we will fix telephony-service to create a new instance of QMediaPlayer every time a new phone call is received as a workaround. But this underlying bug will still cause problems for other apps that use media-service, like music-app

to test:
1) open music-app
2) play a song and stop it
3) kill media-hub-server (it will get auto restarted)
4) try to play another song and it will fail, until you restart the app, which obviously you shouldn't have to

Changed in canonical-devices-system-image:
milestone: ww46-2015 → ww02-2016
Changed in qtubuntu-media (Ubuntu):
assignee: Jim Hodapp (jhodapp) → John McAleely (john.mcaleely)
assignee: John McAleely (john.mcaleely) → Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
assignee: Bill Filler (bfiller) → John McAleely (john.mcaleely)
Revision history for this message
Bill Filler (bfiller) wrote :

the ringtone workaround will be fixed and tracked with this bug:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1512132

Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu RTM):
importance: Undecided → Medium
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
status: New → Triaged
Changed in qtubuntu-media (Ubuntu RTM):
status: New → Triaged
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Bumping priority as people still reporting missed alarms

Changed in qtubuntu-media (Ubuntu RTM):
importance: Medium → Critical
Changed in qtubuntu-media (Ubuntu):
importance: High → Critical
Revision history for this message
Jim Hodapp (jhodapp) wrote :

An implementation for this was started but set aside for some other high priority tasks. Will see about getting this back on to the front burner again soon.

Changed in canonical-devices-system-image:
milestone: ww02-2016 → ww08-2016
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Changed in canonical-devices-system-image:
milestone: 11 → 12
Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
status: New → Triaged
Changed in media-hub (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Changed in media-hub (Ubuntu RTM):
importance: Undecided → Critical
Changed in qtubuntu-media (Ubuntu):
assignee: Jim Hodapp (jhodapp) → nobody
Changed in qtubuntu-media (Ubuntu RTM):
assignee: Jim Hodapp (jhodapp) → nobody
Changed in canonical-devices-system-image:
milestone: 12 → 13
Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in media-hub (Ubuntu):
status: Triaged → In Progress
Changed in media-hub (Ubuntu RTM):
status: Triaged → In Progress
Changed in qtubuntu-media (Ubuntu):
status: Triaged → In Progress
Changed in qtubuntu-media (Ubuntu RTM):
status: Triaged → In Progress
Changed in media-hub (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-media (Ubuntu RTM):
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

This bug was fixed in the package qtubuntu-media 0.8.1+15.04.20160720-0ubuntu1 in https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay

---------------

qtubuntu-media (0.8.1+15.04.20160720-0ubuntu1) vivid; urgency=medium

  * Register for media-hub service unregister/register signals and raise
    an error to the client application when media-hub-server unregisters
    and then re-registers on dbus. This will allow the client to handle
    this event as it deems appropriate. (LP: #1506953)

 -- Jim Hodapp <email address hidden> Wed, 20 Jul 2016 21:28:27 +0000

Changed in qtubuntu-media (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtubuntu-media - 0.8.1+16.10.20160720-0ubuntu1

---------------
qtubuntu-media (0.8.1+16.10.20160720-0ubuntu1) yakkety; urgency=medium

  * Register for media-hub service unregister/register signals and raise
    an error to the client application when media-hub-server unregisters
    and then re-registers on dbus. This will allow the client to handle
    this event as it deems appropriate. (LP: #1506953)

 -- Jim Hodapp <email address hidden> Wed, 20 Jul 2016 21:28:27 +0000

Changed in qtubuntu-media (Ubuntu):
status: In Progress → Fix Released
Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
status: In Progress → Fix Released
Changed in media-hub (Ubuntu):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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