[GH-ISSUE #700] Copy link of current track freezes the app #414

Closed
opened 2026-03-02 23:47:19 +03:00 by kerem · 1 comment
Owner

Originally created by @felprangel on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/700

Describe the bug
When selecting to copy link on the track menu the app freezes

To Reproduce
Press a to open the track menu and select the copy link option

Expected behaviour
The link should be copied to the clipboard without any freezes

Log and backtrace
backtrace:

Got a panic: PanicHookInfo {
    payload: Any { .. },
    location: Location {
        file: "/home/felipe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/librespot-playback-0.6.0/src/audio_backend/rodio.rs",
        line: 177,
        col: 53,
    },
    can_unwind: true,
    force_no_backtrace: false,
}

Stack backtrace:
   0: spotify_player::init_logging::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: librespot_playback::audio_backend::rodio::mk_rodio
   8: std::sys::backtrace::__rust_begin_short_backtrace
   9: core::ops::function::FnOnce::call_once{{vtable.shim}}
  10: std::sys::pal::unix::thread::Thread::new::thread_start
  11: start_thread
             at ./nptl/pthread_create.c:447:8
  12: clone3
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0

log:

2025-03-27T15:52:28.058306Z  INFO spotify_player::state::data: Successfully loaded SavedTracks data!
2025-03-27T15:52:28.121266Z  INFO spotify_player::auth: Using cached credentials
2025-03-27T15:52:28.121283Z  INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: Some(45875), has_volume_ctrl: true }
2025-03-27T15:52:28.121297Z  INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0)
2025-03-27T15:52:28.121320Z  INFO spotify_player::streaming: Initializing a new integrated player with device_id=ed2a2e44-432c-47f6-91ac-edd3e747fac6
2025-03-27T15:52:28.121398Z  INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2025-03-27T15:52:28.121472Z  INFO librespot_playback::convert: Converting with ditherer: tpdf
2025-03-27T15:52:28.121486Z  INFO librespot_playback::audio_backend::rodio: Using Rodio sink with format S16 and cpal host: ALSA
2025-03-27T15:52:28.121489Z  INFO librespot_playback::audio_backend::rodio: Using audio device: default  
2025-03-27T15:52:28.768700Z  INFO librespot_core::session: Connecting to AP "ap-gue1.spotify.com:4070"   
2025-03-27T15:52:29.428028Z  INFO librespot_core::session: Authenticated as '9pnom570s50z6zm6gogsyledd' !
2025-03-27T15:52:29.428143Z ERROR librespot_playback::player: Player Commands Error: channel closed
2025-03-27T15:52:29.428153Z  INFO librespot_core::session: Country: "BR"
2025-03-27T15:52:29.428201Z  INFO spotify_player::streaming: New streaming connection has been established!
2025-03-27T15:52:29.428207Z  INFO spotify_player::client: Used a new session for Spotify client.
2025-03-27T15:52:29.428215Z  INFO spotify_player::token: Getting a new authentication token...
2025-03-27T15:52:29.428258Z ERROR librespot_playback::player: Player thread Error: Any { .. }
2025-03-27T15:52:29.895745Z  INFO spotify_player::token: Got new token: Token { access_token: "BQDY28FDg5cY1BQDVB86MpGp7s0XrdbYoRqKsFhTlqErN2zjLlf7TzKeZSmi_QYYVmHxpBQjoXyO0cZwG6CHwrtFLEdk6MRJ-JRl_KONQxuvMVUp5CyI7Q8-xhktllCqzl6XLi9hssfzpEnC-qk6gv4WVhbVigc40iUk_V4S3kusraXS_eVoptEl3SiqWfeVlQ1neqQz6O-gxPQR3tKbBTMuxUOp6XupYtvzSztQufzebGD8UVfi91jtGhN9uKnm026LusaSY8VV8pVab-qj3iQj9gKG3DEaL8HC72CoAw6ibfdP9xlr6Lbj9GpkY9cOI5581nMIvQxnrr6bZBClEthc8Z3Ucjv19wTbAkBYknTYvpP9PYaIMngcVZUB0lDuRuVZ8boQeO7Gp0unoA", expires_in: TimeDelta { secs: 3600, nanos: 0 }, expires_at: Some(2025-03-27T16:52:29.895740917Z), refresh_token: None, scopes: {} }
2025-03-27T15:52:29.895855Z  INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2025-03-27T15:52:29.896137Z  INFO spotify_player::media_control: Initializing application's media control event watcher...
2025-03-27T15:52:29.899887Z ERROR spotify_player: Failed to start the application's media control event watcher: err=DbusError(
    D-Bus error: /usr/bin/dbus-launch terminated abnormally without any error message (org.freedesktop.DBus.Error.Spawn.ExecFailed),
)
2025-03-27T15:52:30.187559Z  INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 291ms
2025-03-27T15:52:30.200128Z  INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 304ms
2025-03-27T15:52:30.299311Z  INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 403ms
2025-03-27T15:52:30.326909Z  INFO client_request{request=GetUserSavedShows}: spotify_player::client: Successfully handled the client request, took: 430ms
2025-03-27T15:52:30.420380Z  INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 524ms
2025-03-27T15:52:30.634335Z  INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 738ms
2025-03-27T15:52:32.244044Z  INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 345ms

Environment

  • OS: Ubuntu 24.04 (I use hyprland if it is relevant)
  • Application version: 0.20.4
  • Application features: image
Originally created by @felprangel on GitHub (Mar 27, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/700 **Describe the bug** When selecting to copy link on the track menu the app freezes **To Reproduce** Press `a` to open the track menu and select the copy link option **Expected behaviour** The link should be copied to the clipboard without any freezes **Log and backtrace** backtrace: ``` Got a panic: PanicHookInfo { payload: Any { .. }, location: Location { file: "/home/felipe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/librespot-playback-0.6.0/src/audio_backend/rodio.rs", line: 177, col: 53, }, can_unwind: true, force_no_backtrace: false, } Stack backtrace: 0: spotify_player::init_logging::{{closure}} 1: std::panicking::rust_panic_with_hook 2: std::panicking::begin_panic_handler::{{closure}} 3: std::sys::backtrace::__rust_end_short_backtrace 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: core::result::unwrap_failed 7: librespot_playback::audio_backend::rodio::mk_rodio 8: std::sys::backtrace::__rust_begin_short_backtrace 9: core::ops::function::FnOnce::call_once{{vtable.shim}} 10: std::sys::pal::unix::thread::Thread::new::thread_start 11: start_thread at ./nptl/pthread_create.c:447:8 12: clone3 at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78:0 ``` log: ``` 2025-03-27T15:52:28.058306Z INFO spotify_player::state::data: Successfully loaded SavedTracks data! 2025-03-27T15:52:28.121266Z INFO spotify_player::auth: Using cached credentials 2025-03-27T15:52:28.121283Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, is_group: false, initial_volume: Some(45875), has_volume_ctrl: true } 2025-03-27T15:52:28.121297Z INFO librespot_playback::mixer::softmixer: Mixing with softvol and volume control: Log(60.0) 2025-03-27T15:52:28.121320Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=ed2a2e44-432c-47f6-91ac-edd3e747fac6 2025-03-27T15:52:28.121398Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2025-03-27T15:52:28.121472Z INFO librespot_playback::convert: Converting with ditherer: tpdf 2025-03-27T15:52:28.121486Z INFO librespot_playback::audio_backend::rodio: Using Rodio sink with format S16 and cpal host: ALSA 2025-03-27T15:52:28.121489Z INFO librespot_playback::audio_backend::rodio: Using audio device: default 2025-03-27T15:52:28.768700Z INFO librespot_core::session: Connecting to AP "ap-gue1.spotify.com:4070" 2025-03-27T15:52:29.428028Z INFO librespot_core::session: Authenticated as '9pnom570s50z6zm6gogsyledd' ! 2025-03-27T15:52:29.428143Z ERROR librespot_playback::player: Player Commands Error: channel closed 2025-03-27T15:52:29.428153Z INFO librespot_core::session: Country: "BR" 2025-03-27T15:52:29.428201Z INFO spotify_player::streaming: New streaming connection has been established! 2025-03-27T15:52:29.428207Z INFO spotify_player::client: Used a new session for Spotify client. 2025-03-27T15:52:29.428215Z INFO spotify_player::token: Getting a new authentication token... 2025-03-27T15:52:29.428258Z ERROR librespot_playback::player: Player thread Error: Any { .. } 2025-03-27T15:52:29.895745Z INFO spotify_player::token: Got new token: Token { access_token: "BQDY28FDg5cY1BQDVB86MpGp7s0XrdbYoRqKsFhTlqErN2zjLlf7TzKeZSmi_QYYVmHxpBQjoXyO0cZwG6CHwrtFLEdk6MRJ-JRl_KONQxuvMVUp5CyI7Q8-xhktllCqzl6XLi9hssfzpEnC-qk6gv4WVhbVigc40iUk_V4S3kusraXS_eVoptEl3SiqWfeVlQ1neqQz6O-gxPQR3tKbBTMuxUOp6XupYtvzSztQufzebGD8UVfi91jtGhN9uKnm026LusaSY8VV8pVab-qj3iQj9gKG3DEaL8HC72CoAw6ibfdP9xlr6Lbj9GpkY9cOI5581nMIvQxnrr6bZBClEthc8Z3Ucjv19wTbAkBYknTYvpP9PYaIMngcVZUB0lDuRuVZ8boQeO7Gp0unoA", expires_in: TimeDelta { secs: 3600, nanos: 0 }, expires_at: Some(2025-03-27T16:52:29.895740917Z), refresh_token: None, scopes: {} } 2025-03-27T15:52:29.895855Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2025-03-27T15:52:29.896137Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2025-03-27T15:52:29.899887Z ERROR spotify_player: Failed to start the application's media control event watcher: err=DbusError( D-Bus error: /usr/bin/dbus-launch terminated abnormally without any error message (org.freedesktop.DBus.Error.Spawn.ExecFailed), ) 2025-03-27T15:52:30.187559Z INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 291ms 2025-03-27T15:52:30.200128Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 304ms 2025-03-27T15:52:30.299311Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 403ms 2025-03-27T15:52:30.326909Z INFO client_request{request=GetUserSavedShows}: spotify_player::client: Successfully handled the client request, took: 430ms 2025-03-27T15:52:30.420380Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 524ms 2025-03-27T15:52:30.634335Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 738ms 2025-03-27T15:52:32.244044Z INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 345ms ``` **Environment** - OS: Ubuntu 24.04 (I use hyprland if it is relevant) - Application version: 0.20.4 - Application features: image
kerem 2026-03-02 23:47:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@felprangel commented on GitHub (Feb 10, 2026):

The new version resolves it

<!-- gh-comment-id:3879852988 --> @felprangel commented on GitHub (Feb 10, 2026): The new version resolves it
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#414
No description provided.