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: crashes when pressing the gear icon in video player with spoof version on #23

Open
3 tasks done
jpa102 opened this issue Apr 1, 2024 · 3 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@jpa102
Copy link

jpa102 commented Apr 1, 2024

Type

Error at runtime

Bug description

yt revanced crashes whenever i press the gear icon inside the video player (e.g: adjusting video quality) or is it just me?
this occurs when i spoof above the base version 16.40.36 which is already gone and gives out error 400 (this does not happen when i used to spoof below the original version, currently using 17.33.42 version to spoof)

Steps to reproduce

  1. spoof to 17.33.42 or higher
  2. go to any video
  3. press gear icon

Relevant log output

m12:/ $ logcat | grep AndroidRuntime
04-01 15:13:58.725 15713 15733 E AndroidRuntime: FATAL EXCEPTION: McsHandler
04-01 15:13:58.725 15713 15733 E AndroidRuntime: Process: com.mgoogle.android.gms:persistent, PID: 15713
04-01 15:13:58.725 15713 15733 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.NetworkInfo.getTypeName()' on a null object reference
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at org.microg.gms.gcm.McsService.connect(Unknown Source:46)
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at org.microg.gms.gcm.McsService.handleMessage(Unknown Source:279)
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
04-01 15:13:58.725 15713 15733 E AndroidRuntime:        at org.microg.gms.gcm.McsService$HandlerThread.run(Unknown Source:85)
04-01 15:14:05.417 16036 16052 E AndroidRuntime: FATAL EXCEPTION: McsHandler
04-01 15:14:05.417 16036 16052 E AndroidRuntime: Process: com.mgoogle.android.gms:persistent, PID: 16036
04-01 15:14:05.417 16036 16052 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.NetworkInfo.getTypeName()' on a null object reference
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at org.microg.gms.gcm.McsService.connect(Unknown Source:46)
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at org.microg.gms.gcm.McsService.handleMessage(Unknown Source:279)
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
04-01 15:14:05.417 16036 16052 E AndroidRuntime:        at org.microg.gms.gcm.McsService$HandlerThread.run(Unknown Source:85)
04-01 15:14:06.876 16132 16177 E AndroidRuntime: FATAL EXCEPTION: McsHandler
04-01 15:14:06.876 16132 16177 E AndroidRuntime: Process: com.mgoogle.android.gms:persistent, PID: 16132
04-01 15:14:06.876 16132 16177 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.NetworkInfo.getTypeName()' on a null object reference
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at org.microg.gms.gcm.McsService.connect(Unknown Source:46)
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at org.microg.gms.gcm.McsService.handleMessage(Unknown Source:279)
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
04-01 15:14:06.876 16132 16177 E AndroidRuntime:        at org.microg.gms.gcm.McsService$HandlerThread.run(Unknown Source:85)

04-01 19:32:28.278  5269  5269 D AndroidRuntime: Shutting down VM
04-01 19:32:28.282  5269  5269 E AndroidRuntime: FATAL EXCEPTION: main
04-01 19:32:28.282  5269  5269 E AndroidRuntime: Process: app.rvx.android.youtube, PID: 5269
04-01 19:32:28.282  5269  5269 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at nwl.aH(PG:8)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at akfb.mj(PG:5)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at cd.lO(PG:3)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at bv.lO(PG:1)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at di.c(PG:16)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at di.e(PG:201)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at dc.at(PG:112)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at dc.av(PG:11)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at dc.G(PG:3)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at bf.d(PG:2)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at bv.qq(PG:4)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at com.google.android.apps.youtube.app.watch.bottomsheet.PlayerOverflowBottomSheetController.h(PG:9)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at com.google.android.apps.youtube.app.watch.bottomsheet.PlayerOverflowBottomSheetController.g(PG:1)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at kwl.onClick(PG:2)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.view.View.performClick(View.java:7892)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.view.View.performClickInternal(View.java:7869)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:30891)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:942)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8762)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
04-01 19:32:28.282  5269  5269 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
04-01 19:38:02.005 16647 16647 D AndroidRuntime: Shutting down VM
04-01 19:38:02.023 16647 16647 E AndroidRuntime: FATAL EXCEPTION: main
04-01 19:38:02.023 16647 16647 E AndroidRuntime: Process: app.rvx.android.youtube, PID: 16647
04-01 19:38:02.023 16647 16647 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at nwl.aH(PG:8)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at akfb.mj(PG:5)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at cd.lO(PG:3)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at bv.lO(PG:1)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at di.c(PG:16)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at di.e(PG:201)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at dc.at(PG:112)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at dc.av(PG:11)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at dc.G(PG:3)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at bf.d(PG:2)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at bv.qq(PG:4)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at com.google.android.apps.youtube.app.watch.bottomsheet.PlayerOverflowBottomSheetController.h(PG:9)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at com.google.android.apps.youtube.app.watch.bottomsheet.PlayerOverflowBottomSheetController.g(PG:1)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at kwl.onClick(PG:2)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.view.View.performClick(View.java:7892)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.view.View.performClickInternal(View.java:7869)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:30891)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:942)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:226)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:313)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8762)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
04-01 19:38:02.023 16647 16647 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Screenshots or videos

No response

Solution

No response

Additional context

the log mentions com.mgoogle.android.gms, which is the vanced microg that i have installed before patching to latest version, so bugs "may" be different

the base 16.40.36 isn't just built to handle layouts from 17.33.42 and above, so maybe that causes the issue
other issues include when spoofing:

  • unclickable videos when signed in
  • recently watched videos preview don't render in library
  • community posts can't be liked in home page (and possibly in watch page action buttons when installed in android 13) (probably requires the new like icon animation)
  • dislike counter doesn't appear and look just like in official revanced
  • explore button doesn't appear in the snackbar
  • partially broken shorts player

Device Environment

android 5, oppo a37fw (main)
android 13, samsung m12 (secondary)

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
@jpa102 jpa102 added the bug Something isn't working label Apr 1, 2024
@d4n3436
Copy link
Owner

d4n3436 commented Apr 1, 2024

This is a known issue that occurs when spoofing to version 17.06.34+

dislike counter doesn't appear and look just like in official revanced

This definitely works

@Nehalemna
Copy link

Same issue and it stops after playing for 1min

@jpa102
Copy link
Author

jpa102 commented Apr 2, 2024

oh okay, it now shows in the latest patch. like i said, i made this issue before patching to latest version so it may be different now

now the only problem that i see is that the dislike counts disappear after pressing the like button (like it completely disappears without showing back up unlike in kitadai's version), i would attach videos but it's a pain for me to record and attach them here without resorting to 3rd party file hosts and trying to meet the 10mb file size mark. but i'll try doing that later

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

No branches or pull requests

4 participants
@d4n3436 @Nehalemna @jpa102 and others