Often fails to connect to Pulseaudio and unity-notifications (results in missing volume notifications and improper volume control)

Bug #1389008 reported by Charles Kerr
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
indicator-sound (Ubuntu)
Invalid
Critical
Unassigned
indicator-sound (Ubuntu RTM)
Invalid
Critical
Unassigned
ubuntu-touch-session (Ubuntu)
Fix Released
Undecided
Ted Gould
ubuntu-touch-session (Ubuntu RTM)
Fix Released
Undecided
Unassigned
unity8 (Ubuntu)
Invalid
Undecided
Unassigned
unity8 (Ubuntu RTM)
Invalid
Critical
Unassigned

Bug Description

Often after boot indicator-sound fails to connect to Pulseaudio and to unity-notifications using libnotify. Therefore, volume notifications aren't shown and changes to the volume role go unnoticed, which then results in improper volume control.

As already mentioned in the original bug description, running "restart indicator-sound" resolves the issue.

Original description:

Happens often after phone boot where changing volume by touch or by phone buttons. Volume correctly changes, but the org.freedesktop.Notifications popup isn't displayed.

The problem seems fixes itself if you run "restart indicator-sound", so maybe there's an issue with i-sound and unity-notifications starting at the same time, with the former querying the latter's capabilities before it's ready for business?

Related branches

Charles Kerr (charlesk)
description: updated
Ted Gould (ted)
Changed in indicator-sound:
status: New → Triaged
Revision history for this message
Niklas Wenzel (nikwen) wrote :

I'm adding log files for comparison when this is broken and when it isn't.

Revision history for this message
Niklas Wenzel (nikwen) wrote :
Niklas Wenzel (nikwen)
summary: - sometimes doesn't pop up volume notifications
+ Often fails to connect to Pulseaudio (results in missing volume
+ notifications and improper volume control)
summary: - Often fails to connect to Pulseaudio (results in missing volume
- notifications and improper volume control)
+ Often fails to connect to Pulseaudio and libnotify (results in missing
+ volume notifications and improper volume control)
Niklas Wenzel (nikwen)
description: updated
summary: - Often fails to connect to Pulseaudio and libnotify (results in missing
- volume notifications and improper volume control)
+ Often fails to connect to Pulseaudio and unity-notifications (results in
+ missing volume notifications and improper volume control)
affects: ubuntu-rtm → indicator-sound (Ubuntu RTM)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Making it critical as the phone can get into a state where you're unable to hear alarms and other roles (as you're just controlling the master volume).

Changed in indicator-sound (Ubuntu):
importance: Undecided → Critical
Changed in indicator-sound (Ubuntu RTM):
importance: Undecided → Critical
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Something made indicator-sound to start a bit earlier than before, which might be causing this race.

It's starting even before pulse, which is only depending on dbus to be up at the session level. We might want to adjust the upstart job to wait for the other pieces to be fully up before starting itself.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Also, this often happens with mako, but couldn't reproduce it yet on krillin (probably because it's a race).

Revision history for this message
Ted Gould (ted) wrote :

Went ahead and rendered the startup sequence of tasks, the indicators are pretty far down the line. Perhaps we can look at when Unity8 is sending the signal for them to start, perhaps to make it at the end of it's init.

Revision history for this message
Ted Gould (ted) wrote :

Oh, my. Found the issue. Unity8 is starting the indicators BEFORE unity8 starts.

Revision history for this message
Niklas Wenzel (nikwen) wrote :

@ted: I added the Unity8 project to this bug report then.

Revision history for this message
Michał Sawicz (saviq) wrote :

> Oh, my. Found the issue. Unity8 is starting the indicators BEFORE unity8 starts.

Yes, because when we were adding that signal, we were told that that's desired ;)

Revision history for this message
Michał Sawicz (saviq) wrote :

Is it not possible for the indicator to retry the connection?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-sound (Ubuntu):
status: New → Confirmed
Changed in unity8 (Ubuntu):
status: New → Confirmed
tags: added: rtm14
Olli Ries (ories)
Changed in unity8 (Ubuntu RTM):
importance: Undecided → Critical
Olli Ries (ories)
tags: added: touch-2014-11-06
Revision history for this message
Ted Gould (ted) wrote :

Marking the indicator-sound items as invalid as we had to fix this with an indicator-sound override in ubuntu-touch-session because it has a pulseaudio job that is not in desktop. Eventually that should move to indicator-sound with the pulse job, but that's where the fix will come from today.

no longer affects: indicator-sound
Changed in indicator-sound (Ubuntu):
status: Confirmed → Invalid
Changed in indicator-sound (Ubuntu RTM):
status: New → Invalid
Changed in ubuntu-touch-session (Ubuntu):
status: New → In Progress
assignee: nobody → Ted Gould (ted)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-touch-session - 0.108+15.04.20141111-0ubuntu1

---------------
ubuntu-touch-session (0.108+15.04.20141111-0ubuntu1) vivid; urgency=low

  [ Ted Gould ]
  * Override indicator-sound to wait for pulse audio (LP: #1389008)
 -- Ubuntu daily release <email address hidden> Tue, 11 Nov 2014 21:44:44 +0000

Changed in ubuntu-touch-session (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-touch-session - 0.108+15.04.20141111~rtm-0ubuntu1

---------------
ubuntu-touch-session (0.108+15.04.20141111~rtm-0ubuntu1) 14.09; urgency=low

  [ Ted Gould ]
  * Override indicator-sound to wait for pulse audio (LP: #1389008)
 -- Ubuntu daily release <email address hidden> Tue, 11 Nov 2014 21:44:44 +0000

Changed in ubuntu-touch-session (Ubuntu RTM):
status: New → Fix Released
Revision history for this message
Oliver Grawert (ogra) wrote :

reverted in RTM due to issues with first boot ...

ubuntu-touch-session (0.108+15.04.20141111-0ubuntu2) 14.09; urgency=medium

  * revert the former override change since it was found to be not working on
    first boot on fresh installs during milestone testing.

ubuntu-touch-session (0.108+15.04.20141111-0ubuntu1) vivid; urgency=low

  [ Ted Gould ]
  * Override indicator-sound to wait for pulse audio (LP: #1389008)

Date: 2014-11-12 17:47:09.485214+00:00

Changed in ubuntu-touch-session (Ubuntu RTM):
status: Fix Released → Confirmed
Changed in unity8 (Ubuntu):
status: Confirmed → Invalid
Changed in unity8 (Ubuntu RTM):
status: New → Invalid
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

ubuntu-touch-session sync

Changed in canonical-devices-system-image:
importance: Undecided → High
milestone: none → ww05-2015
status: New → Confirmed
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
Ted Gould (ted)
Changed in ubuntu-touch-session (Ubuntu RTM):
status: Confirmed → 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.