devgianlu / go-librespot

Yet another open source Spotify client, written in Go.
GNU General Public License v3.0
53 stars 7 forks source link

Exception on reading random chunk #28

Closed tylkie closed 3 months ago

tylkie commented 3 months ago

About every 100th random song the player crashes as follows...

time="2024-04-03T10:27:46+02:00" level=info msg="loaded track \"Something to Someone\" (uri: spotify:track:4AQXIIhoKpkn7gMMS4StAY, ... panic: runtime error: slice bounds out of range [4263:280] goroutine 4230472 [running]: go-librespot/audio.(*HttpChunkedReader).ReadAt(0xc00035ef80, {0x7f0f601c8370, 0x1000, 0x7fffffff}, 0xc0000d4b20?) /home/tylk/Downloads/go-librespot-0.0.14/audio/chunked_reader.go:218 +0x2ba

After restarting the player, playback is paused, even if it was unpaused while crashing.