mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #363] Player crash on wifi connection change (activating/deactivating vpn) #193
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#193
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 @Sekki21956 on GitHub (Feb 9, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/363
Describe the bug
When a VPN connection (WireGuard in my case) is activated/deactivated I get a player crash after some time that I cannot recover without restarting the application.
To Reproduce
Start playing music through spotify_player, then activate or deactivate a VPN connection, wait for some time for the progress bar to run through.
Expected behavior
The player should continue playing.
Log and backtrace
backtrace file is empty.
Screenshots

Environment
Additional context
I also had this problem before on EndeavourOS on both my Laptop and my PC. The recommended action in the screenshot does not work, as no device show up when executing SwitchDevice.
Ill be glad to supply more information when needed.
@aome510 commented on GitHub (Feb 11, 2024):
WDYM in terms of crashing? Does the whole app crashes or just the client not working while UI is still rendering?
Network issue can cause the client to be in an "invalid" state. When network is back, it takes time for the client to recover by itself. You can force restarting the client by invoking
RestartIntegratedClientcommand (Rshortcut).The message is outdated because of the old version. The new one will include more detailed instruction. I suspect it's because you haven't set up Spotify Connect support.
@LucasFA commented on GitHub (Feb 12, 2024):
I reproduced this in 0.16.3. For me:
The UI keeps working, it's just it doesn't continue to play any music after the current track ends. Keeps the end-of-song screen and after a while goes to the "No playback found" screen you cited. Besides that, it seems there is no network functionality at all - Playlist screens stay loading and the search menu doesn't show any results.
I actually haven't managed to get it working again with this, even after waiting a few minutes
@aome510 commented on GitHub (Feb 12, 2024):
Can you share another log of that not working run with
RestartIntegratedClient?@LucasFA commented on GitHub (Feb 13, 2024):
There it goes:
@aome510 commented on GitHub (Feb 13, 2024):
@LucasFA try to implement a fix in https://github.com/aome510/spotify-player/tree/new-session-upon-client-restart. can you checkout that branch to see if it fixes the issue with
RestartIntegratedClient?@LucasFA commented on GitHub (Feb 13, 2024):
Yes, seems to work again after
R:@Sekki21956 commented on GitHub (Feb 13, 2024):
Thank you guys, sorry I thought I replied to your first comment @aome510 but I guess I forgot to submit it...