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

thread 'main' panicked at 'Box<Any>', src/session.rs:115 #156

Closed
joerg-krause opened this issue Mar 4, 2017 · 4 comments
Closed

thread 'main' panicked at 'Box<Any>', src/session.rs:115 #156

joerg-krause opened this issue Mar 4, 2017 · 4 comments
Labels

Comments

@joerg-krause
Copy link
Contributor

joerg-krause commented Mar 4, 2017

Running the latest master works great so far! Yesterday, I set up a playlist in the Spotify App lo be played in a loop and selected the librespot client as audio sink. When I woke up today, the librespot client died:

DEBUG:librespot::audio_file: File 774f64e3c9690d01ecad1a35ed0bde12d978dfae complete
DEBUG:librespot::session: Session[0] strong=3 weak=6
DEBUG:librespot::player: command=Load(SpotifyId(u128 { high: 8492558088775026015, low: 11919394522851906758 }), true, 0)
DEBUG:librespot::session: drop Dispatch
thread 'main' panicked at 'Box<Any>', src/session.rs:115
@joerg-krause
Copy link
Contributor Author

I am able to reproduce the panic when I force a disconnection of my DSL connection in the router. The librespot client keeps streaming fine after the router get a new IP. However, the Spotify App drops connection to the client. The status bar goes from green to blue., but the device is in the list and selectable. If I select the device now, librespot panics.

@plietar plietar added the bug label Mar 6, 2017
@joerg-krause
Copy link
Contributor Author

The error message is "Connection reset by peer". Ideally, we should try to reconnect. Unfortunately, I have no idea, how to do it for librespot.

When this event happens, the Spotify Player disconnects for a moment from the librespot device (the status bar goes from green to blue for a short moment) than the device is displayed as connected again for about 2 or 3 seconds. Thereafter, the player shows the device as disconnected.

@bowiz2
Copy link

bowiz2 commented Sep 1, 2017

Have the same issue when playing from the Android client. Passing a username and using the --disable-discovery flag allowed me to connect from my phone, but after about 1.5 - 2 minutes, the connection was dropped, while librespot still showed nothing out of the ordinary.

After the connection was dropped, I couldn't reconnect to librespot, as it still thought it was connected to the client.

I received a similar
thread 'main' panicked at 'Box<Any>', src/session.rs:83
error after about 5 minutes.

Build info:
INFO:librespot: librespot ddfc28f (2017-08-04). Built on 2017-08-07. Build ID: N5RcEuis
Running on a Raspberry Pi 1

@joerg-krause
Copy link
Contributor Author

Closed due to lack of maintenance of the project.

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

No branches or pull requests

3 participants