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 on some songs #247

Open
Glenn-1990 opened this issue Sep 5, 2017 · 9 comments
Open

Crash on some songs #247

Glenn-1990 opened this issue Sep 5, 2017 · 9 comments

Comments

@Glenn-1990
Copy link

Glenn-1990 commented Sep 5, 2017

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'.

@michaelherger
Copy link
Contributor

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

@Glenn-1990
Copy link
Author

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

@michaelherger
Copy link
Contributor

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

@Glenn-1990
Copy link
Author

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

@cortegedusage
Copy link

cortegedusage commented Sep 19, 2017 via email

@archi
Copy link

archi commented Dec 22, 2017

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

@kingosticks
Copy link

But it does look like it tries to:

let track = match self.find_available_alternative(&track) {

@kingosticks
Copy link

An example of a failing song would be helpful.

@moses-palmer
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants