FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Videos stop unexpectedly and go back to 0:00, displaying only video thumbnail

Open RoryTate opened this issue 11 months ago • 5 comments

Guidelines

Describe the bug

At seemingly random times, a video that is playing will stop unexpectedly and then go back to 0:00 and show the video thumbnail. Various errors like "Shaka error handler" and "network error/timeout" appear in the F12 screen.

Expected Behavior

Video should continue playing.

Issue Labels

inconsistent behavior

FreeTube Version

v0.23.12 Beta

Operating System Version

Windows 11 Home 25H2 26200.7462

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

I have attached a recorded video showing the error in action, with the F12 information displayed once it happens.

https://github.com/user-attachments/assets/84ccd0ec-3542-4774-8b21-cf2ca4b14ec2

Unfortunately, the bug often takes a long time to reproduce when watching videos, and it may perhaps be associated with having multiple FreeTube windows open, or perhaps pausing one video and starting another (these are just guesses on my part though based on only a week of testing). I did find another bug in the issue tracker that seemed related, where turning off IPv6 was a possible workaround, but forcing IPv4 for two days did not resolve or seem to affect the issue.

This problem may be related to bug #8349, "Certain videos fail to play at all, stuck at the 0:00 mark". However, in this behaviour all videos will play, but then some may stop and get stuck at the 0:00 mark after a random amount of time playing. I decided to create a new bug, and you can merge them if they are the same issue.

In all cases, the buffered content bar appears fine, so it doesn't seem to be a "bandwidth/interruption" issue. Playing the video directly in YouTube works fine.

Nightly Build

RoryTate avatar Dec 19 '25 00:12 RoryTate

Oh yeah I experience this too. However, if you go for this experimental build, this seems to resolve that specific issue (the best way I can describe how it'll resolve the issue is that it'll be reduced to a pause, where FreeTube will attempt to refresh the video and then resume where you left off, without it staying stuck on 360p).

Also, as far as I've seen, this issue is unrelated to the issue you mentioned. In my issue, the video refuses to play at all due to some sort of network timeout.

DoomKrakken avatar Dec 23 '25 14:12 DoomKrakken

Oh yeah I experience this too. However, if you go for this experimental build, this seems to resolve that specific issue (the best way I can describe how it'll resolve the issue is that it'll be reduced to a pause, where FreeTube will attempt to refresh the video and then resume where you left off, without it staying stuck on 360p).

Also, as far as I've seen, this issue is unrelated to the issue you mentioned. In my issue, the video refuses to play at all due to some sort of network timeout.

Thanks for the link. I tried that other build (and a more recent release from that fork) but the problem still occurred with the same behaviour. I'm now trying the most recent nightly build from this repository to see if anything changes, because the issue seems to have gotten worse in the last few days. The first error message that appears for me is a "Network timeout" type, so the bugs may still be related.

After a bit more testing I'm wondering if YouTube is placing some temporary IP block when it detects FreeTube being used. Just today, I tried immediately watching the same video (that suddenly stopped playing in FreeTube) on YouTube proper, and it had issues starting in a web browser. Meanwhile, starting a different video in FreeTube a few minutes later played fine. It was only after half an hour or so that I could finish watching the original video using FreeTube. Very strange.

RoryTate avatar Dec 24 '25 01:12 RoryTate

Oh that's weird, I don't know how I didn't notice it before... your issue DOES look related to mine, I thought it was the moment when it'd show only the thumbnail as the video reloaded, to continue playing in 360p.

The only difference seems to be that your video actually got to play before it seizes up... whereas for mine, the video didn't even begin playing and stayed at the 0:00 mark.

DoomKrakken avatar Dec 24 '25 19:12 DoomKrakken

Using the latest nightly build (v0.23.12-nightly-6831) has so far seemed to resolve the issue. After leaving many long videos playing for most of the day yesterday the bug didn't reappear. Considering how often the bug was happening the previous day that is a significant change. I'll continue testing and update with my findings.

RoryTate avatar Dec 25 '25 15:12 RoryTate

After several days of playing videos using the nightly build I referenced (v0.23.12-nightly-6831), I haven't had the issue reappear. So I can reasonably conclude that this new version fixes the bug.

RoryTate avatar Dec 30 '25 23:12 RoryTate