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

Panic during connection #1166

Open
2 of 6 tasks
Duskhorn opened this issue Feb 15, 2023 · 1 comment
Open
2 of 6 tasks

Panic during connection #1166

Duskhorn opened this issue Feb 15, 2023 · 1 comment
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@Duskhorn
Copy link

Duskhorn commented Feb 15, 2023

Description
Spotifyd panics when I try connecting from spotify-tui: ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave

To Reproduce

  1. start spotifyd --no-daemon --config-path "/home/dusk/.config/spotifyd/spotifyd.conf" --verbose 2>&1 >/dev/null &
  2. Open spotify-tui and connect device (d key)
  3. The device is visible. But once pressed it crashes
  4. see logs

Expected behavior
It doesn't panic

Logs

Click to show logs
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: /host/cargo/registry/src/github.com-1ecc6299db9ec823/librespot-playback-0.2.0/src/audio_backend/alsa.rs:160

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: start_thread<unknown>
      at ./nptl/./nptl/pthread_create.c:442
   2: clone3<unknown>
      at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
The application panicked (crashed).
Message:  called `Option::unwrap()` on a `None` value
Location: src/main_loop.rs:194

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: main<unknown>
      at <unknown source file>:<unknown line>
   2: __libc_start_call_main<unknown>
      at ./csu/../sysdeps/nptl/libc_start_call_main.h:58
   3: __libc_start_main_impl<unknown>
      at ./csu/../csu/libc-start.c:381
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

Versions (please complete the following information):

  • OS: Void Linux
  • Spotifyd: 0.3.4
  • Installed from Void repos

Additionai information

spotifyd.conf file
[global]
username = "<omitted>"
password = "<omitted>"

dbus_type = "session"
bitrate = 320

use_mpris = true
# cache_path = "/usr/dusk/.cache/spotifyd"

initial_volume = "100"
volume_normalisation = false
normalisation_pregain = -10

autoplay = false
device_type = "computer"
device_name = "SPOTIFYD"
@Duskhorn Duskhorn added the bug A functionality or parts of a program that do not work as intended label Feb 15, 2023
@eladyn
Copy link
Member

eladyn commented Feb 15, 2023

Thank you for the report. This panic certainly shouldn't happen, but I assume that it won't be properly fixable until we get around to upgrading to the newest librespot version.

Anyway, regarding your specific problem, something funky is going wrong with your ALSA setup. You could try specifying values like device (see aplay -L to see possible values). Another option would be to try another audio server like pulseaudio?

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A functionality or parts of a program that do not work as intended
Projects
None yet
Development

No branches or pull requests

2 participants