After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346287 - shows wrong song playing
shows wrong song playing
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
HEAD
Other All
: Normal minor
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 367713 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-06-30 13:32 UTC by Johannes Berg
Modified: 2006-12-13 07:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot showing rhythmbox playing (91.54 KB, image/png)
2006-06-30 13:33 UTC, Johannes Berg
  Details
Screenshot showing bug on my computer (101.31 KB, image/png)
2006-10-30 14:11 UTC, Laurence
  Details
Correct the history's current song, when appending repeat. (1.83 KB, patch)
2006-11-03 00:39 UTC, Tim Retout
committed Details | Review

Description Johannes Berg 2006-06-30 13:32:24 UTC
Please describe the problem:
every once a while rhythmbox will again play the same song it has just played, but update the UI for the next one already. I haven't found a pattern to this yet. attaching a screenshot.

Steps to reproduce:
I can't really reproduce it.

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Johannes Berg 2006-06-30 13:33:22 UTC
Created attachment 68218 [details]
screenshot showing rhythmbox playing

forgot to mention in the report that the *list* actually shows the correct song as indicated by the playing arrow.
Comment 2 Laurence 2006-10-30 14:11:46 UTC
Created attachment 75664 [details]
Screenshot showing bug on my computer

I am also having this issue. I have attached one screenshot illustrating this, although I have another which shows the same bug with a different song.
Comment 3 Tim Retout 2006-10-30 18:06:28 UTC
Steps to reproduce:

1. Choose a relatively small set of tracks.
2. Turn on 'Repeat' and 'Shuffle'.
3. Drag the slider through each song, and let it play the last few seconds, so that it switches tracks itself.

Eventually, Rhythmbox will play the same song twice in a row, but the words at the top will change to a different song.

(I'm using CVS HEAD.)
Comment 4 Sven Herzberg 2006-10-30 20:37:32 UTC
*** Bug 367713 has been marked as a duplicate of this bug. ***
Comment 5 Alex Lancaster 2006-10-30 21:05:35 UTC
Mark as still in HEAD (as per comment #3).
Comment 6 Tim Retout 2006-11-02 22:14:44 UTC
I've stepped through it with gdb. When the song gets repeated, rb_history_append is called with the correct (repeated) song.

After this, however, rb_history_current returns a null pointer. Hence, in rb_random_play_order_go_next, the first song in the history is marked as playing, not the one that actually *is* playing.

So, check the history code.
Comment 7 Tim Retout 2006-11-03 00:39:18 UTC
Created attachment 75904 [details] [review]
Correct the history's current song, when appending repeat.

Yes, when appending a repeat of the current song, hist->priv->current will be set to the end pointer. This patch checks for that case, and points it to the last song of the history instead.

Now, this will produce unexpected behaviour if hist->priv->current is in the middle of the history at the time. Will that ever happen?

Also, I removed an assertion that is no longer true in this case; that might not be the right thing to do...
Comment 8 Jeffrey Knockel 2006-12-13 05:55:38 UTC
I've been using this patch against 0.9.6, and it seems to work finely.  Thanks.
Comment 9 James "Doc" Livingston 2006-12-13 07:09:22 UTC
Sorry for taking so long to look at this, I've committed it to cvs. Thanks.