[GH-ISSUE #87] Crash on some songs #76

Closed
opened 2026-02-27 19:28:42 +03:00 by kerem · 10 comments
Owner

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/87

Issue by Glenn-1990
Tuesday Sep 05, 2017 at 18:53 GMT
Originally opened as https://github.com/plietar/librespot/issues/247


Librespot crashes on some songs, this is 100% reproducible (pi musicbox and libreelec).
The song causing the crash is not working with chromecast either, so probably spotify doesn't allow to play this song externally. It would be nice if we could just skip this song instead of the assertion :-).

Sep 04 21:12:24 LE-glenn sh[2943]: thread 'main' panicked at 'assertion failed: (left == right) (left: 0, right: 16)', util/spotify_id.rs:44
Sep 04 21:12:24 LE-glenn sh[2943]: note: Run with RUST_BACKTRACE=1 for a backtrace.
Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Main process exited, code=exited, status=101/n/a
Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Unit entered failed state.
Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Failed with result 'exit-code'.

Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/87 <a href="https://github.com/Glenn-1990"><img src="https://avatars2.githubusercontent.com/u/2036512?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [Glenn-1990](https://github.com/Glenn-1990)** _Tuesday Sep 05, 2017 at 18:53 GMT_ _Originally opened as https://github.com/plietar/librespot/issues/247_ ---- Librespot crashes on some songs, this is 100% reproducible (pi musicbox and libreelec). The song causing the crash is not working with chromecast either, so probably spotify doesn't allow to play this song externally. It would be nice if we could just skip this song instead of the assertion :-). > Sep 04 21:12:24 LE-glenn sh[2943]: thread 'main' panicked at 'assertion failed: `(left == right)` (left: `0`, right: `16`)', util/spotify_id.rs:44 > Sep 04 21:12:24 LE-glenn sh[2943]: note: Run with RUST_BACKTRACE=1 for a backtrace. > Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Main process exited, code=exited, status=101/n/a > Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Unit entered failed state. > Sep 04 21:12:24 LE-glenn systemd[1]: service.librespot.service: Failed with result 'exit-code'.
kerem 2026-02-27 19:28:42 +03:00
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by michaelherger
Wednesday Sep 06, 2017 at 03:57 GMT


It would probably be helpful if you could give some track IDs causing this.

<!-- gh-comment-id:361276766 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/michaelherger"><img src="https://avatars3.githubusercontent.com/u/2789989?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [michaelherger](https://github.com/michaelherger)** _Wednesday Sep 06, 2017 at 03:57 GMT_ ---- It would probably be helpful if you could give some track IDs causing this.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by Glenn-1990
Monday Sep 18, 2017 at 17:57 GMT


@michaelherger
How can I find these IDs as parsing fails?

<!-- gh-comment-id:361276799 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/Glenn-1990"><img src="https://avatars2.githubusercontent.com/u/2036512?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [Glenn-1990](https://github.com/Glenn-1990)** _Monday Sep 18, 2017 at 17:57 GMT_ ---- @michaelherger How can I find these IDs as parsing fails?
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by michaelherger
Tuesday Sep 19, 2017 at 05:35 GMT


In the Spotify applications there's a "..." menu item which allows you to copy the item's URI.

<!-- gh-comment-id:361276824 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/michaelherger"><img src="https://avatars3.githubusercontent.com/u/2789989?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [michaelherger](https://github.com/michaelherger)** _Tuesday Sep 19, 2017 at 05:35 GMT_ ---- In the Spotify applications there's a "..." menu item which allows you to copy the item's URI.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by Glenn-1990
Tuesday Sep 19, 2017 at 17:41 GMT


Something strange is going on here, spotify doesn't have URLs for the crashing songs.

"Delen" = "Share" and allows me to get the URL.

Normal song:
screenshot_20170919-192934

Crashing song:
screenshot_20170919-192945

<!-- gh-comment-id:361276845 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/Glenn-1990"><img src="https://avatars2.githubusercontent.com/u/2036512?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [Glenn-1990](https://github.com/Glenn-1990)** _Tuesday Sep 19, 2017 at 17:41 GMT_ ---- Something strange is going on here, spotify doesn't have URLs for the crashing songs. "Delen" = "Share" and allows me to get the URL. Normal song: ![screenshot_20170919-192934](https://user-images.githubusercontent.com/2036512/30606419-fa04cd7c-9d71-11e7-9e70-806cfd260d29.png) Crashing song: ![screenshot_20170919-192945](https://user-images.githubusercontent.com/2036512/30606381-da5f73dc-9d71-11e7-947a-bdd54ca8f9bd.png)
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by cortegedusage
Tuesday Sep 19, 2017 at 18:32 GMT


It looks like the song in the playlist is refering to a song on an album
that doesn't exists anymore on spotify

probably the spotify software searches for an alternative and librespot
doesn't.

that's my five cents anyway...

cheers

2017-09-19 19:41 GMT+02:00 Glenn-1990 notifications@github.com:

Something strange is going on here, spotify doesn't have URLs for the
crashing songs.

"Delen" = "Share" and allows me to get the URL.

Normal song:
[image: screenshot_20170919-192934]
https://user-images.githubusercontent.com/2036512/30606419-fa04cd7c-9d71-11e7-9e70-806cfd260d29.png

Crashing song:
[image: screenshot_20170919-192945]
https://user-images.githubusercontent.com/2036512/30606381-da5f73dc-9d71-11e7-947a-bdd54ca8f9bd.png


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/plietar/librespot/issues/247#issuecomment-330616389,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV69TZgYWAivU2k2Lw8xHNyyedUyRPLeks5sj_zHgaJpZM4PNXp-
.

<!-- gh-comment-id:361276870 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/cortegedusage"><img src="https://avatars2.githubusercontent.com/u/22986061?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [cortegedusage](https://github.com/cortegedusage)** _Tuesday Sep 19, 2017 at 18:32 GMT_ ---- It looks like the song in the playlist is refering to a song on an album that doesn't exists anymore on spotify probably the spotify software searches for an alternative and librespot doesn't. that's my five cents anyway... cheers 2017-09-19 19:41 GMT+02:00 Glenn-1990 <notifications@github.com>: > Something strange is going on here, spotify doesn't have URLs for the > crashing songs. > > "Delen" = "Share" and allows me to get the URL. > > Normal song: > [image: screenshot_20170919-192934] > <https://user-images.githubusercontent.com/2036512/30606419-fa04cd7c-9d71-11e7-9e70-806cfd260d29.png> > > Crashing song: > [image: screenshot_20170919-192945] > <https://user-images.githubusercontent.com/2036512/30606381-da5f73dc-9d71-11e7-947a-bdd54ca8f9bd.png> > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/plietar/librespot/issues/247#issuecomment-330616389>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AV69TZgYWAivU2k2Lw8xHNyyedUyRPLeks5sj_zHgaJpZM4PNXp-> > . >
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by archi
Friday Dec 22, 2017 at 16:11 GMT


I hit the same, seems a lot like what you suggested.
Since librespot is not maintained anymore I suppose it's just tough luck :(

<!-- gh-comment-id:361276888 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/archi"><img src="https://avatars1.githubusercontent.com/u/152603?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [archi](https://github.com/archi)** _Friday Dec 22, 2017 at 16:11 GMT_ ---- I hit the same, seems a lot like what you suggested. Since librespot is not maintained anymore I suppose it's just tough luck :(
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by kingosticks
Friday Dec 22, 2017 at 16:47 GMT


But it does look like it tries to: github.com/plietar/librespot@ddfc28f99f/src/player.rs (L351)

<!-- gh-comment-id:361276914 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/kingosticks"><img src="https://avatars2.githubusercontent.com/u/934824?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [kingosticks](https://github.com/kingosticks)** _Friday Dec 22, 2017 at 16:47 GMT_ ---- But it does look like it tries to: https://github.com/plietar/librespot/blob/ddfc28f99f283caa81951c63dd03fa913af1b8de/src/player.rs#L351
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by kingosticks
Friday Dec 22, 2017 at 18:59 GMT


An example of a failing song would be helpful.

<!-- gh-comment-id:361276935 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/kingosticks"><img src="https://avatars2.githubusercontent.com/u/934824?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [kingosticks](https://github.com/kingosticks)** _Friday Dec 22, 2017 at 18:59 GMT_ ---- An example of a failing song would be helpful.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by moses-palmer
Wednesday Jan 03, 2018 at 14:08 GMT


To reproduce, you can create a playlist on Spotify desktop, add a local directory and then add a local song to the playlist. When librespot then tries to play that song, this assertion will fail since it does not correspond to a song available on Spotify.

<!-- gh-comment-id:361276955 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/moses-palmer"><img src="https://avatars0.githubusercontent.com/u/577123?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [moses-palmer](https://github.com/moses-palmer)** _Wednesday Jan 03, 2018 at 14:08 GMT_ ---- To reproduce, you can create a playlist on _Spotify desktop_, add a local directory and then add a local song to the playlist. When _librespot_ then tries to play that song, [this assertion](https://github.com/plietar/librespot/blob/8971d3aa6864469a79c2640bb2afaf41c3d3728d/core/src/util/spotify_id.rs#L44) will fail since it does not correspond to a song available on _Spotify_.
Author
Owner

@sashahilton00 commented on GitHub (Feb 25, 2018):

Since this issue has no backtrace, no sample songs to reproduce, and no further reports within the past couple of months, I'm closing this. Please reopen with a backtrace and sample songs if this error still occurs.

<!-- gh-comment-id:368345676 --> @sashahilton00 commented on GitHub (Feb 25, 2018): Since this issue has no backtrace, no sample songs to reproduce, and no further reports within the past couple of months, I'm closing this. Please reopen with a backtrace and sample songs if this error still occurs.
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#76
No description provided.