Lastfm scrobbler plugin crashes Volumio

Hi guys (and Saiyato ;p)

I think there’s a problem with the Last.fm scrobbler plugin (the version bundled into Volumio). Everytime I try to play something, Volumio crashes. I tried on a fresh install with the same result. The version from the Github repository works fine.

logs.volumio.org/volumio/W3bjZYN.html

Happy new year all.

-j

Hi buddy,

I created a new PR for this problem.
It’s caused by a wrong version of the simple-lastfm module, I forked it, patched it and uploaded a new package.json with the correct dependency.

Cheers

Great news, thank you again for your efforts Saiyato.

Greatly appreciated.

-j

Hi, I’m sorry to bump up this very old topic, but I think I have a similar problem with the simple-lastfm module and maybe @Saiyato can help me.
While listening to music, Volumio suddenly stops working and restarts. It happened to me several times already.
Today I tried to investigate and from the logs I saw that the problem depends on the LastFM plugin and specifically on the simple-lastfm module.
Here’s the log, from which for your convenience I have extracted the useful part that reports the error:

Jan 06 12:32:43 volumio volumio[747]: |||||||||||||||||||||||| WARNING: FATAL ERROR |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Jan 06 12:32:43 volumio volumio[747]: TypeError: Cannot read property '@' of undefined
Jan 06 12:32:43 volumio volumio[747]:     at Object.callback (/data/plugins/user_interface/lastfm/node_modules/simple-lastfm/lib/index.js:342:14)
Jan 06 12:32:43 volumio volumio[747]:     at /data/plugins/user_interface/lastfm/node_modules/simple-lastfm/lib/index.js:60:13
Jan 06 12:32:43 volumio volumio[747]:     at Parser.<anonymous> (/data/plugins/user_interface/lastfm/node_modules/xml2js/lib/parser.js:308:18)
Jan 06 12:32:43 volumio volumio[747]:     at Parser.emit (events.js:315:20)
Jan 06 12:32:43 volumio volumio[747]:     at SAXParser.onerror (/data/plugins/user_interface/lastfm/node_modules/xml2js/lib/parser.js:123:26)
Jan 06 12:32:43 volumio volumio[747]:     at emit (/data/plugins/user_interface/lastfm/node_modules/sax/lib/sax.js:624:35)
Jan 06 12:32:43 volumio volumio[747]:     at error (/data/plugins/user_interface/lastfm/node_modules/sax/lib/sax.js:653:5)
Jan 06 12:32:43 volumio volumio[747]:     at strictFail (/data/plugins/user_interface/lastfm/node_modules/sax/lib/sax.js:677:7)
Jan 06 12:32:43 volumio volumio[747]:     at closeTag (/data/plugins/user_interface/lastfm/node_modules/sax/lib/sax.js:871:9)
Jan 06 12:32:43 volumio volumio[747]:     at SAXParser.write (/data/plugins/user_interface/lastfm/node_modules/sax/lib/sax.js:1436:13)
Jan 06 12:32:43 volumio volumio[747]: |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

My configuration:
Raspberry Pi 3B+
Volumio 3.569.

Thanks in advance!