Race Condition setting active source at startup

Bug #882732 reported by dobey
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Banshee
Fix Released
Medium
banshee (Ubuntu)
Fix Released
High
dobey
Oneiric
Fix Released
High
dobey
Precise
Fix Released
High
dobey

Bug Description

It appears there is a race condition when setting the active source, at startup. We need to do this in the U1MS extension, when a u1ms:// link is passed into banshee. If banshee is already running, this doesn't seem to be an issue, as things are relatively idle. However, at startup, there is a lot more activity happening, and active source notification seems to race with the main loop, sometimes failing, causing the source switch to not happen, or causing the source to switch, but leaving the selected source in the source tree list on the sidebar, to be incorrect.

TESTCASE:
This is an extremely difficult bug to replicate. In order to do so, you would need to have the libubuntuone 0.11.0-0ubuntu3 packages installed from oneiric-proposed (or libubuntuone from the U1 Nightlies PPA), and a version of banshee with the patch to fix bug #872972, but without the patch to fix this bug. Under these conditions, opening a u1ms:// link without banshee already running will result in either the U1MS source not being switched to at all, or with it being displayed by default, but with the source selection in the tree of sources on the left sidebar remaining on the Music library source.

Related branches

dobey (dobey)
Changed in banshee (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → High
status: New → In Progress
milestone: none → oneiric-updates
Changed in banshee:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Michael Terry (mterry) wrote :

I pushed your branch to oneiric-proposed. Subscribing ubuntu-sru

dobey (dobey)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Rodney, or anyone else affected,

Accepted banshee into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in banshee (Ubuntu Oneiric):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Bertrand Lorentz (bertrand-lorentz) wrote :

This fix seems to break the Amazon store:
https://bugzilla.gnome.org/show_bug.cgi?id=662982

I would advise against including it in an update.

Changed in banshee:
status: Fix Released → Confirmed
Revision history for this message
Chow Loong Jin (hyperair) wrote : Banshee 2.2.1

I realize that the -1ubuntu3 was just uploaded with a fix for these bugs, but
2.2.1 was just released and will be uploaded shortly (as soon as it gets
uploaded into Debian). It would be nice if we could have the users test against
this version instead.

--
Kind regards,
Loong Jin

Revision history for this message
dobey (dobey) wrote :

Banshee 2.2.1 does not fix this bug.

Changed in banshee (Ubuntu Oneiric):
status: Fix Committed → In Progress
assignee: nobody → Rodney Dawes (dobey)
Martin Pitt (pitti)
tags: added: verification-failed
removed: verification-needed
dobey (dobey)
Changed in banshee (Ubuntu Precise):
milestone: oneiric-updates → none
Changed in banshee (Ubuntu Oneiric):
milestone: none → oneiric-updates
importance: Undecided → High
Changed in banshee:
status: Confirmed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote :

How is this planned to be fixed in Precise? It should be fixed there before being SRUed to oneiric-proposed.

Revision history for this message
dobey (dobey) wrote :

Chris, the fix is committed in upstream git master, so will be included in the next release (2.3.2) and thus in that upload to debian and precise.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Rodney, or anyone else affected,

Accepted banshee into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in banshee (Ubuntu Oneiric):
status: In Progress → Fix Committed
tags: removed: verification-failed
tags: added: verification-needed
Revision history for this message
dobey (dobey) wrote :

Have been using this fix for a while now and it works very well.

Changed in banshee (Ubuntu Precise):
status: In Progress → Fix Released
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package banshee - 2.2.1-1ubuntu3

---------------
banshee (2.2.1-1ubuntu3) oneiric-proposed; urgency=low

  * debian/patches/90_u1ms_idle_activate.patch:
    - Set as active source in an idle callback (LP: #882732)

banshee (2.2.1-1ubuntu2) oneiric-proposed; urgency=low

  * [8217e74] Add workaround for set_Height exceptions in Hyena.
    Thanks to Andrés G. Aragoneses <email address hidden> (LP: #873787)
 -- Rodney Dawes <email address hidden> Mon, 21 Nov 2011 15:51:37 -0500

Changed in banshee (Ubuntu Oneiric):
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.