Sound indicator is jumpy while music playing (grooveshark)

Bug #1306499 reported by Alan Pope 🍺🐧🐱 🦄 on 2014-04-11
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
The Sound Menu
Fix Released
High
Unassigned
indicator-sound (Ubuntu)
Undecided
Unassigned
unity8 (Ubuntu)
Medium
Michael Terry

Bug Description

Open sound indicator
Try and swipe the volume up and down
Try and increase/decrease volume with the hardware vol+ & vol- keys
Note that the slider takes a long time to update, and sometimes leaps backwards and forwards despite you only holding one button down.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: indicator-sound 12.10.2+14.04.20140401-0ubuntu1
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.1-0ubuntu2
Architecture: armhf
Date: Fri Apr 11 10:39:43 2014
InstallationDate: Installed on 2014-04-11 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS - armhf (20140411)
SourcePackage: indicator-sound
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Lars Karlitski (larsu) wrote :

This is a UI issue. We're using the same indicator-sound on unity7 and have no such issues.

affects: indicator-sound (Ubuntu) → unity8 (Ubuntu)
Changed in unity8 (Ubuntu):
assignee: nobody → Nick Dedekind (nick-dedekind)
Nick Dedekind (nick-dedekind) wrote :

Actually, I think it might be the accounts service. I upgraded on desktop and the same happens with unity7.
unity8 on previous revision worked on on desktop; so it's not the UI.

Changed in unity8 (Ubuntu):
assignee: Nick Dedekind (nick-dedekind) → nobody
Michael Terry (mterry) wrote :

It might be the sound syncing with AccountsService. All the dbus code I added is async, but there might be synchronous code elsewhere that is getting exercised now?

Oliver Grawert (ogra) wrote :

please test this with a newer image, there were issues in the sound layer (a double free in one of the android libs) that were fixed in 289. i can not reproduce it on 291

Launchpad Janitor (janitor) wrote :

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

Changed in unity8 (Ubuntu):
status: New → Confirmed
tags: added: mako qa-touch r287
tags: added: r299
Selene ToyKeeper (toykeeper) wrote :

I still see this issue in image 299. After attempting to adjust the volume via the slider in the sound indicator, the volume changes can lag by as much a full minute. This happens especially when attempting to drag the slider (instead of simply tapping at the desired level).

Steps to reproduce the issue:
1. Start a song or a video.
2. Pull down the sound indicator.
3. Drag the volume slider to a new setting.

Expected result: Nearly instant volume changes, lagging by less than 100ms.

Actual result: The volume slider will do nothing at first, then jump around on its own for up to 60 seconds or so, preventing all other interactions with the device. The UI locks completely until the indicator catches up.

Selene ToyKeeper (toykeeper) wrote :

(actually, it seems the symptoms can sometimes be even worse... I changed it about halfway through my previous comment, the device stopped responding for a few minutes, and then the screen went blank and it restarted unity8)

Michał Sawicz (saviq) wrote :

Selene, the last thing you mentioned (u8 becoming unresponsive and restarting) means it crashed. Would be good if you could preprocess the .crash file (apport-cli or /usr/share/apport/whoopsie-upload-all) and upload the .crash somewhere.

As for the issue, it's definitely visible on desktop as well - just drag the slider around and see it jump after you release it.

Nick Dedekind (nick-dedekind) wrote :

This is the revision that caused the issue
http://bazaar.launchpad.net/~indicator-applet-developers/indicator-sound/trunk.14.04/revision/431

probably some sort of feedback loop.

Changed in indicator-sound:
status: New → Confirmed
Nick Dedekind (nick-dedekind) wrote :

It's feedback from asynchronous account service property changes . if we change the volume 10 times internally (and send off update to account services), then we get a slow trickle volume property changes from account services which changes the internal volume value.

Matthew Paul Thomas (mpt) wrote :

Compare bug 1289477, the equivalent problem with the brightness slider.

Selene ToyKeeper (toykeeper) wrote :

Reproduced on utopic r2.

tags: added: u2
Changed in indicator-sound:
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

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

Changed in indicator-sound (Ubuntu):
status: New → Confirmed
Michael Terry (mterry) wrote :

So Nick identified that there is also a similar issue inside unity8. The indicator-sound branch we have fixes things a lot, but there is still a little bit of lagginess in there due to the unity8 side of things.

I'll look into that. But is there any reason we can't land the indicator-sound branch now?

Changed in unity8 (Ubuntu):
assignee: nobody → Michael Terry (mterry)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-sound - 12.10.2+14.10.20140509-0ubuntu1

---------------
indicator-sound (12.10.2+14.10.20140509-0ubuntu1) utopic; urgency=low

  [ Michael Terry ]
  * Added timers to volume changes to settle frequent updates from
    account services. (LP: #1306499)

  [ Nick Dedekind ]
  * Added timers to volume changes to settle frequent updates from
    account services. (LP: #1306499)
 -- Ubuntu daily release <email address hidden> Fri, 09 May 2014 14:43:21 +0000

Changed in indicator-sound (Ubuntu):
status: Confirmed → Fix Released
Selene ToyKeeper (toykeeper) wrote :

As of image utopic 60, this is much much better. The lag is a second or less instead of being up to a full minute.

Selene ToyKeeper (toykeeper) wrote :

In Utopic 140, it still lags a bit (up to a few seconds, if I drag it rapidly back and forth), but it's mostly not too bad. It just feels jittery, instead of being massively behind what the user told it to do. By jittery, I mean that sliding it smoothly from one end to the other tends to result in a lot of volume spikes along the way.

summary: - Sound indicator is laggy #287 on mako
+ Sound indicator is laggy
Dave Morley (davmor2) on 2014-07-30
tags: added: qa-daily-testing rtm14

Still jittery and a bit laggy in Utopic 161.

Michael Terry (mterry) on 2014-08-07
Changed in indicator-sound:
status: Confirmed → Fix Released
Michael Terry (mterry) wrote :

What device does it feel laggy on? On my mako, it doesn't feel bad.

Michael Terry (mterry) wrote :

I haven't retested yet, but Saviq mentioned that he got it when playing music specifically. So I'll look at that as a reproduction method next.

kevin gunn (kgunn72) wrote :

retested on image #213 on N4

the slider itself isn't laggy and quite smooth.
however, when a song is playing in grooveshark it can be seen "jumpy".
And after playing with it a bit it does seem to have something to do with potentially be queuing events (in Qt?) and reading current volume to draw its placement ? (vs ignore current vol if touch even "release" hasn't occured)

Changed in unity8 (Ubuntu):
importance: Undecided → Medium
kevin gunn (kgunn72) wrote :

removing tag as the severity/criticality has certainly changed

tags: added: touch-2014-10-16
removed: rtm14
summary: - Sound indicator is laggy
+ Sound indicator is jumpy while music playing (grooveshark)
kevin gunn (kgunn72) wrote :

fixed with latest polish branch

Changed in unity8 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers