Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: (youtube/spoof-storyboard) seekbar thumbnails may be empty or of a previous video #31

Closed
3 tasks done
n1cKz1 opened this issue Dec 6, 2023 · 16 comments · Fixed by ReVanced/revanced-patches-template#3358
Labels
Bug report Something isn't working

Comments

@n1cKz1
Copy link

n1cKz1 commented Dec 6, 2023

Bug description

When old seekbar thumbnails are enabled, sometimes storyboard fails to fetch properly and as a result an empty thumbnail preview is shown. So far, I've noticed this usually only occurs on the first video watched after launching the app. If you watch another video after that, it starts to work properly.

Screenshot_2023-12-06-08-17-00-948_app revanced android youtube

Steps to repro:

  1. Force close YouTube just to be sure and open it again
  2. Click on a video
  3. Try seeking, solid chance thumbnails will be empty. If not, try again from step 1 till that happens.

Acknowledgements

  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@n1cKz1 n1cKz1 added the Bug report Something isn't working label Dec 6, 2023
@LisoUseInAIKyrios
Copy link
Contributor

When this happens, does it show a timeout toast?

If so then this is not the same as 3370. The connection timeout could be increased, since the app can wait any amount of time for the fetch to completely (the main thread is not blocked).

@n1cKz1
Copy link
Author

n1cKz1 commented Dec 6, 2023

Nope it doesn't

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Dec 6, 2023

It's possible the first storyboard call is somehow returning an 'ok' playability status, but sometimes it is missing the storyboard data.

If this is true, then this issue did not show up in old releases because the client would always try the android tv backup API and that always works for these situations.

This might might be fixed by changing the 'empty storyboard ' logic to only be used if the android tv response is also missing the storyboard.

Will make a PR with this change soon.

If anyone wants to, they can try patching with CLI and the prior release, and verify they don't have this issue:

https://github.com/ReVanced/revanced-patches/releases/tag/v2.201.0
https://github.com/ReVanced/revanced-integrations/releases/tag/v0.124.0

@n1cKz1
Copy link
Author

n1cKz1 commented Dec 6, 2023

I'm 99% certain this issue also occured on v2.201.0

@LisoUseInAIKyrios
Copy link
Contributor

I'm 99% certain this issue also occured on v2.201.0

You can try using it and be 100% certain if the issue does exist.

@n1cKz1
Copy link
Author

n1cKz1 commented Dec 6, 2023

I'm 99% certain this issue also occured on v2.201.0

Yes, just tested 2.201.0 on another device.

@n1cKz1 n1cKz1 changed the title bug: (youtube/spoof-storyboard) seekbar thumbnails may be empty sometimes bug: (youtube/spoof-storyboard) seekbar thumbnails may be empty or of a previous video Dec 7, 2023
@n1cKz1
Copy link
Author

n1cKz1 commented Dec 7, 2023

I also just got a bug where the thumbnails were that of a previous video. Tried to reproduce it to no avail, happened kinda randomly. But perhaps it might be the same issue with empty thumbnails only instead this time it had already loaded those of the previous video and kept them instead after it couldn't properly fetch the new ones

@LisoUseInAIKyrios
Copy link
Contributor

@n1cKz1 use CLI tools and install this release. Anyone else who experiences this issue can also try:

https://github.com/ReVanced/revanced-integrations/releases/tag/v0.122.0
https://github.com/ReVanced/revanced-patches/releases/tag/v2.197.0

This prior release has a different issue where the video can initially be frozen while the audio plays, but ignore that and verify if the wrong/missing thumbnails is fixed.

If this fixes it, then the issue is the renderer is being called for before the player response has finished fetching. That causes it to use no thumbnails (on first video load after cold app start), or it uses the prior video thumbnails.

@LisoUseInAIKyrios LisoUseInAIKyrios added the Waiting on author Further information is requested label Dec 7, 2023
@n1cKz1
Copy link
Author

n1cKz1 commented Dec 7, 2023

That seems to be it yes. Messed around for a few mins and I can't seem to reproduce the bug on that version.

@LisoUseInAIKyrios LisoUseInAIKyrios removed the Waiting on author Further information is requested label Dec 7, 2023
@LisoUseInAIKyrios
Copy link
Contributor

The seekbar thumbnails can initially be empty until the thumbnail images are loaded. But then after the video is playing for a bit (up to 30 seconds or so) the thumbnails show up correctly. Stock YouTube has this same issue.

But if the thumbnails never show up then it's a bug.

And showing the previous video thumbnails is wrong and definitely a bug.

@oSumAtrIX
Copy link
Member

And showing the previous video thumbnails is wrong and definitely a bug.

What could be happening is that loading the thumbnails fails. Thus, the field that saves it is not being overwritten. In this case, the thumbnails of the previous video are shown in the current one.

@n1cKz1
Copy link
Author

n1cKz1 commented Dec 7, 2023

But if the thumbnails never show up then it's a bug.

When this bug occurs and it's the first video they are empty and never show no matter what. I have to exit the video and reload it or just watch another video for it to fix

@LisoUseInAIKyrios
Copy link
Contributor

@n1cKz1 The issue may be fixed on dev.

Can you try repatching using the latest dev release?

https://github.com/ReVanced/revanced-patches/releases/tag/v3.0.0-dev.7
https://github.com/ReVanced/revanced-integrations/releases/tag/v1.0.0-dev.7

@n1cKz1
Copy link
Author

n1cKz1 commented Dec 9, 2023

Looks to be fixed

@Domiiniik

This comment was marked as spam.

@LisoUseInAIKyrios
Copy link
Contributor

With a computer and CLI tools. Search for guides.

@oSumAtrIX oSumAtrIX transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@revanced-bot revanced-bot transferred this issue from another repository Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants