[GH-ISSUE #462] Crash when playing songs from the "recommended songs" section in a playlist #292

Closed
opened 2026-02-27 19:29:51 +03:00 by kerem · 2 comments
Owner

Originally created by @dangerfish96 on GitHub (Apr 14, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/462

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

Originally created by @dangerfish96 on GitHub (Apr 14, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/462 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
kerem 2026-02-27 19:29:51 +03:00
Author
Owner

@ghost commented on GitHub (Apr 26, 2021):

This is the same as #697

<!-- gh-comment-id:827073287 --> @ghost commented on GitHub (Apr 26, 2021): This is the same as #697
Author
Owner

@Johannesd3 commented on GitHub (Apr 29, 2021):

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

<!-- gh-comment-id:829656404 --> @Johannesd3 commented on GitHub (Apr 29, 2021): Let's close it in favor of #697, where it has already been discussed a little.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#292
No description provided.