Make SabrSchemePlugin more robust - #9753
Conversation
efb4f5ff-1298-471a-8973-3d47447115dc
left a comment
There was a problem hiding this comment.
Please fix the linter errors
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
d9d1be7 to
5de7a72
Compare
Added guards for some rare situations causing video playback to hang. closes FreeTubeApp#9726
Head branch was pushed to by a user without write access
5de7a72 to
cefca68
Compare
|
Fixed it |
|
Please provide some screenshots on the "some rare situations causing video playback to hang" Edit 1: Maybe some custom code for debug message should be added to a custom build to indicates the issue and the states and also confirm the fixes are "working" (new codes are run, via console messages and maybe also toasts) |
For screenshots look at the bug report issue #9726 .
I was thinking about that too. It would need to be at least a toast so I notice it. Console message will just drown in a see of messages and I'm not willing to check logs after every video I watch. I usually start a video in a new window and close that afterwards. So habit will make this hard for me. I was thinking about automatically writing the log to the filesystem so I can grep for the prove later. If you want to help me with that or how to display a toast from thoses lines I touched, I would give it a try. I have no idea how I would do that. But frankly speaking I'll just use this patch in my custom build and don't care that much about it going upstream. I just try to give something back here. It's also a quite small change which doesn't really change behavior for cases in which the data is well behaved. So if you are fine with not checking for e.g. an empty URL or "touching properties of undefined" and error-ing out with an endless spinner in that case, so be it. |
|
For debug messaging let me work on some code later (but probably not file writing coz it has to go through main process and takes too much effort as a debug SABR is a blackbox so while the fix works for you we still want to see more details to understand more about it (the states causing the issues at least) I will also include this after I added some debug code and see if I can reproduce them too |
|
Got some debug code in https://github.com/PikachuEXE/FreeTube/tree/b2ag-patch-9726-debug Feel free to add/edit as you like and run in your custom build and post screenshots of those debug messages Update 1: (Left |

Add guards for some rare situations causing video playback to hang.
Pull Request Type
Related issue
closes #9726
Description
The changes are adding some guards for some rare situations causing video playback to hang. Should make SabrSchemePlugin more robust.
One point for discussion might be: what to do with an empty url on a redirect request? Just ignore the whole thing (what this change does)? Or skip setting the empty url but do
shouldRetry = trueso it retries the old url I guess (what v0.25.2 did)?Testing
Desktop