ALSAAudioError: File descriptor in bad state #88

johannilsson opened this Issue Mar 1, 2013 · 2 comments


None yet
3 participants

Hi, I getting the following on a RaspberryPI with version 1.10 using the sample app when it switching track. The next command works but not when it automatically switches.

jukebox> play 0
Loading playlist theshopbox
Loading Sad-Eyed Lady Of The Lowlands from theshopbox
jukebox> next
Loading Bleecker Street from theshopbox
jukebox> next
Loading Son Of A Preacher Man from theshopbox
jukebox> Traceback (most recent call last):
  File "", line 461, in <module>
  File "/usr/local/lib/python2.7/dist-packages/spotify/manager/", line 81, in connect
    self.loop(self.session) # returns on logged out
  File "/usr/local/lib/python2.7/dist-packages/spotify/manager/", line 97, in loop
    session, *message['args'])
  File "", line 397, in music_delivery_safe
    return*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/spotify/audiosink/", line 23, in music_delivery
    self._call_if_needed(self._device.setperiodsize, num_frames)
  File "/usr/local/lib/python2.7/dist-packages/spotify/audiosink/", line 127, in _call_if_needed
    func(*args, **kwargs)
alsaaudio.ALSAAudioError: File descriptor in bad state

trizz commented Apr 19, 2013

Same here! When I play a track and it is finished while there's no other track, it crashes.


jodal commented Jan 15, 2015

Due to the imminent release of the 2.0 rewrite of pyspotify, this will probably never be done. Closing.

@jodal jodal closed this Jan 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment