Bug 299545

Summary: Amarok not scrobbling every track
Product: [Unmaintained] phonon-backend-gstreamer Reporter: robert marshall <robert>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED WORKSFORME    
Severity: normal CC: Augie, martin.sandsmark, mathieu.jaillet, myriam, romain.perier, tdfischer
Priority: NOR    
Version: 4.6   
Target Milestone: 4.6.1   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.6.2
Sentry Crash Report:

Description robert marshall 2012-05-07 10:06:51 UTC
I'm only seeing around 50% of the tracks I listen to being scrobbled on last.fm

I updated my kubuntu install yesterday from 11.10 to 12.04 in 11.10 I'd been running amarok 2.5.0 via a ppa so there's no version change but I've moved to the official package and a later kde release (4.8.2).

This morning I've listened to 14 tracks and only 7 appear on last.fm - the latest one is there as well as the first, I also noticed, last night that some of the tracks I'd only listened to once were appearing on lastfm twice (adjacent to each other) the listening time being the same for both tracks (see http://www.last.fm/user/rajmarshall/tracks). This could be an issue at last.fm but with it coinciding with my upgrade it looks to be more likely on the amarok side.
If I look at the amarok output in .xsesssion-errors I can see HTTP POST:  QUrl( ... entries for the missing tracks.
Comment 1 Myriam Schweingruber 2012-05-07 11:45:44 UTC
Tracks showing twice with the same timestamp is certainly a last.fm bug, as  Amarok has no influence on how last.fm displays tracks.

The missing tracks though is maybe an Amarok problem. Could you please give the exact error lines from .xsession-errors with some lines before and after the track line?
Comment 2 Myriam Schweingruber 2012-05-07 12:14:03 UTC
While I am at it, did you check in http://www.last.fm/user/rajmarshall/library/recent? It seems to me that there are far more tracks shown.
Comment 3 robert marshall 2012-05-07 13:11:47 UTC
Here's the .xsession-errors output for one of the missing tracks - no errors that are obvious to me - there's only http posts at the start of the track play - presumably this tells last.fm that it is now playing and the second missing one would tell last.fm that I completed listening to it? Tracks which are in my lastfm playlist have both the initial pair of posts and the final pair.

What may be related - and I was getting around to preparing a bug report:  for some tracks - when 
the track completes, amarok stops with it apparently being 2 seconds into playing the next track, play/pause won't get that track to play - I have to double click on the playlist to start it.
I'm fairly sure that when this happens the previous track doesn't get sent to last.fm but I think that some tracks where there *isn't* a pause also don't get sent to lastfm. So this bug (299545) may be really about the track ending problem in which case it is assigned to the wrong component.
(I'm using gstreamer as a backend)
------------- .xsession-errors ----------
About to finish 
Got next source. Waiting for end of current. 
New source:  QUrl( "file:///home/robert/Music/My eMusic/Michael Tilson Thomas/Mahler_ Symphony No. 8 in E-Flat Major - Adagio from Symphony No. 10/12 Symphony No. 8 in E-Flat Major_ Part II - XII. Alles Verg_ngliche.mp3" )  
Finally got a source 
Duration message 
Stream changed to file:///home/robert/Music/My%20eMusic/Michael%20Tilson%20Thomas/Mahler_%20Symphony%20No.%208%20in%20E-Flat%20Major%20-%20Adagio%20from%20Symphony%20No.%2010/12%20Symphony%20No.%208%20in%20E-Flat%20Major_%20Part%20II%20-%20XII.%20Alles%20Verg_ngliche.mp3 
Fading to 0.891251 
Fading to 0.891251 
HTTP POST:  QUrl( "http://post2.audioscrobbler.com:80/protocol_1.2" )  "s=7ed95582b9fd4c1492b5e67d12c03db8&a[0]=Michael%20Tilson%20Thomas&t[0]=Symphony%20No.%208%20in%20E-Flat%20Major%3A%20Part%20II%20-%20XI.%20Blicket%20auf&i[0]=1336387302&o[0]=P&r[0]=&l[0]=392&b[0]=Mahler%3A%20Symphony%20No.%208%20in%20E-Flat%20Major%20-%20Adagio%20from%20Symphon&n[0]=0&m[0]=" 
HTTP POST:  QUrl( "http://post.audioscrobbler.com:80/np_1.2" )  "s=7ed95582b9fd4c1492b5e67d12c03db8&a=Michael%20Tilson%20Thomas&t=Symphony%20No.%208%20in%20E-Flat%20Major%3A%20Part%20II%20-%20XII.%20Alles%20Verg%C3%A4ngliche&b=Mahler%3A%20Symphony%20No.%208%20in%20E-Flat%20Major%20-%20Adagio%20from%20Symphon&l=375&n=0&m=" 
QString::arg: Argument missing: /PendingTrack, /org/mpris/MediaPlayer2
Stream changed to file:///home/robert/Music/My%20eMusic/Michael%20Tilson%20Thomas/Mahler_%20Symphony%20No.%208%20in%20E-Flat%20Major%20-%20Adagio%20from%20Symphony%20No.%2010/12%20Symphony%20No.%208%20in%20E-Flat%20Major_%20Part%20II%20-%20XII.%20Alles%20Verg_ngliche.mp3 
Fading to 0.891251 
Fading to 0.891251 
"OK" 
"OK" 
QGridLayoutEngine::addItem: Cell (1, 1) already taken
QGridLayoutEngine::addItem: Cell (2, 1) already taken
QGridLayoutEngine::addItem: Cell (3, 1) already taken
QGridLayoutEngine::addItem: Cell (4, 1) already taken
QGridLayoutEngine::addItem: Cell (5, 1) already taken
QGridLayoutEngine::addItem: Cell (6, 1) already taken
QGridLayoutEngine::addItem: Cell (7, 1) already taken
About to finish 
Got next source. Waiting for end of current. 
New source:  QUrl( "file:///home/robert/Music/media-a/Music/Chopin/Disc 09 Mazurkas - 25. Mazurka in B minor Op. 33 No. 4.mp3" )  
Finally got a source 
Duration message 
Stream changed to file:///home/robert/Music/media-a/Music/Chopin/Disc%2009%20Mazurkas%20-%2025.%20Mazurka%20in%20B%20minor%20Op.%2033%20No.%204.mp3 
Fading to 0.891251 
Fading to 0.891251 
HTTP POST:  QUrl( "http://post.audioscrobbler.com:80/np_1.2" )  "s=7ed95582b9fd4c1492b5e67d12c03db8&a=Vladimir%20Ashkenazy&t=Mazurka%20in%20B%20minor%20Op.%2033%20No.%204&b=The%20Piano%20Works%20Disc%209%2F%2FMazurkas&l=276&n=0&m=" 
QString::arg: Argument missing: /PendingTrack, /org/mpris/MediaPlayer2
Stream changed to file:///home/robert/Music/media-a/Music/Chopin/Disc%2009%20Mazurkas%20-%2025.%20Mazurka%20in%20B%20minor%20Op.%2033%20No.%204.mp3
Comment 4 robert marshall 2012-05-07 13:22:51 UTC
(In reply to comment #2)
> While I am at it, did you check in
> http://www.last.fm/user/rajmarshall/library/recent? It seems to me that
> there are far more tracks shown.

I'm not sure what you're pointing me to here - there's only one in that addition list which is dated after I started seeing the problem - yesterday afternoon (Poissons d'or) and that's in the tracklist
Comment 5 robert marshall 2012-05-08 15:11:31 UTC
I saw your comment wrt GStreamer vs VLC in bug #233282 and I have now installed the vlc backend and with this, so far, having played 30 tracks I've seen no tracks being un-scrobbled and no cases of the play back stopping 2 seconds in.

So this looks to be a problem with the gstreamer backend in kubunu 12.04 (and not in 11.10), as far as amarok is concerned I think this bug is done.
Comment 6 Myriam Schweingruber 2012-05-11 00:48:26 UTC
Oh, quite surprising, but all the better, at least we know how to work around it. Thanks for spotting it. Reassigning to phonon-backend-gstreamer.
Comment 7 Myriam Schweingruber 2012-05-22 07:54:05 UTC
*** Bug 300412 has been marked as a duplicate of this bug. ***
Comment 8 Harald Sitter 2012-06-13 10:00:53 UTC
someone please try the 4.6 branch of phonon-gstreamer git

TIA
Comment 9 Myriam Schweingruber 2012-07-30 20:14:50 UTC
Since the 4.6.1 version has been released several weeks ago, is this still valid?
Comment 10 robert marshall 2012-07-30 21:39:25 UTC
Is there a ppa for the new phonon-gstreamer release on kubuntu? I can see a proposal to build it for 12.04 https://bugs.launchpad.net/ubuntu/+source/phonon-backend-gstreamer/+bug/1028903 but it is not available yet
Comment 11 Myriam Schweingruber 2012-07-30 23:32:23 UTC
(In reply to comment #10)
> Is there a ppa for the new phonon-gstreamer release on kubuntu? I can see a
> proposal to build it for 12.04
> https://bugs.launchpad.net/ubuntu/+source/phonon-backend-gstreamer/+bug/
> 1028903 but it is not available yet

Well, if it is made available it should appear in the kubuntu-backports PPA
Comment 12 robert marshall 2012-07-31 06:33:18 UTC
I have kubuntu-backports PPA added and I'm still on 4.6.0
Comment 13 Myriam Schweingruber 2013-04-13 13:36:14 UTC
Is this still valid with phonon-backend-gstreamer 4.6.3 and Amarok 2.7.0?
Comment 14 robert marshall 2013-04-13 15:19:18 UTC
I'm am 4.6.2 of gstreamer and I've not seen this since the 12.10 update - it can be closed!
Comment 15 Myriam Schweingruber 2013-04-13 16:07:00 UTC
Thank you for the fast feedback.