Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord: "Error opening PCM device. -- CODE: -16 -- MSG: Device or resource busy" when skipping #86

Open
Rawrior opened this issue Feb 22, 2022 · 2 comments
Labels
bug Something isn't working high priority Bugs or features that are critical to fix

Comments

@Rawrior
Copy link
Collaborator

Rawrior commented Feb 22, 2022

Steps to reproduce:

  1. Start playing
  2. Try skipping songs
  3. Get very lucky and get the error message.

I can't get it to trigger consistently, and it seems to be very rare.

Full stacktrace from daemon
Exception ignored in thread started by: <bound method Playlist.__autonext of <playlist.Playlist object at 0x7f18ac9253c0>>
Traceback (most recent call last):
  File "/home/simon/Documents/personal-projects/sonica/daemon/playlist.py", line 37, in __autonext
    self.play()
  File "/home/simon/Documents/personal-projects/sonica/daemon/playlist.py", line 66, in play
    self.playback = play_buffer(
  File "/home/simon/Documents/personal-projects/sonica/venv/lib/python3.10/site-packages/simpleaudio/shiny.py", line 60, in play_buffer
    play_id = _sa._play_buffer(audio_data, num_channels, bytes_per_sample,
_simpleaudio.SimpleaudioError: Error opening PCM device. -- CODE: -16 -- MSG: Device or resource busy
@Rawrior
Copy link
Collaborator Author

Rawrior commented Feb 22, 2022

There seems to be a much better chance to trigger it with the following steps:

  1. Make a search for a very short song (I had a video that was 7 seconds for testing something)
  2. Choose the short song (from library)
  3. Skip

@Rawrior
Copy link
Collaborator Author

Rawrior commented Feb 23, 2022

It also seems to happen semi-regularly during normal playback.

@Rawrior Rawrior added bug Something isn't working high priority Bugs or features that are critical to fix labels Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority Bugs or features that are critical to fix
Projects
None yet
Development

No branches or pull requests

1 participant