lonelyradio icon indicating copy to clipboard operation
lonelyradio copied to clipboard

Failed to parse message: InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })

Open JasonSanDiego opened this issue 1 year ago • 5 comments

When playing a song, I get this error message. Other songs work, so maybe there is some issue with this mp3 being malformed or maybe it was a transient issue while connecting. Regardless, it seems like the server should catch this error gracefully, show an error message, and move on to the next song. In this case, it acts like it's playing the song with the timer running, but nothing is playing.

Playing: Avril Lavigne - 2002 Billboard Top 100 Hits - Sk8er Boi (3:24)thread '<unnamed>' panicked at monolib/src/lib.rs:281:47:
Failed to parse message: InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Playing: Avril Lavigne - 2002 Billboard Top 100 Hits - Sk8er Boi (4:21 / 3:24) [1.00]     

JasonSanDiego avatar Aug 29 '24 05:08 JasonSanDiego

Can you please attach the log from the server? It's most likely the problem with decoding

ivabus avatar Aug 29 '24 05:08 ivabus

Yep, I'm seeing a fair number of these errors:

thread 'tokio-runtime-worker' panicked at src/encode.rs:49:18:
called `Result::unwrap()` on an `Err` value: Config(VerifyError { components: ["input.framebuf"], reason: "input sample must be in the range of bits=24" })

JasonSanDiego avatar Sep 04 '24 18:09 JasonSanDiego

It's also worth noting that this happens sometimes in the middle of the track playing successfully, so it doesn't necessarily seem to be an issue of the entire track itself being encoded with the wrong sample rate.

JasonSanDiego avatar Sep 04 '24 18:09 JasonSanDiego

I think I fixed it some time ago, could you please reinstall the server from a master branch and try again?

ivabus avatar Sep 05 '24 14:09 ivabus

I reinstalled and things are a lot better but it's still far from reliable. Previously, it would crash before even playing a full song. Now, I get through 1-3 songs before it crashes. Same error as mentioned above.

JasonSanDiego avatar Sep 19 '24 05:09 JasonSanDiego