[GH-ISSUE #35] Panic on an Err value: InitialFileHeadersCorrupt #24

Closed
opened 2026-02-27 19:28:22 +03:00 by kerem · 5 comments
Owner

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/35

Issue by joerg-krause
Saturday Oct 08, 2016 at 08:53 GMT
Originally opened as https://github.com/plietar/librespot/issues/121


Sometimes, librespot panics with:

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: InitialFileHeadersCorrupt', src/libcore/result.rs:799

This issue happens if a track is loaded in the Spotify Connect Client (so I can see the cover and the track artists and song title), but is not played locally (but was played before). Then I start librespot on my embedded Linux device, connect the client with librespot and after 3 or 4 seconds the panic happens.

Note, I am using Tremor as ogg decoder.

Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/35 <a href="https://github.com/joerg-krause"><img src="https://avatars2.githubusercontent.com/u/6870896?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [joerg-krause](https://github.com/joerg-krause)** _Saturday Oct 08, 2016 at 08:53 GMT_ _Originally opened as https://github.com/plietar/librespot/issues/121_ ---- Sometimes, librespot panics with: ``` thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: InitialFileHeadersCorrupt', src/libcore/result.rs:799 ``` This issue happens if a track is loaded in the Spotify Connect Client (so I can see the cover and the track artists and song title), but is not played locally (but was played before). Then I start librespot on my embedded Linux device, connect the client with librespot and after 3 or 4 seconds the panic happens. Note, I am using Tremor as ogg decoder.
kerem 2026-02-27 19:28:22 +03:00
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by joerg-krause
Wednesday Oct 12, 2016 at 18:48 GMT


Not sure why OV_EINVAL is described as InitialFileHeadersCorrupt whereas vorbis-errors describes it as:

OV_EINVAL Invalid argument value.

<!-- gh-comment-id:361259042 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/joerg-krause"><img src="https://avatars2.githubusercontent.com/u/6870896?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [joerg-krause](https://github.com/joerg-krause)** _Wednesday Oct 12, 2016 at 18:48 GMT_ ---- Not sure why [OV_EINVAL](https://github.com/plietar/rust-tremor/blob/master/src/lib.rs#L266) is described as [InitialFileHeadersCorrupt](https://github.com/plietar/rust-tremor/blob/master/src/lib.rs#L36) whereas [vorbis-errors](http://www.fifi.org/doc/libvorbis-dev/vorbis-errors.txt) describes it as: > OV_EINVAL Invalid argument value.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by herrernst
Tuesday Dec 20, 2016 at 21:58 GMT


Hm, I've just cross-compiled the current master for Raspberry Pi and always got InitialFileHeadersCorrupt, not yet found out the cause (not using Tremor btw)

<!-- gh-comment-id:361259072 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/herrernst"><img src="https://avatars2.githubusercontent.com/u/20795?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [herrernst](https://github.com/herrernst)** _Tuesday Dec 20, 2016 at 21:58 GMT_ ---- Hm, I've just cross-compiled the current master for Raspberry Pi and *always* got `InitialFileHeadersCorrupt`, not yet found out the cause (not using Tremor btw)
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by joerg-krause
Wednesday Dec 21, 2016 at 06:49 GMT


Maybe this one helps: github.com/joerg-krause/librespot@b58dc0b54e

<!-- gh-comment-id:361259092 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/joerg-krause"><img src="https://avatars2.githubusercontent.com/u/6870896?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [joerg-krause](https://github.com/joerg-krause)** _Wednesday Dec 21, 2016 at 06:49 GMT_ ---- Maybe this one helps: https://github.com/joerg-krause/librespot/commit/b58dc0b54e719101205dcd972062334cc72849db
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by plietar
Saturday Dec 31, 2016 at 11:59 GMT


I've cherry picked @joerg-krause's commit (thanks btw).
Since I can't reproduce this I'm not too sure how to fix the root cause.

<!-- gh-comment-id:361259122 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/plietar"><img src="https://avatars0.githubusercontent.com/u/1489775?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [plietar](https://github.com/plietar)** _Saturday Dec 31, 2016 at 11:59 GMT_ ---- I've cherry picked @joerg-krause's commit (thanks btw). Since I can't reproduce this I'm not too sure how to fix the root cause.
Author
Owner

@ComlOnline commented on GitHub (Jan 29, 2018):

Closed as it was very old and Paul couldn't reproduce.

<!-- gh-comment-id:361424594 --> @ComlOnline commented on GitHub (Jan 29, 2018): Closed as it was very old and Paul couldn't reproduce.
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/librespot#24
No description provided.