[GH-ISSUE #899] App freezes when current playing song loads #1479

Closed
opened 2026-03-14 15:10:12 +03:00 by kerem · 10 comments
Owner

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.

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.
kerem 2026-03-14 15:10:12 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

<!-- gh-comment-id:3691539514 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:3693634641 --> @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?
Author
Owner

@aome510 commented on GitHub (Dec 28, 2025):

hi, can anyone confirm if https://github.com/aome510/spotify-player/pull/897 fixes the issue?

<!-- gh-comment-id:3695129237 --> @aome510 commented on GitHub (Dec 28, 2025): hi, can anyone confirm if https://github.com/aome510/spotify-player/pull/897 fixes the issue?
Author
Owner

@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

<!-- gh-comment-id:3695648992 --> @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
Author
Owner

@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 pixelate this does not happen.

i run #897 ontop of 22123ab594, on macos + ghostty.

pixelate+ghostty or running with image+tmux (inside of ghostty) works, though.

<!-- gh-comment-id:3698389914 --> @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 `pixelate` this does not happen. i run #897 ontop of 22123ab594460827af9db9f5c8c5ac29bfebe754, on macos + ghostty. `pixelate`+ghostty or running with `image`+tmux (inside of ghostty) works, though.
Author
Owner

@aome510 commented on GitHub (Dec 30, 2025):

I think the new version of viuer definitely 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 vieur back to 0.9.2 which I think is working based on https://github.com/aome510/spotify-player/issues/890#issuecomment-3690091814

<!-- gh-comment-id:3699771328 --> @aome510 commented on GitHub (Dec 30, 2025): I think the new version of `viuer` definitely causes this issue ([change log](https://github.com/atanunq/viuer/blob/master/CHANGELOG.md)). 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 `vieur` back to `0.9.2` which I think is working based on https://github.com/aome510/spotify-player/issues/890#issuecomment-3690091814
Author
Owner

@mgumz commented on GitHub (Dec 30, 2025):

@aome510 yes, downgrading to vieur:0.9.2 works: no freezing for me on macos+ghostty.

<!-- gh-comment-id:3699923527 --> @mgumz commented on GitHub (Dec 30, 2025): @aome510 yes, downgrading to `vieur:0.9.2` works: no freezing for me on macos+ghostty.
Author
Owner

@ETLaurent commented on GitHub (Jan 5, 2026):

I think the new version of viuer definitely 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.

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.

<!-- gh-comment-id:3709732388 --> @ETLaurent commented on GitHub (Jan 5, 2026): > I think the new version of `viuer` definitely causes this issue ([change log](https://github.com/atanunq/viuer/blob/master/CHANGELOG.md)). 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. Reproducing the issue on 6264c2ff3619f7dfeee2b8b80efa86aeba7d3055, 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.
Author
Owner

@TogiFerretFerret commented on GitHub (Jan 6, 2026):

Vieur 0.9.2 works for me as well (linux+ghostty)

<!-- gh-comment-id:3715227105 --> @TogiFerretFerret commented on GitHub (Jan 6, 2026): Vieur 0.9.2 works for me as well (linux+ghostty)
Author
Owner

@aome510 commented on GitHub (Jan 8, 2026):

revert viuer to 0.9.2 in #909

<!-- gh-comment-id:3721469220 --> @aome510 commented on GitHub (Jan 8, 2026): revert `viuer` to `0.9.2` in #909
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1479
No description provided.