mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1083] Crash on first connection attempt #505
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#505
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 @jpxd on GitHub (Dec 11, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1083
Describe the bug
After installing raspotify (https://dtcooper.github.io/raspotify/), which uses librespot internally, on my Raspberry Pi 3B+, I switched my already running music from my Macbook to the Raspberry Pi. Raspotify instantly crashed (see log). I tried to replicate with verbose logging but then it worked. Now it even works without verbose logging and I can't reproduce it any more. So this could be a one off error which hopefully never happens again for me. Neverless I'll leave the stack trace here for you, in case it helps finding the bug.
To reproduce
Steps to reproduce the behavior:
librespotvia raspotify for the first timeLog
Host (what you are running
librespoton):@JasonLG1979 commented on GitHub (Dec 12, 2022):
I believe this is already fixed in dev.
That bit of discovery has been rewritten from stable to dev to check for that particular situation:
https://github.com/librespot-org/librespot/blob/dev/discovery/src/server.rs#L134-L136
Raspotify is based on stable. As soon as what is now dev is released as a stable version the fix will come along with it to Raspotify.
@roderickvd commented on GitHub (Dec 12, 2022):
Indeed! As to why that circumstance happens occasionally, I do not know.
@jpxd commented on GitHub (Dec 12, 2022):
Perfect! Thanks for the quick answer!