Author Topic: XMPlay Last.fm/Audioscrobbler plugin (xmp-scrobbler)  (Read 539727 times)

Dotpitch

  • Posts: 2871
I keep getting a "handshake with last.fm server failed!"
It's the same here, I thought it was my internet connection acting up. Apparently Last.fm has some trouble, usually they fix that in a day or two, so just "wait patiently" ;). In the mean time xmp-scrobbler will save your tracks and submit them later.

VariousThings

  • Posts: 3
Hi, I had the same problem yesterday, but I knew it was a problem with last.fm. During that time, the log file shows that tracks were happily added to the cache. However, NOW when I try to play a song in XMPlay with the scrobbler plugin enabled, it doesn't play the song and freezes XMPlay. It works fine with the plugin disabled.

I had a similar problem before (except that time it was at least playing half the song rather than none, and crashing when it came to the time it would try to upload it to Last.fm), and I solved it by deleting the .cache file. That time, there were only 10 tracks in the cache, so I wondered whether it was a problem related to large numbers of tracks. (But this time, 58 songs were added to the cache during the time I was either disconnected from the internet or Last.fm wasn't working, and I obviously don't want to lose those from my statistics! So this time I've just renamed the .cache file, rather than deleting it entirely. When this problem's solved, will there be a way to restore the track names from that cache and upload them?)

OS: Windows XP Home, SP2

Here is the log file:

Last few songs I played while the Last.fm site wasn't working (they're video game remixes, if you're wondering):
Code: [Select]
2007-09-09 22:29:23 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-09 22:29:23 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2007-09-09 22:29:23 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2007-09-09 22:33:42 [DEBUG] DSP_NewTrack (OPEN)
2007-09-09 22:33:42 [DEBUG] XMP_ScrobInit() started
2007-09-09 22:33:42 [DEBUG] CacheManager::Load()
2007-09-09 22:33:42 [DEBUG] Resizing cache array - new length: 53
2007-09-09 22:33:42 [INFO] Number of entries in the cache: 54
2007-09-09 22:33:42 [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2007-09-09 22:33:42 [DEBUG] XMP_ScrobInit() finished
2007-09-09 22:33:42 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2007-09-09 22:33:51 [DEBUG] XMP_FetchInfo -- start
2007-09-09 22:33:51 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-09-09 22:33:51 [DEBUG] XMP_FetchInfo -- end
2007-09-09 22:33:51 [DEBUG] len = 94, diff = 8
2007-09-09 22:33:51 [INFO] Current track: Aeolius - Apocalyptic Orbital Ovum (Sonic the Hedgehog 2: Hedgehog Heaven)
2007-09-09 22:33:51 [INFO] Submitting in 86 seconds...
2007-09-09 22:34:16 [DEBUG] Could not connect to server.
2007-09-09 22:34:16 [DEBUG] Operation timed out after 30000 milliseconds with 0 bytes received
2007-09-09 22:34:16 [DEBUG] Unable to handshake: sleeping...
2007-09-09 22:34:16 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:35:16 [DEBUG] DSP_Process -- sec <= 0
2007-09-09 22:35:16 [DEBUG] XMP_SubmitProc start
2007-09-09 22:35:16 [DEBUG] Resizing cache array - new length: 106
2007-09-09 22:35:16 [DEBUG] AddTrack (cache_size = 54, tracks_size = 106)
2007-09-09 22:35:16 [INFO] Track added to the cache for submission
2007-09-09 22:35:16 [INFO] Preparing to submit 10 track(s) from the cache
2007-09-09 22:36:29 [DEBUG] Unable to handshake: sleeping...
2007-09-09 22:36:29 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:36:50 [DEBUG] DSP_NewTrack (CLOSE)
2007-09-09 22:36:50 [DEBUG] DSP_NewTrack (OPEN)
2007-09-09 22:36:59 [DEBUG] XMP_FetchInfo -- start
2007-09-09 22:36:59 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-09-09 22:36:59 [DEBUG] XMP_FetchInfo -- end
2007-09-09 22:36:59 [DEBUG] len = 106, diff = 8
2007-09-09 22:36:59 [INFO] Current track: CarboHydroM - The Nine Tails Fox And The Avenger (Street Fighter 2)
2007-09-09 22:36:59 [INFO] Submitting in 98 seconds...
2007-09-09 22:38:30 [DEBUG] Unable to handshake: sleeping...
2007-09-09 22:38:30 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:38:37 [DEBUG] DSP_Process -- sec <= 0
2007-09-09 22:38:37 [DEBUG] XMP_SubmitProc start
2007-09-09 22:38:37 [DEBUG] AddTrack (cache_size = 55, tracks_size = 106)
2007-09-09 22:38:37 [INFO] Track added to the cache for submission
2007-09-09 22:38:37 [DEBUG] Previous submission still in progress
2007-09-09 22:40:24 [DEBUG] DSP_SetFormat( 1, NULL )
2007-09-09 22:40:24 [DEBUG] DSP_StopTrack
2007-09-09 22:40:31 [DEBUG] Unable to handshake: sleeping...
2007-09-09 22:40:31 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:40:36 [DEBUG] DSP_NewTrack (CLOSE)
2007-09-09 22:40:36 [DEBUG] DSP_NewTrack (OPEN)
2007-09-09 22:40:36 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2007-09-09 22:40:44 [DEBUG] XMP_FetchInfo -- start
2007-09-09 22:40:44 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-09-09 22:40:44 [DEBUG] XMP_FetchInfo -- end
2007-09-09 22:40:44 [DEBUG] len = 110, diff = 8
2007-09-09 22:40:44 [INFO] Current track: Daniel Baranowsky - Awakened Fears of the Gerudo (Zelda)
2007-09-09 22:40:44 [INFO] Submitting in 102 seconds...
2007-09-09 22:42:20 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:42:25 [INFO] Track added to the cache for submission
2007-09-09 22:43:06 [WARNING] Seeking during playback is not allowed - current file is not going to be submitted!
2007-09-09 22:44:09 [WARNING] Handshake with Last.fm server failed!
2007-09-09 22:44:42 [INFO] Shutting down...
2007-09-09 22:44:42 ----

Loading XMPlay again today, when the problem started. I tried enabling and disabling debug mode a few times.
Code: [Select]
2007-09-11 00:09:17 ----
2007-09-11 00:09:17 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:14:59 [INFO] Number of entries in the cache: 58
2007-09-11 00:15:37 ----
2007-09-11 00:15:37 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:16:17 ----
2007-09-11 00:16:17 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:16:22 [INFO] Number of entries in the cache: 58
2007-09-11 00:16:57 ----
2007-09-11 00:16:57 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:17:50 [INFO] Number of entries in the cache: 58
2007-09-11 00:33:54 ----
2007-09-11 00:33:54 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:34:20 ----
2007-09-11 00:34:20 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:35:02 [DEBUG] DSP_Free()
2007-09-11 00:35:02 [INFO] Shutting down...
2007-09-11 00:35:02 ----
2007-09-11 00:35:04 ----
2007-09-11 00:35:04 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:35:04 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2007-09-11 00:35:04 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2007-09-11 00:35:25 [DEBUG] DSP_NewTrack (OPEN)
2007-09-11 00:35:25 [DEBUG] XMP_ScrobInit() started
2007-09-11 00:35:25 [DEBUG] CacheManager::Load()

Hmmm... 58 > 57... could these next two lines have something to do with it?
Code: [Select]
2007-09-11 00:35:25 [DEBUG] Resizing cache array - new length: 57
2007-09-11 00:35:25 [INFO] Number of entries in the cache: 58
2007-09-11 00:35:25 [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2007-09-11 00:35:25 [DEBUG] XMP_ScrobInit() finished
2007-09-11 00:42:12 ----
2007-09-11 00:42:12 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:42:12 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2007-09-11 00:42:12 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2007-09-11 00:43:23 [DEBUG] DSP_Free()
2007-09-11 00:43:23 [INFO] Shutting down...
2007-09-11 00:43:23 ----

And then at this point I renamed the cache file and let the plugin create a brand new one.
Code: [Select]
2007-09-11 00:43:53 ----
2007-09-11 00:43:53 [INFO] Hello, this is xmp-scrobbler 0.8
2007-09-11 00:43:53 [DEBUG] GetVersion() = 170393861 (5.1, build 2600)
2007-09-11 00:43:53 [DEBUG] curl_version() = libcurl/7.16.2 OpenSSL/0.9.8a zlib/1.2.3
2007-09-11 00:43:56 [DEBUG] DSP_NewTrack (OPEN)
2007-09-11 00:43:56 [DEBUG] XMP_ScrobInit() started
2007-09-11 00:43:56 [DEBUG] CacheManager::Load()
2007-09-11 00:43:56 [DEBUG] Scrobbler::init() - cache loaded, doing handshake...
2007-09-11 00:43:56 [DEBUG] XMP_ScrobInit() finished
2007-09-11 00:43:58 [DEBUG] Handshaking: Client up to date.
2007-09-11 00:43:58 [DEBUG] http://87.117.229.205:80/protocol_1.1
2007-09-11 00:43:58 [DEBUG] Submit interval set to 1 second(s).
2007-09-11 00:43:58 [DEBUG] Handshake successful.
2007-09-11 00:43:58 [INFO] Handshake with Last.fm server successful!
2007-09-11 00:43:59 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2007-09-11 00:44:07 [DEBUG] XMP_FetchInfo -- start
2007-09-11 00:44:07 [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-09-11 00:44:07 [DEBUG] XMP_FetchInfo -- end
2007-09-11 00:44:07 [DEBUG] len = 109, diff = 8
2007-09-11 00:44:07 [INFO] Current track: Nirvana - Come As You Are (Nevermind)
2007-09-11 00:44:07 [INFO] Submitting in 101 seconds...
2007-09-11 00:45:47 [DEBUG] DSP_Process -- sec <= 0
2007-09-11 00:45:47 [DEBUG] XMP_SubmitProc start
2007-09-11 00:45:47 [DEBUG] AddTrack (cache_size = 0, tracks_size = 10)
2007-09-11 00:45:47 [INFO] Track added to the cache for submission
2007-09-11 00:45:47 [INFO] Preparing to submit 1 track(s) from the cache
2007-09-11 00:45:47 [DEBUG] Submitting...
2007-09-11 00:45:47 [DEBUG] Submission succeeded.
2007-09-11 00:45:47 [INFO] Submission succeeded!

yagood

  • Posts: 215
Could you attach the problematic cache file?

VariousThings

  • Posts: 3
OK, here it is, with .cache renamed to .gif so the forum will let me attach it.

yagood

  • Posts: 215
Thanks, there's a bug somewhere indeed. Bad news is that you probably won't be able to submit this cache file  :'( Sorry.

Do you have a log file from the time you were listening to these songs from the cache? It would help to find the bug. Thanks.

VariousThings

  • Posts: 3
Do you have a log file from the time you were listening to these songs from the cache? It would help to find the bug. Thanks.
Unfortunately not, I had the log file limited to 64KB so that section isn't there any more. And in my other post I only included the section of the log file around the time the freezes started because I didn't think anything earlier would be helpful. :(

But if it happens again, I'll let you know and try to include a more complete log file!

(Thanks for the quick responses, by the way!)

yagood

  • Posts: 215
Do you have a log file from the time you were listening to these songs from the cache? It would help to find the bug. Thanks.
Unfortunately not, I had the log file limited to 64KB so that section isn't there any more. And in my other post I only included the section of the log file around the time the freezes started because I didn't think anything earlier would be helpful. :(

It's OK, because your cache file explains quite a lot. If you look closely at it you'll see that at the end there's a malformed cache entry which is most likely causing the problem. So the question is, how did it get there? :-) I'll investigate this bug when I have some free time...

Craw

  • Guest
Of course they have. Even the xmpscrobbler identifies them as correct.

Could you please post a few lines from your log file when this problematic track is being submitted?
Hi, it's me again. It seems, that it is not xmplayscobbler's fault at all. I thought that last.fm servers take data from musicbrainz server, but they probably don't do so. They just check musicbrainz id whether it matches those stored on their server - if not, they submit title etc from the tags.
Of course its only a theory, but...  ::)

Zarggg

  • Posts: 1242
Last night and today, I started getting crashes when trying to submit tracks. Here that the appropriate crash files and xm-scrobbler log:

http://pastebin.ca/702776
http://pastebin.ca/702779
http://pastebin.ca/702792

yagood

  • Posts: 215
Thanks for report, I think I've just got hit by this bug too.

aka

  • Guest
Any progress on that bug? XMplay crashes for me too when scrobbling tracks; I think since the latest update from last.fm...

yagood

  • Posts: 215
Any progress on that bug? XMplay crashes for me too when scrobbling tracks; I think since the latest update from last.fm...

Sorry, I know the development is painfully slow lately... I'll try to release new version once I get some reasonable amount of free time...

amit

  • Posts: 723
Has anybody else also had problems with posting tracks' info to last.fm site in the last couple of weeks?
If I clear the cache the first file is posted fine but next tracks don't post again.

Here is a part of the log:
Quote
...
2007-11-06 19:40:11   [INFO] Current track: Coltrane, John - Good Bait (Soultrane (DCC Gold))
2007-11-06 19:40:11   [INFO] Submitting in 233 seconds...
2007-11-06 19:44:03   [INFO] Track added to the cache for submission
2007-11-06 19:44:03   [INFO] Preparing to submit 10 track(s) from the cache
2007-11-06 19:52:17   [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-11-06 19:52:17   [INFO] Current track: Coltrane, John - I Want To Talk About You (Soultrane (DCC Gold))
2007-11-06 19:52:17   [INFO] Submitting in 233 seconds...
...

It's goes on with the same behavior for all tracks.

raina

  • Posts: 1163
There's definitely something up with Last.fm currently, so I'd wait a bit to let things normalize. By something I mean scrobbled tracks have disappeared. Personally, about a hundred of my latest scrobbled tracks have gone missing but I've heard people losing thousands.

Zarggg

  • Posts: 1242
Just wanted to post real quick and state that the issue I was having is resolved. The plugin must have been corrupted somehow, as deleting and reinstalling it fixed the problem. ::)

raina

  • Posts: 1163
Gotta try that here as well. We had a party last night and suddenly XMPlay started crashing on basically every song. Removing all plugins made it stop. The only plugins in use at the time would have been xmp-cd and xmp-scrobbler and I remembered somebody had been having similar problems..

F0x

  • Posts: 2
i'm sorry for an idiotic question but how me to install this plugin? i've put xmp-scrobbler.dll in a folder with xmplay, but nothing works!

Dotpitch

  • Posts: 2871
i'm sorry for an idiotic question but how me to install this plugin? i've put xmp-scrobbler.dll in a folder with xmplay, but nothing works!
Xmp-scrobbler is a DSP plugin so go to the options and add it there, then click Config, enter your username and password and tick Enable plugin checkbox. And that's all!
Options and Stuff > DSP > Plugins > xmp-scrobbler > Add > Config

F0x

  • Posts: 2
thx! works good now

jord

  • Posts: 4
oh. which port does scrobbler use to connect to last.fm? and what is cache: i see kinda strange behavior at last.fm. does the plugin really accumulates songs that were played without internet and then sends them all to last.fm? and where can i look at this cache?

Dotpitch

  • Posts: 2871
does the plugin really accumulates songs that were played without internet and then sends them all to last.fm?
Yes, it does, so you won't lose any playback statistics because your internet was down. The cache is located in xmp-scrobbler.cache, it's not intended that you change anything there.

thesagga

  • Guest
thanks for the plugin! but it doesn't works to me, i put my username - password and enable it

here's my test log

2007-12-12 15:13:51   [INFO] Handshake with Last.fm server successful!
2007-12-12 15:13:59   [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-12-12 15:13:59   [INFO] Current track: Brandi Carlile - Creep (Live Performance)
2007-12-12 15:13:59   [INFO] Submitting in 117 seconds...
2007-12-12 15:15:55   [INFO] Track added to the cache for submission
2007-12-12 15:15:55   [INFO] Preparing to submit 1 track(s) from the cache
2007-12-12 15:18:20   [DEBUG] DSP_NewTrack (CLOSE)
2007-12-12 15:18:20   [DEBUG] DSP_NewTrack (OPEN)
2007-12-12 15:18:20   [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2007-12-12 15:18:29   [DEBUG] XMP_FetchInfo -- start
2007-12-12 15:18:29   [WARNING] No valid MusicBrainz ID found, consider using MusicBrainz taggers to tag this file properly!
2007-12-12 15:18:29   [DEBUG] XMP_FetchInfo -- end
2007-12-12 15:18:29   [DEBUG] len = 93, diff = 8
2007-12-12 15:18:29   [INFO] Current track: Saiko - Debilidad (Las Horas)
2007-12-12 15:18:29   [INFO] Submitting in 85 seconds...
2007-12-12 15:19:53   [DEBUG] DSP_Process -- sec <= 0
2007-12-12 15:19:53   [DEBUG] XMP_SubmitProc start
2007-12-12 15:19:53   [DEBUG] AddTrack (cache_size = 1, tracks_size = 10)
2007-12-12 15:19:53   [INFO] Track added to the cache for submission
2007-12-12 15:19:53   [INFO] Preparing to submit 2 track(s) from the cache
2007-12-12 15:19:53   [DEBUG] Submitting...
2007-12-12 15:19:53   [DEBUG] Submission failed: bad authorization.


jord

  • Posts: 4
i noticed that xmplay with scrobbler turned on becames very sensible to internet connection. last few days i have some problems with ISP, there are disconnections, slow connection and other troubles. and well during this few days xmplay crashes like crazy every 15 second until scrobbler is turned off. after turning off it works perfectly. any thoughts about it? is it a predictable behavior?

Dotpitch

  • Posts: 2871
2007-12-12 15:19:53   [DEBUG] Submitting...
2007-12-12 15:19:53   [DEBUG] Submission failed: bad authorization.
It tells you clearly that your login was rejected by Last.fm.

i noticed that xmplay with scrobbler turned on becames very sensible to internet connection.
Never noticed it, and xmp-scrobbler certainly shouldn't crash XMPlay on a bad connection. Do you have the latest version?

jord

  • Posts: 4
i noticed that xmplay with scrobbler turned on becames very sensible to internet connection.
Never noticed it, and xmp-scrobbler certainly shouldn't crash XMPlay on a bad connection. Do you have the latest version?
yes, both xmplay and scrobbler have the latest version.