Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected exit due to "seek timestamp is out-of-range" #1472

Open
Malvineous opened this issue Feb 27, 2025 · 0 comments
Open

Unexpected exit due to "seek timestamp is out-of-range" #1472

Malvineous opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@Malvineous
Copy link
Contributor

Description

librespot exits due to a decoder error, when it should just continue with the next song.

librespot_playback::player] Error handling command: Operation aborted {
  Symphonia Decoder Error: seek error: requested seek timestamp is out-of-range for stream }
librespot_playback::player] PlayerState::is_playing in invalid state
(process terminated)

Version

git from 2024-12-30

How to reproduce

Hard to reproduce, intermittent. Seems to happen when the connection drops out briefly.

Log

All the log output was normal except for this at the end:

[2025-02-27T01:10:22Z DEBUG librespot_connect::spirc] handling: 'endpoint: transfer' from 966faa16860f7e3e9cc0f1cea01ae5ed18948460
[2025-02-27T01:10:22Z DEBUG librespot_connect::state::context] couldn't load context info because: context is not available. type: Default
[2025-02-27T01:10:22Z DEBUG librespot_connect::spirc] found initial track <spotify:track:xxx>
[2025-02-27T01:10:22Z DEBUG librespot_connect::spirc] add resolve request: resolve_uri: <Some("spotify:playlist:xxx")>, context_uri: <Some("spotify:playlist:xxx")>, autoplay: <false>, update: <true>
[2025-02-27T01:10:22Z DEBUG librespot_connect::state] updated connect play status playing: true, paused: true, buffering: true
[2025-02-27T01:10:22Z DEBUG librespot_core::http_client] Requesting https://login5.spotify.com/v3/login
[2025-02-27T01:10:22Z ERROR librespot_playback::player] Error handling command: Operation aborted { Symphonia Decoder Error: seek error: requested seek timestamp is out-of-range for stream }
[2025-02-27T01:10:22Z ERROR librespot_playback::player] PlayerState::is_playing in invalid state

It happened overnight and when I woke up, the Spotify UI was saying it was 8 hours into a three minute song, paused, but librespot had disconnected so it was no longer selected as the playback device.

Restarting librespot and playing the same song again worked fine, so the song itself was not the problem, it seems like the communication interruption was more likely the cause.

Host (what you are running librespot on):

Linux, PC

Additional context

I'm just reporting this as I think that "timestamp out of range" Symphonia error should really be treated as a minor error (or just 'end of current song'), it shouldn't cause the whole application to terminate because of it.

@Malvineous Malvineous added the bug label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant