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

App freeze #1276

Open
1 of 3 tasks
Lorenzo282 opened this issue Aug 31, 2024 · 6 comments
Open
1 of 3 tasks

App freeze #1276

Lorenzo282 opened this issue Aug 31, 2024 · 6 comments
Labels
Bug Something isn't working Core Youtube

Comments

@Lorenzo282
Copy link

Lorenzo282 commented Aug 31, 2024

What happened?

Idk wether it's youtube or app itself but whenever I lose internet connection for more than 30sec circa I have to either restart the video or the whole app because it freezes and it's annoying. And it also happens when my phone switches automatically between wi-fi and mobile data, especially from wi-fi to mobile data.

Grayjay Version

253

What plugins are you seeing the problem on?

Youtube

Plugin Version

194

When do you experience the issue?

  • While logged in
  • While logged out
  • N/A

Relevant log output

No response

@usertoroot
Copy link
Contributor

usertoroot commented Sep 4, 2024

@Lorenzo282

Been trying to reproduce this I did the following:

  1. On WiFi start a video
  2. Switch off WiFi and switch to cellular
  3. Watch the video to see if any issues happen (tried for 5-10 minutes)

I was not able to reproduce. Can you please let us know which device you are using and which android version?

@Lorenzo282
Copy link
Author

Lorenzo282 commented Sep 4, 2024

Pixel 6a android 14
I have noticed that it only happens with mp4 version, when I choose webm I have no problems

@support-grayjay support-grayjay added Bug Something isn't working Core labels Oct 30, 2024
@support-grayjay
Copy link

@Lorenzo282 apologies for the late reply. Are you still experiencing the same issue on the latest version of Grayjay?

@Lorenzo282
Copy link
Author

Lorenzo282 commented Oct 30, 2024 via email

@eightys3v3n
Copy link

eightys3v3n commented Dec 27, 2024

More information that I think is related to this. Please let me know if I should open a separate issue or whether it can be worked on with this issue.

Download a video, close GrayJay entirely, block GrayJay's internet access somehow (see below), open GrayJay and attempt to play the downloaded video. When I perform this, the video starts playing in the background but GrayJay remains frozen indefinitely.

I have tried the following methods to block GrayJay internet access:

  • use parental controls on the router to block all network traffic but keep the phone connected to the WiFi so it thinks it has a network connection.
  • throttle cellular data down to tens of kbps with no WiFi.
  • use an Android firewall to block GrayJay access (NetGuard).

There appears to be some network call happening that blocks the entire interface until it responds. This network call also seems to never timeout given that the app usually never becomes responsive again for me. The selected video will keep playing indefinitely if it was using an offline copy, but the interface is frozen and Android asks to kill GrayJay.

I assume this is the same thing occurring in the issue mentioned above; the internet connection switches and GrayJay continues to wait for the response from the old internet connection rather than giving up and trying to make the request again. Then if it never gets a response (connection reports as up but never works, or Android switched to a new connection and disabled the old one) GrayJay never gets over it and the interface is blocked by this waiting connection attempt.

My issue can be bypassed by shutting off cellular and WiFi (so there is no internet access reported by Android), open GrayJay and start playing a video, then re-enable cellular and WiFi. GrayJay will continue to work until for at least the rest of that video as it seems to not make that request that freezes the interface while a video is already playing.
This doesn't resolve the connection switching issue though.

@Lorenzo282
Copy link
Author

Lorenzo282 commented Dec 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Youtube
Projects
None yet
Development

No branches or pull requests

4 participants