[GH-ISSUE #204] Doesn't start #107

Closed
opened 2026-03-02 23:44:37 +03:00 by kerem · 7 comments
Owner

Originally created by @Icelk on GitHub (May 28, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/204

Describe the bug
spotify_player doesn't start and is very slow to come to the UI stage.

To Reproduce
When I try to start spotify_player, the screen is blank. When the playback notification pops up, I can press ctrl+c, and then the UI suddenly shows up.

Expected behavior
The UI starting without pressing ctrl+c.

Log and backtrace
~/.config/spotify-player/app.toml

[device]
name="Home"
volume=100
bitrate=320

Environment

  • OS: Arch
  • Application version: 0.14.0
  • Application features: -F notify,image,lyric-finder,pulseaudio-backend,streaming,media-control --no-default-features
  • Terminal: kitty
Originally created by @Icelk on GitHub (May 28, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/204 **Describe the bug** `spotify_player` doesn't start and is very slow to come to the UI stage. **To Reproduce** When I try to start `spotify_player`, the screen is blank. When the playback notification pops up, I can press `ctrl+c`, and then the UI suddenly shows up. **Expected behavior** The UI starting without pressing `ctrl+c`. **Log and backtrace** `~/.config/spotify-player/app.toml` ```ini [device] name="Home" volume=100 bitrate=320 ``` **Environment** - OS: Arch - Application version: 0.14.0 - Application features: `-F notify,image,lyric-finder,pulseaudio-backend,streaming,media-control --no-default-features` - Terminal: kitty
kerem 2026-03-02 23:44:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (May 28, 2023):

Do you have any videos for a demonstration?

Edit: also please provide applicable logs in ~/.cache/spotify-player/.

<!-- gh-comment-id:1566230754 --> @aome510 commented on GitHub (May 28, 2023): Do you have any videos for a demonstration? **Edit**: also please provide applicable logs in `~/.cache/spotify-player/`.
Author
Owner

@trincasidra commented on GitHub (May 30, 2023):

I'm having the same issue, but there isn't actually anything to show on video as it just stays like this:
image

Logs from the first run:

2023-05-30T08:57:48.951842Z  INFO spotify_player: Theme configurations: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: LightBlue }, cyan: Color { color: LightCyan }, green: Color { color: LightGreen }, magenta: Color { color: LightMagenta }, red: Color { color: LightRed }, white: Color { color: Gray }, yellow: Color { color: LightYellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: Red }, bright_magenta: Color { color: Magenta }, bright_green: Color { color: Green }, bright_cyan: Color { color: Cyan }, bright_blue: Color { color: Blue }, bright_yellow: Color { color: Yellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, current_playing: None, page_desc: None, table_header: None, selection: None } }] }
2023-05-30T08:57:48.951856Z  INFO spotify_player: Keymap configurations: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeUp }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }] }
2023-05-30T08:57:48.952378Z  INFO spotify_player::auth: Creating a new session with new authentication credentials
2023-05-30T08:57:55.836527Z  INFO spotify_player::token: Getting new authentication token...
2023-05-30T08:57:55.877337Z  INFO spotify_player::token: Got new token: Token { access_token: (token), expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2023-05-30T09:57:55.877325342Z), refresh_token: None, scopes: {} }
2023-05-30T08:57:55.877453Z  INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(32768), has_volume_ctrl: true, autoplay: false }
2023-05-30T08:57:55.877497Z  INFO spotify_player::streaming: Initializing a new integrated player with device_id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347
2023-05-30T08:57:55.877635Z  INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2023-05-30T08:57:55.877844Z  INFO spotify_player::streaming: Got an event from the integrated player: VolumeSet { volume: 32768 }
2023-05-30T08:57:56.005222Z  INFO spotify_player: No playback found on startup, trying to connect to an available device...
2023-05-30T08:57:56.005369Z  INFO spotify_player::cli::client: Starting a client socket at 127.0.0.1:8080
2023-05-30T08:57:56.005941Z  INFO spotify_player::media_control: Initializing application's media control event watcher...
2023-05-30T08:57:56.111643Z  INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 106ms
2023-05-30T08:57:56.116984Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 111ms
2023-05-30T08:57:56.266619Z  INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 261ms
2023-05-30T08:57:56.469918Z  INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 464ms
2023-05-30T08:57:56.528859Z  INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 523ms
2023-05-30T08:57:57.035469Z  INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 1029ms
2023-05-30T08:57:57.050812Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: []
2023-05-30T08:57:57.050859Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347)
2023-05-30T08:57:57.228400Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347)!
2023-05-30T08:57:57.228452Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1222ms
2023-05-30T08:57:57.233985Z  INFO spotify_player::streaming: Got an event from the integrated player: Started { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 }
2023-05-30T08:57:57.234040Z  INFO spotify_player::streaming: Got an event from the integrated player: Loading { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 }
2023-05-30T08:57:57.284820Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 50ms
2023-05-30T08:57:57.286832Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 52ms
2023-05-30T08:57:57.872912Z  INFO spotify_player::streaming: Got an event from the integrated player: Paused { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880, duration_ms: 197959 }
2023-05-30T08:57:57.970967Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from url: https://i.scdn.co/image/ab67616d0000b2738a3fbd33a1b46989ed5ca43c
2023-05-30T08:57:58.090239Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Saving the retrieved image into /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg
2023-05-30T08:57:58.090587Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg
2023-05-30T08:57:58.098226Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 225ms

And the logs from the second run:

2023-05-30T09:04:05.327971Z  INFO spotify_player: Theme configurations: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: LightBlue }, cyan: Color { color: LightCyan }, green: Color { color: LightGreen }, magenta: Color { color: LightMagenta }, red: Color { color: LightRed }, white: Color { color: Gray }, yellow: Color { color: LightYellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: Red }, bright_magenta: Color { color: Magenta }, bright_green: Color { color: Green }, bright_cyan: Color { color: Cyan }, bright_blue: Color { color: Blue }, bright_yellow: Color { color: Yellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, current_playing: None, page_desc: None, table_header: None, selection: None } }] }
2023-05-30T09:04:05.327986Z  INFO spotify_player: Keymap configurations: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeUp }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }] }
2023-05-30T09:04:05.708102Z  INFO spotify_player::auth: Successfully used the cached credentials to create a new session!
2023-05-30T09:04:05.788842Z  INFO spotify_player::token: Getting new authentication token...
2023-05-30T09:04:05.831792Z  INFO spotify_player::token: Got new token: Token { access_token: (token), expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2023-05-30T10:04:05.831779796Z), refresh_token: None, scopes: {} }
2023-05-30T09:04:05.831840Z  INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(32768), has_volume_ctrl: true, autoplay: false }
2023-05-30T09:04:05.831865Z  INFO spotify_player::streaming: Initializing a new integrated player with device_id=9933ca98-0367-47bb-b1d6-6c54cbddf481
2023-05-30T09:04:05.831968Z  INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2023-05-30T09:04:05.832136Z  INFO spotify_player::streaming: Got an event from the integrated player: VolumeSet { volume: 32768 }
2023-05-30T09:04:05.973880Z  INFO spotify_player: No playback found on startup, trying to connect to an available device...
2023-05-30T09:04:05.974033Z  INFO spotify_player::cli::client: Starting a client socket at 127.0.0.1:8080
2023-05-30T09:04:05.974453Z  INFO spotify_player::media_control: Initializing application's media control event watcher...
2023-05-30T09:04:06.079119Z  INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 104ms
2023-05-30T09:04:06.082920Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 108ms
2023-05-30T09:04:06.234210Z  INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 260ms
2023-05-30T09:04:06.418177Z  INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 443ms
2023-05-30T09:04:06.573565Z  INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 599ms
2023-05-30T09:04:06.896159Z  INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 921ms
2023-05-30T09:04:07.024212Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: []
2023-05-30T09:04:07.024297Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=9933ca98-0367-47bb-b1d6-6c54cbddf481)
2023-05-30T09:04:07.171201Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=9933ca98-0367-47bb-b1d6-6c54cbddf481)!
2023-05-30T09:04:07.171269Z  INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1197ms
2023-05-30T09:04:07.173425Z  INFO spotify_player::streaming: Got an event from the integrated player: Started { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 }
2023-05-30T09:04:07.173490Z  INFO spotify_player::streaming: Got an event from the integrated player: Loading { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 }
2023-05-30T09:04:07.229170Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 55ms
2023-05-30T09:04:07.231377Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 57ms
2023-05-30T09:04:07.862154Z  INFO spotify_player::streaming: Got an event from the integrated player: Paused { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880, duration_ms: 197959 }
2023-05-30T09:04:07.954367Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg
2023-05-30T09:04:07.954623Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg
2023-05-30T09:04:07.965081Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 102ms

Environment

  • OS: Ubuntu 22.04.2 LTS
  • Application version: 0.14.0
  • Application features: --no-default-features -F image,pulseaudio-backend,streaming,media-control
  • Terminal: kitty

Lastly, interestingly, if I go to my phone I can actually select spotify-player as a device and then spotify_player will actually play the music. The TUI however will still not come up, it's still hung like the image posted above.

<!-- gh-comment-id:1568065993 --> @trincasidra commented on GitHub (May 30, 2023): I'm having the same issue, but there isn't actually anything to show on video as it just stays like this: ![image](https://github.com/aome510/spotify-player/assets/15145418/076dd7e4-499f-4532-932e-4aaa71ec28b5) Logs from the first run: ```2023-05-30T08:57:48.951808Z INFO spotify_player: General configurations: AppConfig { theme: "dracula", client_id: (client id), client_port: 8080, copy_command: Command { command: "xclip", args: ["-sel", "c"] }, playback_format: "{track} • {artists}\n{album}\n{metadata}", proxy: None, ap_port: None, app_refresh_duration_in_ms: 32, playback_refresh_duration_in_ms: 0, cover_image_refresh_duration_in_ms: 2000, page_size_in_rows: 20, track_table_item_max_len: 32, play_icon: "▶", pause_icon: "▌▌", liked_icon: "♥", border_type: Plain, progress_bar_type: Rectangle, playback_window_position: Top, cover_img_length: 9, cover_img_width: 5, cover_img_scale: 1.0, playback_window_width: 6, enable_media_control: true, enable_streaming: true, enable_cover_image_cache: true, default_device: "spotify-player", device: DeviceConfig { name: "spotify-player", device_type: "speaker", volume: 50, bitrate: 160, audio_cache: false } } 2023-05-30T08:57:48.951842Z INFO spotify_player: Theme configurations: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: LightBlue }, cyan: Color { color: LightCyan }, green: Color { color: LightGreen }, magenta: Color { color: LightMagenta }, red: Color { color: LightRed }, white: Color { color: Gray }, yellow: Color { color: LightYellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: Red }, bright_magenta: Color { color: Magenta }, bright_green: Color { color: Green }, bright_cyan: Color { color: Cyan }, bright_blue: Color { color: Blue }, bright_yellow: Color { color: Yellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, current_playing: None, page_desc: None, table_header: None, selection: None } }] } 2023-05-30T08:57:48.951856Z INFO spotify_player: Keymap configurations: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeUp }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }] } 2023-05-30T08:57:48.952378Z INFO spotify_player::auth: Creating a new session with new authentication credentials 2023-05-30T08:57:55.836527Z INFO spotify_player::token: Getting new authentication token... 2023-05-30T08:57:55.877337Z INFO spotify_player::token: Got new token: Token { access_token: (token), expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2023-05-30T09:57:55.877325342Z), refresh_token: None, scopes: {} } 2023-05-30T08:57:55.877453Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(32768), has_volume_ctrl: true, autoplay: false } 2023-05-30T08:57:55.877497Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347 2023-05-30T08:57:55.877635Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2023-05-30T08:57:55.877844Z INFO spotify_player::streaming: Got an event from the integrated player: VolumeSet { volume: 32768 } 2023-05-30T08:57:56.005222Z INFO spotify_player: No playback found on startup, trying to connect to an available device... 2023-05-30T08:57:56.005369Z INFO spotify_player::cli::client: Starting a client socket at 127.0.0.1:8080 2023-05-30T08:57:56.005941Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2023-05-30T08:57:56.111643Z INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 106ms 2023-05-30T08:57:56.116984Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 111ms 2023-05-30T08:57:56.266619Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 261ms 2023-05-30T08:57:56.469918Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 464ms 2023-05-30T08:57:56.528859Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 523ms 2023-05-30T08:57:57.035469Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 1029ms 2023-05-30T08:57:57.050812Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: [] 2023-05-30T08:57:57.050859Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347) 2023-05-30T08:57:57.228400Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=1bae8760-9cbb-4ab3-9aa4-1cf8424bb347)! 2023-05-30T08:57:57.228452Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1222ms 2023-05-30T08:57:57.233985Z INFO spotify_player::streaming: Got an event from the integrated player: Started { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 } 2023-05-30T08:57:57.234040Z INFO spotify_player::streaming: Got an event from the integrated player: Loading { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 } 2023-05-30T08:57:57.284820Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 50ms 2023-05-30T08:57:57.286832Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 52ms 2023-05-30T08:57:57.872912Z INFO spotify_player::streaming: Got an event from the integrated player: Paused { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880, duration_ms: 197959 } 2023-05-30T08:57:57.970967Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from url: https://i.scdn.co/image/ab67616d0000b2738a3fbd33a1b46989ed5ca43c 2023-05-30T08:57:58.090239Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Saving the retrieved image into /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg 2023-05-30T08:57:58.090587Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg 2023-05-30T08:57:58.098226Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 225ms ``` And the logs from the second run: ```2023-05-30T09:04:05.327930Z INFO spotify_player: General configurations: AppConfig { theme: "dracula", client_id: (client id), client_port: 8080, copy_command: Command { command: "xclip", args: ["-sel", "c"] }, playback_format: "{track} • {artists}\n{album}\n{metadata}", proxy: None, ap_port: None, app_refresh_duration_in_ms: 32, playback_refresh_duration_in_ms: 0, cover_image_refresh_duration_in_ms: 2000, page_size_in_rows: 20, track_table_item_max_len: 32, play_icon: "▶", pause_icon: "▌▌", liked_icon: "♥", border_type: Plain, progress_bar_type: Rectangle, playback_window_position: Top, cover_img_length: 9, cover_img_width: 5, cover_img_scale: 1.0, playback_window_width: 6, enable_media_control: true, enable_streaming: true, enable_cover_image_cache: true, default_device: "spotify-player", device: DeviceConfig { name: "spotify-player", device_type: "speaker", volume: 50, bitrate: 160, audio_cache: false } } 2023-05-30T09:04:05.327971Z INFO spotify_player: Theme configurations: ThemeConfig { themes: [Theme { name: "default", palette: Palette { background: None, foreground: None, black: Color { color: Black }, blue: Color { color: LightBlue }, cyan: Color { color: LightCyan }, green: Color { color: LightGreen }, magenta: Color { color: LightMagenta }, red: Color { color: LightRed }, white: Color { color: Gray }, yellow: Color { color: LightYellow }, bright_black: Color { color: DarkGray }, bright_white: Color { color: White }, bright_red: Color { color: Red }, bright_magenta: Color { color: Magenta }, bright_green: Color { color: Green }, bright_cyan: Color { color: Cyan }, bright_blue: Color { color: Blue }, bright_yellow: Color { color: Yellow } }, component_style: ComponentStyle { block_title: None, border: None, playback_track: None, playback_artists: None, playback_album: None, playback_metadata: None, playback_progress_bar: None, current_playing: None, page_desc: None, table_header: None, selection: None } }] } 2023-05-30T09:04:05.327986Z INFO spotify_player: Keymap configurations: KeymapConfig { keymaps: [Keymap { key_sequence: KeySequence { keys: [None(Char('n'))] }, command: NextTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('p'))] }, command: PreviousTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('.'))] }, command: PlayRandom }, Keymap { key_sequence: KeySequence { keys: [None(Char(' '))] }, command: ResumePause }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('r'))] }, command: Repeat }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('s'))] }, command: Shuffle }, Keymap { key_sequence: KeySequence { keys: [None(Char('+'))] }, command: VolumeUp }, Keymap { key_sequence: KeySequence { keys: [None(Char('-'))] }, command: VolumeDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('>'))] }, command: SeekForward }, Keymap { key_sequence: KeySequence { keys: [None(Char('<'))] }, command: SeekBackward }, Keymap { key_sequence: KeySequence { keys: [None(Enter)] }, command: ChooseSelected }, Keymap { key_sequence: KeySequence { keys: [None(Char('r'))] }, command: RefreshPlayback }, Keymap { key_sequence: KeySequence { keys: [None(Char('/'))] }, command: Search }, Keymap { key_sequence: KeySequence { keys: [None(Char('z'))] }, command: Queue }, Keymap { key_sequence: KeySequence { keys: [None(Char('Z'))] }, command: AddSelectedItemToQueue }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char(' '))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('a'))] }, command: ShowActionsOnSelectedItem }, Keymap { key_sequence: KeySequence { keys: [None(Char('a'))] }, command: ShowActionsOnCurrentTrack }, Keymap { key_sequence: KeySequence { keys: [None(Char('R'))] }, command: RestartIntegratedClient }, Keymap { key_sequence: KeySequence { keys: [None(Tab)] }, command: FocusNextWindow }, Keymap { key_sequence: KeySequence { keys: [None(BackTab)] }, command: FocusPreviousWindow }, Keymap { key_sequence: KeySequence { keys: [None(Char('T'))] }, command: SwitchTheme }, Keymap { key_sequence: KeySequence { keys: [None(Char('D'))] }, command: SwitchDevice }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('p'))] }, command: BrowseUserPlaylists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('a'))] }, command: BrowseUserFollowedArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('u')), None(Char('A'))] }, command: BrowseUserSavedAlbums }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char(' '))] }, command: CurrentlyPlayingContextPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('t'))] }, command: TopTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('r'))] }, command: RecentlyPlayedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('y'))] }, command: LikedTrackPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('l'))] }, command: LibraryPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('s'))] }, command: SearchPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('b'))] }, command: BrowsePage }, Keymap { key_sequence: KeySequence { keys: [None(Backspace)] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('q'))] }, command: PreviousPage }, Keymap { key_sequence: KeySequence { keys: [None(Char('?'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('h'))] }, command: OpenCommandHelp }, Keymap { key_sequence: KeySequence { keys: [None(Char('q'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('c'))] }, command: Quit }, Keymap { key_sequence: KeySequence { keys: [None(Esc)] }, command: ClosePopup }, Keymap { key_sequence: KeySequence { keys: [None(Char('j'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('n'))] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Down)] }, command: SelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('k'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('p'))] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(Up)] }, command: SelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageUp)] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('b'))] }, command: PageSelectPreviousOrScrollUp }, Keymap { key_sequence: KeySequence { keys: [None(PageDown)] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [Ctrl(Char('f'))] }, command: PageSelectNextOrScrollDown }, Keymap { key_sequence: KeySequence { keys: [None(Char('g')), None(Char('g'))] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Home)] }, command: SelectFirstOrScrollToTop }, Keymap { key_sequence: KeySequence { keys: [None(Char('G'))] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(End)] }, command: SelectLastOrScrollToBottom }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('t'))] }, command: SortTrackByTitle }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('a'))] }, command: SortTrackByArtists }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('A'))] }, command: SortTrackByAlbum }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('d'))] }, command: SortTrackByDuration }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('D'))] }, command: SortTrackByAddedDate }, Keymap { key_sequence: KeySequence { keys: [None(Char('s')), None(Char('r'))] }, command: ReverseTrackOrder }] } 2023-05-30T09:04:05.708102Z INFO spotify_player::auth: Successfully used the cached credentials to create a new session! 2023-05-30T09:04:05.788842Z INFO spotify_player::token: Getting new authentication token... 2023-05-30T09:04:05.831792Z INFO spotify_player::token: Got new token: Token { access_token: (token), expires_in: Duration { secs: 3600, nanos: 0 }, expires_at: Some(2023-05-30T10:04:05.831779796Z), refresh_token: None, scopes: {} } 2023-05-30T09:04:05.831840Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(32768), has_volume_ctrl: true, autoplay: false } 2023-05-30T09:04:05.831865Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=9933ca98-0367-47bb-b1d6-6c54cbddf481 2023-05-30T09:04:05.831968Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2023-05-30T09:04:05.832136Z INFO spotify_player::streaming: Got an event from the integrated player: VolumeSet { volume: 32768 } 2023-05-30T09:04:05.973880Z INFO spotify_player: No playback found on startup, trying to connect to an available device... 2023-05-30T09:04:05.974033Z INFO spotify_player::cli::client: Starting a client socket at 127.0.0.1:8080 2023-05-30T09:04:05.974453Z INFO spotify_player::media_control: Initializing application's media control event watcher... 2023-05-30T09:04:06.079119Z INFO client_request{request=GetCurrentUser}: spotify_player::client: successfully handled the client request, took: 104ms 2023-05-30T09:04:06.082920Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 108ms 2023-05-30T09:04:06.234210Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: successfully handled the client request, took: 260ms 2023-05-30T09:04:06.418177Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: successfully handled the client request, took: 443ms 2023-05-30T09:04:06.573565Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: successfully handled the client request, took: 599ms 2023-05-30T09:04:06.896159Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: successfully handled the client request, took: 921ms 2023-05-30T09:04:07.024212Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Available devices: [] 2023-05-30T09:04:07.024297Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Trying to connect to device (id=9933ca98-0367-47bb-b1d6-6c54cbddf481) 2023-05-30T09:04:07.171201Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: Connection succeeded (device_id=9933ca98-0367-47bb-b1d6-6c54cbddf481)! 2023-05-30T09:04:07.171269Z INFO client_request{request=ConnectDevice(None)}: spotify_player::client: successfully handled the client request, took: 1197ms 2023-05-30T09:04:07.173425Z INFO spotify_player::streaming: Got an event from the integrated player: Started { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 } 2023-05-30T09:04:07.173490Z INFO spotify_player::streaming: Got an event from the integrated player: Loading { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880 } 2023-05-30T09:04:07.229170Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 55ms 2023-05-30T09:04:07.231377Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 57ms 2023-05-30T09:04:07.862154Z INFO spotify_player::streaming: Got an event from the integrated player: Paused { play_request_id: 0, track_id: SpotifyId { id: 201061429701140917160485490832928619671, audio_type: Track }, position_ms: 2880, duration_ms: 197959 } 2023-05-30T09:04:07.954367Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg 2023-05-30T09:04:07.954623Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/rmarco/.cache/spotify-player/image/Vie mut minne vaan-90's FIN Cover Boyz & Girlz!-cover.jpg 2023-05-30T09:04:07.965081Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 102ms ``` **Environment** - OS: Ubuntu 22.04.2 LTS - Application version: 0.14.0 - Application features: --no-default-features -F image,pulseaudio-backend,streaming,media-control - Terminal: kitty Lastly, interestingly, if I go to my phone I can actually select `spotify-player` as a device and then spotify_player will actually play the music. The TUI however will still not come up, it's still hung like the image posted above.
Author
Owner

@aome510 commented on GitHub (May 30, 2023):

Can confirm that this issue is reproducible in my other Ubuntu machine. Will implement a fix soon.

<!-- gh-comment-id:1568677801 --> @aome510 commented on GitHub (May 30, 2023): Can confirm that this issue is reproducible in my other Ubuntu machine. Will implement a fix soon.
Author
Owner

@Icelk commented on GitHub (May 30, 2023):

Thanks!

<!-- gh-comment-id:1568768089 --> @Icelk commented on GitHub (May 30, 2023): Thanks!
Author
Owner

@aome510 commented on GitHub (May 30, 2023):

@Icelk @trincasidra should be fixed with github.com/aome510/spotify-player@bca3fa2362.

Can you guys try the latest build of master to see if the new change fixes this issue?

<!-- gh-comment-id:1568833225 --> @aome510 commented on GitHub (May 30, 2023): @Icelk @trincasidra should be fixed with https://github.com/aome510/spotify-player/commit/bca3fa236205d77f82272749a31954f5c69c1546. Can you guys try the latest build of `master` to see if the new change fixes this issue?
Author
Owner

@trincasidra commented on GitHub (May 30, 2023):

Cheers, it works now!
Thanks for the speedy help :)

<!-- gh-comment-id:1568887363 --> @trincasidra commented on GitHub (May 30, 2023): Cheers, it works now! Thanks for the speedy help :)
Author
Owner

@aome510 commented on GitHub (May 31, 2023):

Thanks. Will close this issue.

<!-- gh-comment-id:1570687814 --> @aome510 commented on GitHub (May 31, 2023): Thanks. Will close this issue.
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#107
No description provided.