Closed Tomato6966 closed 2 days ago
More than likely the URLs expire and Lavaplayer has no mechanism to regenerate them in this case.
I noticed you mentioned youtube-source
however, but there are no logs for this. I am unable to reproduce this with youtube-source
, however typically youtube playback URLs expire after around 6 hours, not minutes, and the source includes a mechanism for regenerating URLs in this instance. Can you confirm your exact conditions for producing this with youtube?
More than likely the URLs expire and Lavaplayer has no mechanism to regenerate them in this case.
I noticed you mentioned
youtube-source
however, but there are no logs for this. I am unable to reproduce this withyoutube-source
, however typically youtube playback URLs expire after around 6 hours, not minutes, and the source includes a mechanism for regenerating URLs in this instance. Can you confirm your exact conditions for producing this with youtube?
I produced it using youtube as a source for resolinvg tracks from spotify. It's very inconvenient that if you play a soundcloud, deezer, LOCAL track, pause it, leave it for a couple mins paused, unpause and the track errors. Shouldn't lavalink "regenerate" or "refetch" the track somewhat?
Shouldn't lavalink "regenerate" or "refetch" the track somewhat?
In an ideal scenario yes, however this is more of an edge case that wasn't really accounted for. It's uncommon for people to leave a bot paused for so long. In such a case, users should typically have some sort of thread watching for idle players and destroying them after some time.
I produced it using youtube as a source for resolinvg tracks from spotify.
I am still unable to reproduce issues with YouTube. Lavasrc internally redirects to youtube-source
so your usage of Spotify/lavasrc here won't make any difference.
I will try to reproduce it using youtube-source again However rn my youtube-source keeps not working on any music node i have setup rn, i think i will need to update the version again
Hi, I noticed this issue too. I dont use youtube-source only these plugins
plugins:
Same flow like Tomato, search for a track, play it, pause it, wait multiple minutes (over 5), resume the playback. Some seconds will play and then it errors.
Did further testings again Not able to reproduce on youtube nor deezer, unless you pause for over 30mins
soundcloud seems to be a solid 5mins
Able to reproduce on following sources:
soundcloud, http (thus also theorteically bandcamp, vimeo, and twitch)
I also received reports for local tracks, but that wouldn't make sense
I also have the problem when the source destroys the stream due to inactivity. (With deezer)
This has nothing to do with lavalink
Description
When playing a track from plugins like lavasrc or youtube-source and from soundcloud (local tracks not tested yet) and you pause the track. Then leave the track paused for at least 5-6mins and then unpause aka resume it. A track exception will happen after the next buffer frame is fetched. Which will cause the playback to crash.
I made sure to test it both on my own bot as well as on the lavalink bot from the discord server, to make sure its not a code issue from my client.
I think its a lavaplayer issue, but maybe its due to lavalink idk.
To Reproduce
See description.
Expected behavior
Track should keep playing without 'throwing an exception'
Version info
4.0.7 but also experienced on 4.0.5 and 4.0.6
Output of
java -version
:Lavalink Logs: One from soundcloud
One from deezer (lavasrc latest)