FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: SABR constantly reloads the video without buffering behind a SOCKS5 Proxy

Open thyTwilightGoth opened this issue 8 months ago • 24 comments

Guidelines

Describe the bug

When I attempt to load a video while behind a SOCKS5 Proxy SABR countsdown then reloads the video without end.

Expected Behavior

The video buffers and I can play the video.

Issue Labels

content not loading

FreeTube Version

v0.24.0 Beta

Operating System Version

NixOS Unstable

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

v0.23.15 Beta

Upload screenshots or videos

No response

Additional Information

No response

Nightly Build

thyTwilightGoth avatar Apr 01 '26 19:04 thyTwilightGoth

Hi @thyTwilightGoth Please follow same steps as https://github.com/FreeTubeApp/FreeTube/discussions/8917#discussioncomment-16409327 and report back

My Default Quality is 1080p

https://github.com/user-attachments/assets/ccfcd538-4be0-49ca-9df1-f8a44484eb02

thyTwilightGoth avatar Apr 01 '26 19:04 thyTwilightGoth

This issue is also occuring for me in 0.24.0. I've downgraded back to 0.23.15 and videos play like they did previously.

I tried a video without ads in 0.24.0, and it doesn't show the SABR countdown message but still refuses to play, with the buffering icon rapidly flashing in a glitchy manner. I think there may well be some bugs in 0.24.0 (which looks to be a pretty major rewrite) that need ironing out.

Gourlish avatar Apr 01 '26 21:04 Gourlish

Same behaviour for me, with a VPN connected. Videos play as soon as I disconnect the VPN.

Console says:

renderer.js:2 Player Error (category and code explainations here: https://shaka-player-demo.appspot.com/docs/api/shaka.util.Error.html) Video ID: "6QauzLXjFdY" FreeTube player context: "loading dash/audio manifest and setting default quality in mounted"

Severity: CRITICAL (2) Category: undefined (undefined) Code: undefined (undefined) Stack trace: TypeError: Cannot read properties of null (reading 'Ia') at Zf (renderer.js:2:400527) at Object.get [as isAudioOnly] (renderer.js:2:398691) at renderer.js:2:2284392 at renderer.js:2:78021 at renderer.js:2:75828 at renderer.js:2:76012 VZ @ renderer.js:2 Ge @ renderer.js:2 nt @ renderer.js:2

MarcAlainBernard avatar Apr 02 '26 11:04 MarcAlainBernard

Was able to reproduce this too! We'll keep investigating

I'm also having this issue. I did not have this issue in the previous version. Does anyone know how to downgrade?

izzaclippy avatar Apr 02 '26 22:04 izzaclippy

I'm also having this issue. I did not have this issue in the previous version. Does anyone know how to downgrade?

Here's the github URL for the previous version.

https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.23.15-beta

I also had this "SABR infinite reload" error when trying 0.24. A few videos played fine, but several others did not play at all. Going back to 0.23.15 fixed that.

RoryTate avatar Apr 03 '26 02:04 RoryTate

These are my default settings. Issue occurs when I'm on GlobalProtect VPN on my company laptop, without that, works fine. Image

manubhai04 avatar Apr 06 '26 03:04 manubhai04

I experience the same thing when my router (OpenWRT) using PBR redirects the connection through a VPN (it could be Cloudflare, but it also happens with my own VPN). If the PC connects directly to the VPN, the loop doesn't occur; it's something strange."

anakinrpi avatar Apr 09 '26 00:04 anakinrpi

As I mentioned here I enabled LogXMLHttpRequests in the console log and watched what happened at those timestamps when the stalling occurs. And I see a message that says "renderer.js:2 Fetch finished loading: POST "https://.googlevideo.com/videoplayback?" and so on appear exactly once a second until eventually the critical network timeout error occurs. All while the video player runs out of buffered video which can take a few seconds.

Something is wrong with the http requests or the data that is coming back from the Google servers.

No VPN here btw. Maybe it's the ISP but why would they break FreeTube while youtube.com works fine?

Gorrrg avatar May 09 '26 23:05 Gorrrg

I experience the same thing when my router (OpenWRT) using PBR redirects the connection through a VPN (it could be Cloudflare, but it also happens with my own VPN). If the PC connects directly to the VPN, the loop doesn't occur; it's something strange."

In my case, I was able to solve it... I had a routing issue on my router. Some IPs corresponding to Google services were going through the VPN (cloudflare warp), but the *.googlevideo.com domains were being directed through my WAN, which caused a conflict.

anakinrpi avatar Jun 02 '26 23:06 anakinrpi

For me, this SABR reloading stuff has turned FreeTube into an atrocious experience for me that's close to unbearable!

FreeTube gets stuck in a reloading loop for multiple minutes on my end with no VPN and using a VPN doesn't change anything in my case.

Just look at this video:

https://github.com/user-attachments/assets/77a91ca0-1088-45a2-a92f-488e18e02c8f

For me FreeTube is completely unusable until this issue gets fixed somehow.

EyBmY avatar Jun 03 '26 15:06 EyBmY

If you are using CloudFlare WARP, add these to the exemption list:

warp-cli tunnel host add youtube.com
warp-cli tunnel host add www.youtube.com
warp-cli tunnel host add youtu.be
warp-cli tunnel host add googlevideo.com
warp-cli tunnel host add ytimg.com

The SABR message will repeat a number of times. I suspect (but dont know if true) Youtube is attempting for force-preview BUNCH OF ADS prior to the start of the video.

FWIW I also use PiHole, so that may have something to do with it.

Regardless, using the above tunnel exemptions will let ye run WARP and use the Holy Freetube at the same time.

AtomicRobotMan0101 avatar Jun 22 '26 03:06 AtomicRobotMan0101

Hi all, is this specific issue still happening in the latest update, v0.25.2?

Hi everyone, I'm currently working on this issue, and a pull request will be submitted soon.

muzom-142857 avatar Aug 17 '26 12:08 muzom-142857

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Aug 20 '26 00:08 github-actions[bot]

I'm not certain to which issue this belongs, but yes, in 25.2 it still happens that videos get interupted by a SABR reload. And potentially keep reloading every brief moment of video afterwards. I have no idea whether this has anything to do with SOCKS5. I also have no log about it. Let me know exactly how I should prove it is the same issue if you need me to, and I'll try.

Jack-McKalling avatar Aug 20 '26 06:08 Jack-McKalling

@Jack-McKalling this is about infinite reload issue, like seen in https://github.com/FreeTubeApp/FreeTube/issues/8932#issuecomment-4172422301. Do you have this exact issue?

With the situation I experienced, the reloading/backoff timers were separated by some seconds/minute of video playback. So not looping without any playback as in that comment, no. And after a couple of reloading I got the "ytcfg" error persistently.

Jack-McKalling avatar Aug 20 '26 07:08 Jack-McKalling

@Jack-McKalling there is hopefully an update coming out pretty soon so ill get back to you then