Sound is cut when another application is launched

Bug #1269414 reported by Sébastien DUBOIS
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
unity-mir
Fix Released
Undecided
Unassigned
unity-mir (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Sound is cut when another application is launched.

To reproduce the problem, start phone. Go to the home screen, click on a music and on the play button : the music is launched. Start the contact application and the sound is cut. Go back the music application and the sound come back.

Sound is cut when screen is light off.

To reproduce the problem, start phone. Go to the home screen, click on a music and on the play button : the music is launched. Wait for automatic screen off (55s) and the sound is cut 2-5 seconds after.
There is the same problem when we push the power button to cut screen.
The sound come back when the application takes focus.

Test configuration :
    - nexus 4
    - dual boot with android
    - ubuntu trusty 14.04 r129

Related branches

Revision history for this message
Victor Thompson (vthompson) wrote :

Does this happen when the Music app is being used? Or is it the preview functionality in the music scope?

Changed in music-app:
status: New → Incomplete
Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

it's happen with Music app.

Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

With the preview functionality in the music scope, the sound stop when screen gone automatically off and sometimes (during the screen is off) the sound come back for a few seconds.

Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

There is the same problem with the Grooveshark app or Radio.io app.
That gives the impression that the sound is cut off when applications lose focus.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Ok so any bugs in the previews in the music-scope should be mark against the project unity-music-lens.

The problem with the audio stopping is due to the apps being put into a 'sleep' state, there is currently work on creating a service (think it is called media-hub?) which will allow for audio to continue playing even if the app is in a sleep state.

IIRC there are bugs somewhere for this, but I believe the music-app should keep playing as we have an exception with powerd?

Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

Is it possible to have more than 1 app running at the same time?
Where can I found some documentation about app scheduling? Is it managed by unity8?

Revision history for this message
Victor Thompson (vthompson) wrote :

I'm still not sure whether you are running the music app or just previewing the tracks. The music app has an exception that should work universally to let another app run in the foreground while it plays music in the background.

However, I haven't tried r129 as only r121 is stable. Maybe something changed recently that assumed all apps would make use of the media-hub. I'll try to upgrade to 129 and verify.

Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

Another way to reproduce the problem.
Power up the phone.
Unlock the SIM card.
Start the music app.
In the music app start listening a song (for me happy of C2C).
During the listening of the song, start the contact app and the sound is cut off.
Come back to the Music app and sound come back.

I install r121 and I check.

Revision history for this message
Sébastien DUBOIS (seb-ipsa) wrote :

The problem with Musci app is not present in r121.
The problem with the preview functionality is not present in r121.

Revision history for this message
Victor Thompson (vthompson) wrote :

Confirmed in r131.

Changed in music-app:
status: Incomplete → Triaged
importance: Undecided → High
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Works okay in #127. We're bisecting to find out where it broke.

Revision history for this message
Victor Thompson (vthompson) wrote :

Reported in r129. So must have either broke in r128 or r129.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Confirmed broke in #128 on mako here.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Took #128 on mako, made writable then reverted libunity-mir using https://launchpadlibrarian.net/161886460/libunity-mir1_0.2%2B14.04.20140108.1-0ubuntu1_armhf.deb and tested again.
Works okay again with that revert.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

#131 with reverted libunity-mir also 'fixes' this.

affects: music-app → unity-mir (Ubuntu)
Gerry Boland (gerboland)
Changed in unity-mir:
status: New → In Progress
Changed in unity-mir (Ubuntu):
status: Triaged → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-mir at revision 168, scheduled for release in unity-mir, milestone phone-v1-freeze

Changed in unity-mir:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-mir - 0.2+14.04.20140116-0ubuntu1

---------------
unity-mir (0.2+14.04.20140116-0ubuntu1) trusty; urgency=low

  [ Gerry Boland ]
  * [cmake] set default build type to RelWithDebInfo, add workaround to
    set QT_NO_DEBUG with that option.

  [ Albert Astals ]
  * Tests for ApplicationManager start/stopApplication At the moment
    they just work on the device (well they may as well work on Mir on
    the desktop but have not tried). You need to install the libunity-
    mir-tests package and then run unity-mir-test-app.

  [ Ricardo Mendoza ]
  * Correctly respect lifecycle exceptions in the new sidestage model.
    (LP: #1269414)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 168
 -- Ubuntu daily release <email address hidden> Thu, 16 Jan 2014 13:13:44 +0000

Changed in unity-mir (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Victor Thompson (vthompson) wrote :

Confirmed fixed in r132.

Changed in unity-mir:
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.