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

Crash when playing songs from the "recommended songs" section in a playlist #462

Closed
dangerfish96 opened this issue Apr 14, 2020 · 2 comments
Labels
SpotifyAPI Interop b/w librespot and Spotify

Comments

@dangerfish96
Copy link

dangerfish96 commented Apr 14, 2020

Hi,
first of all, thank you very much for this very cool project.

I use the most recent version (That should be 0.1.1) on Ubuntu.
Here is the relevant output:

Apr 14 10:51:41 librespot[18865]: [2020-04-14T08:51:41Z INFO  librespot_connect::spirc] Fetching autoplay context uri
Apr 14 10:51:41 librespot[18865]: thread 'main' panicked at 'Spotify servers returned an error. Restart librespot.', core/src/mercury/mod.rs:201:13
Apr 14 10:51:41 librespot[18865]: stack backtrace:
Apr 14 10:51:41 librespot[18865]:    0:     0x564ab2952214 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he360932
Apr 14 10:51:41 librespot[18865]:    1:     0x564ab296a3ad - core::fmt::write::h283f972904f4db60
Apr 14 10:51:41 librespot[18865]:    2:     0x564ab29500d5 - std::io::Write::write_fmt::hf807222273a22c84
Apr 14 10:51:41 librespot[18865]:    3:     0x564ab293b0c5 - std::panicking::default_hook::{{closure}}::h5a76212ce78916b1
Apr 14 10:51:41 librespot[18865]:    4:     0x564ab293ae00 - std::panicking::default_hook::h07bbc5f510c49530
Apr 14 10:51:41 librespot[18865]:    5:     0x564ab293b7c5 - std::panicking::rust_panic_with_hook::hc9d41ac493f6560f
Apr 14 10:51:41 librespot[18865]:    6:     0x564ab2688445 - std::panicking::begin_panic::ha9193088bab7fa2f
Apr 14 10:51:41 librespot[18865]:    7:     0x564ab2641a70 - librespot_core::mercury::MercuryManager::dispatch::hb9e1abb16c6afa19
Apr 14 10:51:41 librespot[18865]:    8:     0x564ab2638b14 - librespot_core::session::Session::dispatch::h691269aca5bdba10
Apr 14 10:51:41 librespot[18865]:    9:     0x564ab2639841 - <librespot_core::session::DispatchTask<S> as futures::future::Future>::poll::h0dc4372a7e2d3
Apr 14 10:51:41 librespot[18865]:   10:     0x564ab2660c9f - <futures::future::join::Join<A,B> as futures::future::Future>::poll::he0792e4a59afddbc
Apr 14 10:51:41 librespot[18865]:   11:     0x564ab266f895 - <futures::future::map::Map<A,F> as futures::future::Future>::poll::hf644994a63a48baa
Apr 14 10:51:41 librespot[18865]:   12:     0x564ab268f57c - <futures::future::map_err::MapErr<A,F> as futures::future::Future>::poll::ha6133a55036c3c78
Apr 14 10:51:41 librespot[18865]:   13:     0x564ab28f1b52 - futures::task_impl::std::set::hd7bad40908a1c6d4
Apr 14 10:51:41 librespot[18865]:   14:     0x564ab28e97fb - tokio_current_thread::CurrentRunner::set_spawn::hc38db7b5207542f9
Apr 14 10:51:41 librespot[18865]:   15:     0x564ab28f9c09 - tokio_current_thread::scheduler::Scheduler<U>::tick::h4b55ca69f67f3183
Apr 14 10:51:41 librespot[18865]:   16:     0x564ab28e9519 - scoped_tls::ScopedKey<T>::set::h57e5ead9cc360538
Apr 14 10:51:41 librespot[18865]:   17:     0x564ab28f6783 - std::thread::local::LocalKey<T>::with::hcf575fb23ea6357f
Apr 14 10:51:41 librespot[18865]:   18:     0x564ab28f62bf - std::thread::local::LocalKey<T>::with::h1a8f1d9dd16ab6f8
Apr 14 10:51:41 librespot[18865]:   19:     0x564ab28f6422 - std::thread::local::LocalKey<T>::with::h323d1d59de132062
Apr 14 10:51:41 librespot[18865]:   20:     0x564ab28f4d25 - tokio_core::reactor::Core::poll::hb0cf973b654b41ad
Apr 14 10:51:41 librespot[18865]:   21:     0x564ab2512f51 - tokio_core::reactor::Core::run::h0d3fb89080e99235
Apr 14 10:51:41 librespot[18865]:   22:     0x564ab2510fd1 - librespot::main::h8611462236afd7f8
Apr 14 10:51:41 librespot[18865]:   23:     0x564ab24f2633 - std::rt::lang_start::{{closure}}::h647c6e2a09d50bbd
Apr 14 10:51:41 librespot[18865]:   24:     0x564ab293b1f3 - std::panicking::try::do_call::h4ee99d08fdff306a
Apr 14 10:51:41 librespot[18865]:   25:     0x564ab2954d9a - __rust_maybe_catch_panic
Apr 14 10:51:41 librespot[18865]:   26:     0x564ab293e189 - std::rt::lang_start_internal::h111e8a1efe586048
Apr 14 10:51:41 librespot[18865]:   27:     0x564ab25121d2 - main
Apr 14 10:51:41 librespot[18865]:   28:     0x7f18c77601e3 - __libc_start_main
Apr 14 10:51:41 librespot[18865]:   29:     0x564ab24ec1ce - _start
Apr 14 10:51:41 librespot[18865]:   30:                0x0 - <unknown>
Apr 14 10:51:49 systemd[1]: Stopping Spotify Connect server...

Systemd:

# /etc/systemd/system/spotConnect.service
[Unit]
Description=Spotify Connect server
After=network.target


[Service]
User=spotify
Group=spotify
Restart=always
RestartSec=10
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -m 0755 -p /var/cache/spotify ; /bin/chown spotify:spotify /var/cache/spotify
ExecStart=/usr/bin/librespot -n "test" -b 320 --enable-volume-normalisation --initial-volume 100 -u test -p test --zeroconf-port 31000  --disable-audio-cache --backend pulseaudio --autoplay

[Install]
WantedBy=multi-user.target

Thank you

@ashthespy ashthespy added the SpotifyAPI Interop b/w librespot and Spotify label May 9, 2020
@ghost
Copy link

ghost commented Apr 26, 2021

This is the same as #697

@Johannesd3
Copy link
Contributor

Let's close it in favor of #697, where it has already been discussed a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SpotifyAPI Interop b/w librespot and Spotify
Projects
None yet
Development

No branches or pull requests

3 participants