-
Notifications
You must be signed in to change notification settings - Fork 458
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
mpris interface unresponsive (maybe due to credential cache panic ) #1246
Comments
I see the same issue. I started playback using the TransferPlayback dbus method and after some time (much less than 8 hours) the log reports a panic, but the process is still alive so it doesn't get restarted. Here it is with the backtrace enabled Backtrace
|
Hmm, I think I see the problem in the current code: When the application is idle, we currently don't refresh the token and as such, the dbus calls make use of an invalid token. |
We are seeing the same thing with our recent build, when MPRIS is polled but spotifyd has been idle for awhile.
|
I am experiencing the same problem and I am willing to take a stab at it. @eladyn any pointers on where/how to solve it? |
@2opremio I'm definitely not immersed in the issue right now, but if I recall correctly, the problem is that the refresh token is only refreshed when the Player sends out |
The workaround for us was to subscribe to the |
thanks for sharing @linknum23 but I honestly don't understand why this would be a workaround for the issue I described?? As note/ food for thought for you w.r.t. your use case (track metadata?): |
Sorry I probably could have given more context on that. You are correct, our use case is tracking the session metadata. For us, using |
Description
the MPRIS interface on systembus becomes unresponsive after some idle time over the night ( the instance is still visible but not introspectable)
busctl introspect org.mpris.MediaPlayer2.spotifyd.instance365 /org/mpris/MediaPlayer2 Failed to introspect object /org/mpris/MediaPlayer2 of service org.mpris.MediaPlayer2.spotifyd.instance365: Connection timed out
there is an error about credential caching in the log which I do not understand
then I tried this
busctl call org.mpris.MediaPlayer2.spotifyd.instance365 /rs/spotifyd/Controls rs.spotifyd.Controls TransferPlayback Call failed: Connection timed out
and then spotifyd crashed and was restarted by my systemd config after that it was working properly again
To Reproduce
Expected behavior
mpris should be instrospectable and responsive all the time
if there is a spotify api login problem it should try to automatically login again
Logs
Compilation flags
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: