mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1492] Connection to server closed #675
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#675
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhjb7 on GitHub (Apr 23, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1492
Description
After a few hours of continuous playback, spotify will disconnect from librespot and playback will stop.
Version
librespot 0.6.0 release
How to reproduce
Steps to reproduce the behavior in librespot e.g.
Compile and running in ubuntu 22.04.
Compile:cargo build --release
Running: ./target/release/librespot -v -n myubuntu
Log
Host (what you are running
librespoton):Additional context
@kingosticks commented on GitHub (Apr 23, 2025):
What is "a few hours"? Is it two?
@zhjb7 commented on GitHub (Apr 23, 2025):
Thanks for your reply. Tested it a couple times, once for 3 hours with this problem, once for 5 hours with this problem. Since no one else has had this problem, I'm not sure if it's caused by a problem with my network. I will continue testing using a different network. I hope I won’t waste your time.
@Lustyn commented on GitHub (Apr 26, 2025):
I ran into this as well, I'm guessing its related to this TODO:
github.com/librespot-org/librespot@59381ccad3/core/src/session.rs (L785)@zhjb7 commented on GitHub (Apr 30, 2025):
Tested many times and often after a couple hours of playback, the spotify app is stopped, but the device is not disconnected. For example, this one was playing at 10:00 and stopped playing at 12:33. Not sure if it's my network that's causing this.