mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #899] App freezes when current playing song loads #543
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#543
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 @MonkyMars on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/899
Describe the bug
The app freezes completely. keystrokes do nothing. it also just stops listening to resizing.
To Reproduce
Open the app while having a song playing on another device
Expected behaviour
Should not freeze
Log and backtrace
2025-12-25T15:19:22.927352Z INFO librespot_core::session: Country: "NL"
2025-12-25T15:19:23.039595Z INFO spotify_player::streaming: New streaming connection has been established!
2025-12-25T15:19:23.039605Z INFO spotify_player::client: Used a new session for Spotify client.
2025-12-25T15:19:23.134950Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-12-25T15:19:23.135120Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-12-25T15:19:23.135472Z INFO librespot_core::spclient: Resolved "gew4-spclient.spotify.com:443" as spclient access point
2025-12-25T15:19:23.262699Z INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 127ms
2025-12-25T15:19:23.277223Z INFO librespot_connect::spirc: active device is <3d077414f18724c02fc88768ccfadd0af10eb37f> with session <4gRLxP0KiqIPmdW5MLy0gk>
2025-12-25T15:19:23.364871Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 229ms
2025-12-25T15:19:23.498515Z INFO client_request{request=GetUserSavedShows}: spotify_player::client: Successfully handled the client request, took: 363ms
2025-12-25T15:19:23.582951Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 447ms
2025-12-25T15:19:23.628137Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 493ms
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
build from latest source on cachyos with niri and kitty.
@MonkyMars commented on GitHub (Dec 25, 2025):
it may be a niri or kitty issue because of the resizing. this hasnt happened anywhere else though.
@chiragverma11 commented on GitHub (Dec 27, 2025):
Two days ago I hit the same issue. I built spotify-player with the image feature enabled. When I run it and play any song, the UI freezes while audio continues playing in the background. I saw the same behaviour in both Kitty and Ghostty.
The same build works fine inside tmux, the cover image shows as pixelated (because tmux can't render images), but the UI does not freeze. Also, a build without the image feature works perfectly everywhere.
are you using a build with image feature?
@aome510 commented on GitHub (Dec 28, 2025):
hi, can anyone confirm if https://github.com/aome510/spotify-player/pull/897 fixes the issue?
@chiragverma11 commented on GitHub (Dec 29, 2025):
I tested #897 but the UI still freezes when image feature is enabled.
I am sharing the logs and recording.
Logs - https://pastebin.com/QT8yj9hG
In video first I tested the build by creating a new Kitty window, at 0:22 I played Sway song and the UI freezes (you can tell as the timeline is stuck) and the terminal also gets messed up (after exiting by Ctrl-C), then I tested the same build in a tmux window and it works flawlessly.
https://github.com/user-attachments/assets/e81e76f2-db12-4334-b736-96527c6c944a
@mgumz commented on GitHub (Dec 30, 2025):
@aome510 for me, #897 neither fixes the issue. music keeps playing, but the moment the image is shown, the rest of the ui stalls. with feature
pixelatethis does not happen.i run #897 ontop of
22123ab594, on macos + ghostty.pixelate+ghostty or running withimage+tmux (inside of ghostty) works, though.@aome510 commented on GitHub (Dec 30, 2025):
I think the new version of
viuerdefinitely causes this issue (change log). With that said, I couldn't reproduce with kitty on MacOS (maybe it's a linux thing) so don't know how to fix this.Maybe someone able to reproduce the the issue can do some debugging to figure out where it triggers the freeze in https://github.com/atanunq/viuer/blob/master/src/printer/kitty.rs. In the meantime, we can revert
vieurback to0.9.2which I think is working based on https://github.com/aome510/spotify-player/issues/890#issuecomment-3690091814@mgumz commented on GitHub (Dec 30, 2025):
@aome510 yes, downgrading to
vieur:0.9.2works: no freezing for me on macos+ghostty.@ETLaurent commented on GitHub (Jan 5, 2026):
Reproducing the issue on
6264c2ff36, with Kitty 0.44.0 on MacOS 26.1 (25B78).UI freezes as soon as the album cover is displayed. It happens ~3 times out of 4, weirdly.
I don't have the problem on Alactritty 0.16.1.
@TogiFerretFerret commented on GitHub (Jan 6, 2026):
Vieur 0.9.2 works for me as well (linux+ghostty)
@aome510 commented on GitHub (Jan 8, 2026):
revert
viuerto0.9.2in #909