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 584804 - audioscrobbler only sends one track with RBPlayerGst backend
audioscrobbler only sends one track with RBPlayerGst backend
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: playback
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 586361 586751 588765 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-06-04 09:00 UTC by Nguyen Thai Ngoc Duy
Modified: 2018-05-24 14:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug log (19.96 KB, application/octet-stream)
2009-06-10 10:11 UTC, Nguyen Thai Ngoc Duy
Details
Log at start of song (22.08 KB, text/x-log)
2010-05-24 13:59 UTC, Martin Stjernholm
Details
Log at end of song (23.53 KB, text/x-log)
2010-05-24 14:00 UTC, Martin Stjernholm
Details

Description Nguyen Thai Ngoc Duy 2009-06-04 09:00:48 UTC
Start playing songs. Only the first track gets submitted. Observations show that rb_shell_player_get_playing_time() returns the playing time of the last-played song, and it's usually larger than 15, so rb_audioscrobbler_song_changed_cb() refuses to queue the current song.

This only happens with RBPlayerGst backend. RBPlayerGstXFade seems to run fine.
Comment 1 Jonathan Matthew 2009-06-10 09:29:53 UTC
I don't seem to be able to reproduce this.  Is this happening every on every track change or only some of the time?
Comment 2 Nguyen Thai Ngoc Duy 2009-06-10 10:11:56 UTC
Created attachment 136264 [details]
debug log

This log was taken with this patch applied:

diff --git a/plugins/audioscrobbler/rb-audioscrobbler.c b/plugins/audioscrobbler/rb-audioscrobbler.c
index 268f840..d10ca0a 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler.c
@@ -1220,6 +1220,8 @@ rb_audioscrobbler_song_changed_cb (RBShellPlayer *player,
 		audioscrobbler->priv->current_elapsed = 0;
 	}
 
+	if (rb_audioscrobbler_is_queueable (entry))
+		rb_debug("playing time is %d %d", got_time, playing_time);
 	if (rb_audioscrobbler_is_queueable (entry) && (got_time == FALSE || playing_time < 15)) {
 		AudioscrobblerEntry *as_entry;
 
Could it be due to GStreamer? I'm on Gentoo with:
 - gstreamer 0.10.13
 - gst-plugins-bad 0.10.11
 - gst-plugins-base 0.10.23
 - gst-plugins-good 0.10.14
 - gst-plugins-ugly 0.10.11
Comment 3 Jonathan Matthew 2009-06-10 10:59:15 UTC
I guess this is happening because of the way we're doing track changes with playbin2.  Try commenting out everything in about_to_finish_cb() in backends/gstreamer/rb-player-gst.c, which should make it behave like it used to.

If that stops the problem occurring, there are a few ways we could go about fixing this.  If not.. I don't know.
Comment 4 Nguyen Thai Ngoc Duy 2009-06-10 11:24:39 UTC
I commented out everything inside about_to_finish_cb() and got negative playing_time instead. "tick_cb" messages showed something like this repeatedly

tick: [... 4294967295:189(0)]

Progressbar stayed at the beginning. I did not turn sound on so I don't know if it played properly.
Comment 5 Jonathan Matthew 2009-06-10 13:53:29 UTC
I realised I was looking at the wrong thing (and the 'now playing' notification tricked me..); I'm seeing the same thing now.  Commenting out about_to_finish_cb stops it from happening here.
Comment 6 Jonathan Matthew 2009-06-10 14:44:24 UTC
fixed in commit 0b217fa895f03cf88d3bb47b7ceffac948d849b7

Thanks for reporting this.
Comment 7 Jonathan Matthew 2009-06-19 11:33:55 UTC
*** Bug 586361 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Matthew 2009-06-23 13:15:29 UTC
*** Bug 586751 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Matthew 2009-07-16 11:33:19 UTC
*** Bug 588765 has been marked as a duplicate of this bug. ***
Comment 10 Jonathan Matthew 2009-07-16 11:35:34 UTC
Apparently this still happens with 0.12.3.  Someone who can reproduce this: please provide output from 'rhythmbox -d' from around the time that the second track starts.
Comment 11 Martin Stjernholm 2010-05-24 13:58:54 UTC
Can't say for sure whether I get the same problem, but it appears to be similar: When I play a last.fm radio station (Tag or Similar Artists radio), it only scrobbles the first song. Changing station doesn't help. Playing a local file usually works fine, though (but see [bug 615684]). Switching to a last.fm radio station after a local file again scrobbles the first song only.

Attached logs shows debug output at the beginning and end of a last.fm radio song that fails to scrobble.

I'm using rhythmbox 0.12.8-0ubuntu4. Not really sure when this started happening. It's likely that it's a regression from 0.12.5 (i.e. the version in Ubuntu Karmic), because I think I would have noticed if it worked this bad earlier.
Comment 12 Martin Stjernholm 2010-05-24 13:59:36 UTC
Created attachment 161864 [details]
Log at start of song
Comment 13 Martin Stjernholm 2010-05-24 14:00:50 UTC
Created attachment 161865 [details]
Log at end of song
Comment 14 GNOME Infrastructure Team 2018-05-24 14:25:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/758.