librespot: Crash upon connect

I have just compiled librespot on my raspberry pi 3 (raspbian stretch), and librespot crashed after some of my connect attempts. The first 2 attempts succeeded and I was able to play music, however then when starting librespot and connecting on my iPhone librespot crashed:

pi@pi3HA ~/librespot/target/release $ ./librespot -b 320 -n PiTify --initial-volume 50
INFO:librespot: librespot d2cadec (2018-11-19). Built on 2019-02-20. Build ID: 10aRpwDZ
WARN:mdns::fsm: error sending packet Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `[103, 240, 106, 189, 52, 76, 106, 22, 74, 173, 54, 38, 0, 179, 204, 242, 181, 163, 112, 231]`,
 right: `[48, 194, 35, 67, 138, 4, 128, 136, 73, 67, 19, 105, 247, 6, 138, 164, 69, 223, 98, 161]`', connect/src/discovery.rs:135:9
stack backtrace:
   0:   0x88bb07 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h508e385542e74f0f
                       at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1:   0x886177 - std::sys_common::backtrace::_print::h0654a4145b8e108e
                       at src/libstd/sys_common/backtrace.rs:71
   2:   0x88a41b - std::panicking::default_hook::{{closure}}::h9d3b4aa9777cceab
                       at src/libstd/sys_common/backtrace.rs:59
                       at src/libstd/panicking.rs:211
   3:   0x88a08f - std::panicking::default_hook::h54bc90cfc6073aee
                       at src/libstd/panicking.rs:227
   4:   0x88ab8b - std::panicking::rust_panic_with_hook::h28b9ce6fa7a5033b
                       at src/libstd/panicking.rs:491
   5:   0x88a70b - std::panicking::continue_panic_fmt::h4c221b9431554bc2
                       at src/libstd/panicking.rs:398
   6:   0x88a65b - std::panicking::begin_panic_fmt::hf946e5e7aa3496df
                       at src/libstd/panicking.rs:353
   7:   0x49ae37 - librespot_connect::discovery::Discovery::handle_add_user::he48a8e42a114f751
   8:   0x4af28f - <futures::future::chain::Chain<A, B, C>>::poll::hf331e7955b32fd55
   9:   0x49c6f3 - <futures::future::and_then::AndThen<A, B, F> as futures::future::Future>::poll::hd9fb84c09a20922b
  10:   0x4c13f7 - <hyper::proto::h1::dispatch::Dispatcher<D, Bs, I, B, T>>::poll_until_shutdown::heaac2c7c0bfe566d
  11:   0x4adf03 - <futures::future::chain::Chain<A, B, C>>::poll::h281837b93b57cf3d
  12:   0x7c822f - <futures::task_impl::Spawn<T>>::poll_future_notify::h931efe2e830da2ac
  13:   0x7c1dff - <std::thread::local::LocalKey<T>>::with::hc3a8029fee014330
  14:   0x7bfb1f - <tokio::executor::current_thread::scheduler::Scheduler<U>>::tick::h27dd7c014f4b2fb6
  15:   0x7c0007 - <scoped_tls::ScopedKey<T>>::set::h1efe6dac9ad57e4c
  16:   0x7c17b3 - <std::thread::local::LocalKey<T>>::with::h6273915814956e31
  17:   0x7c1cef - <std::thread::local::LocalKey<T>>::with::h922debe52c28333b
  18:   0x7c13db - <std::thread::local::LocalKey<T>>::with::h3769576f7dc53a87
  19:   0x7bc013 - tokio_core::reactor::Core::poll::hab524b91b82b371f
  20:   0x4690e7 - tokio_core::reactor::Core::run::h2f50c46053f520bd
  21:   0x47741f - librespot::main::he80615b7b40fb7e1
  22:   0x46e26b - std::rt::lang_start::{{closure}}::h7d8586f9b4276de3
  23:   0x88a56f - std::panicking::try::do_call::hf93a787b72e1d226
                       at src/libstd/rt.rs:59
                       at src/libstd/panicking.rs:310
  24:   0x8972cf - __rust_maybe_catch_panic
                       at src/libpanic_unwind/lib.rs:102
  25:   0x88aeff - std::rt::lang_start_internal::h7b3bd8c78881c37d
                       at src/libstd/panicking.rs:289
                       at src/libstd/panic.rs:398
                       at src/libstd/rt.rs:58
  26:   0x4780a3 - main
  27: 0x76d71677 - __libc_start_main

Also, even when playback succeeded, I saw a lot of those warnings:

WARN:mdns::fsm: error sending packet Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }
WARN:mdns::fsm: error sending packet Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Okay, made some more tries, here it is:

INFO:librespot: librespot 6a60059 (2019-03-13). Built on 2019-03-13. Build ID: Qg84Srb4
WARN:librespot_connect::discovery: Login error for user "patrickjane": MAC mismatch
WARN:librespot_connect::discovery: Login error for user "patrickjane": MAC mismatch

👍

I haven’t specified credentials. I started the app on my TV (LG55C8 with webOS 3.5) and just attached my phone. No credentials necessary.

I haven’t yet tried with manual credentials in librespot, going to try later.