Spotifyd / spotifyd

A spotify daemon
https://spotifyd.rs
GNU General Public License v3.0
9.71k stars 444 forks source link

Panic when trying to run spotifyd 0.3.2 #1027

Closed LukeMarlin closed 1 year ago

LukeMarlin commented 2 years ago

Description Cannot start spotifyd due to:

Caught panic with message: called Result::unwrap() on an Err value: DNSError(Unknown) shutdown; state=pool::State { lifecycle: Running, num_futures: 0 }

To Reproduce Steps to reproduce the behavior:

  1. Install Spotifyd from Arch User Repository
  2. Do a config file with only username and password
  3. Run spotifyd --no-daemon --verbose
  4. See error

Expected behavior Spotifyd starts

Logs

Click to show logs ``` spotifyd --no-daemon --verbose Loading config from "/home/x/.config/spotifyd/spotifyd.conf" CliConfig { config_path: None, no_daemon: true, verbose: true, pid: None, shared_config: SharedConfigValues { username: Some("taken out for privacy"), username_cmd: None, password: Some("taken out for privacy"), password_cmd: None, use_keyring: false, use_mpris: None, on_song_change_hook: None, cache_path: None, no-audio-cache: false, backend: None, volume_controller: None, device: Some("Spotify-tui-tour"), control: None, mixer: None, device_name: None, bitrate: None, initial_volume: None, volume_normalisation: false, normalisation_pregain: None, zeroconf_port: None, proxy: None, device_type: None } } Found user shell: Some("/bin/bash") No proxy specified registering with poller registering with poller registering with poller registering with poller build; num-workers=4 registering with poller Using software volume controller. starting background reactor adding I/O source: 0 registering with poller Zeroconf server listening on 0.0.0.0:34043 *** WARNING *** The program 'spotifyd' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see Caught panic with message: called `Result::unwrap()` on an `Err` value: DNSError(Unknown) shutdown; state=pool::State { lifecycle: Running, num_futures: 0 } -> transitioned to shutdown -> shutting down workers deregistering handle with poller ```

Compilation flags

Versions (please complete the following information):

eladyn commented 2 years ago

Hey!

Just as an idea, I found an issue in the librespot repository, which describes something very similar. I don't think that spotifyd enables with-dns-sd by default and thus this could be a completely different problem, but it might still help you.

You could also try if running bare librespot works. It might very well be a problem on their side.

LukeMarlin commented 2 years ago
$ librespot -n "Librespot Speaker" -b 160
[2021-12-19T22:58:24Z INFO  librespot] librespot 0.3.1 UNKNOWN (Built on 2021-12-19, Build ID: 6JaKKo5Y, Profile: release)

Librespot works out of the box (cargo install). It is also fine if I compile it myself.

eladyn commented 1 year ago

I assume that it should have been fixed with 0.3.3. If that isn't the case, feel free to reopen. :)