Fornoth / spotify-connect-web

MIT License
436 stars 66 forks source link

Crashing when trying to play local song #126

Open ClemaX opened 7 years ago

ClemaX commented 7 years ago

Trying to play a local file crashes the latest version on my raspberry pi. I know that local files can't be played over Spotify Connect but when I accidentally select one it crashes and I need to restart spotify-connect-web manually.

Here is what I can see being logged:

playback_seek: 0
kSpPlaybackNotifyTrackChanged
kSpPlaybackNotifyBecameActive
Segmentation fault (core dumped)

EDIT: Here is what i can see in debug mode (-d):

SpircLoad spotify:user:5clemax5:playlist:2Y1hZRYCc5z3NxtiOPeWXM 0
ESDK: callback context (nil), event 5, source: (nil), param (nil)
ESDK: callback context (nil), event 5, source: (nil), param (nil)
ESDK: callback context (nil), event 16, source: (nil), param 0x7e84b177
ESDK: Notifying kSpPlaybackNotifyBecameActive
kSpPlaybackNotifyBecameActive
ESDK: callback context (nil), event 32, source: 0x758df548, param 0x758d3fe2
ESDK: Notifying SpCallbackPlaybackUnavailableTrack, track = spotify:track:7y1GB13kJnitvpFbJct3hn
Segmentation fault (core dumped)
joeltimothyoh commented 6 years ago

I think this might be connected to the fact that SCW crashes that happen when attempting to play an unavailable track on Spotify. Seems like the only workaround is to play only tracks that are playable on Spotify.

Fornoth commented 6 years ago

This really isn't something I can fix unfortunately, since I don't control the actual playback. Although I'll look into it to see what SpCallbackPlaybackUnavailableTrack is.