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 crashes when changing wifi hotspot #1677

Closed
2 of 3 tasks
geugenm opened this issue Nov 29, 2022 · 0 comments
Closed
2 of 3 tasks

bug: Youtube crashes when changing wifi hotspot #1677

geugenm opened this issue Nov 29, 2022 · 0 comments
Labels
Bug report Something isn't working

Comments

@geugenm
Copy link

geugenm commented Nov 29, 2022

Type

Error at runtime

Bug description

While watching videos, I sometimes switch WiFi hotspots and when connection to another point established Youtube crashes

Steps to reproduce

Step 1. Start watching video
Step 2. Without leaving YouTube change the wifi hotspot (via notification center)
Step 3. Youtube crashes

Relevant log output

--------- beginning of crash
11-20 17:30:28.098  7485  7485 E AndroidRuntime: FATAL EXCEPTION: main
11-20 17:30:28.098  7485  7485 E AndroidRuntime: Process: app.revanced.manager.flutter, PID: 7485
11-20 17:30:28.098  7485  7485 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=212, result=-1, data=null} to activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4587)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4619)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2173)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:236)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8043)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:620)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1011)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=212, result=-1, data=null} to activity {app.revanced.manager.flutter/app.revanced.manager.flutter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5181)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4574)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	... 11 more
11-20 17:30:28.098  7485  7485 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.app.Activity.getPackageManager()' on a null object reference
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at com.baseflow.permissionhandler.PermissionManager.onActivityResult(PermissionManager.java:78)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:805)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:428)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:807)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:724)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.Activity.dispatchActivityResult(Activity.java:8516)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5174)
11-20 17:30:28.098  7485  7485 E AndroidRuntime: 	... 12 more
--------- beginning of system
11-26 21:55:17.103 31038 31038 I Timeline: Timeline: Activity_launch_request time:278720444
11-26 21:56:49.098 31038 31038 I Timeline: Timeline: Activity_launch_request time:278812439
11-26 21:57:25.805 31038 31094 W BpBinder: Slow Binder: BpBinder transact took 390ms, interface=android.net.IConnectivityManager, code=6 oneway=false
--------- beginning of main
11-27 15:37:57.374  6052  6052 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@be3a024, this = DecorView@a8e578d[MainActivity]
11-27 15:37:57.383  6052  6052 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@be3a024, this = DecorView@a8e578d[MainActivity]
11-27 15:37:57.396  6052  6077 I GED     : [GT]_get_procNameprocess pid(6052)
11-27 15:37:57.397  6052  6077 I GED     : [GT]_getprocess name(app.revanced.manager.flutter)
11-27 15:37:57.397  6052  6077 I manager.flutte: [GT] ret(1) gt_status(00000000) aniso_debug_level(0) gt_aniso_max_level(16) ani so mask(00000001) tri mask(00000002)
11-27 15:37:57.397  6052  6077 I libMEOW_gift: ctx:0xb400007250f07f78, ARC not Enabled.
11-27 15:38:14.417  6131  6131 W sh      : type=1400 audit(0.0:466928): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.433  6131  6131 W sh      : type=1400 audit(0.0:466929): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.441  6131  6131 W sh      : type=1400 audit(0.0:466930): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.453  6131  6131 W sh      : type=1400 audit(0.0:466931): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.457  6131  6131 I chatty  : uid=10596(app.revanced.manager.flutter) /system/bin/sh identical 1 line
11-27 15:38:14.465  6131  6131 W sh      : type=1400 audit(0.0:466933): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.473  6131  6131 W sh      : type=1400 audit(0.0:466934): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:14.477  6131  6131 W sh      : type=1400 audit(0.0:466935): avc: denied { read } for name="/" dev="sdc40" ino=2 scontext=u:r:untrusted_app:s0:c84,c258,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-27 15:38:24.794  6052  6052 I Timeline: Timeline: Activity_launch_request time:303109168
11-27 15:38:26.210  6052  6052 V PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@be3a024, this = DecorView@a8e578d[MainActivity]
11-27 15:38:26.223  6052  6077 I GED     : ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 27, oppidx_max 27, oppidx_min 0
11-27 15:38:29.085  6052  6052 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@be3a024, this = DecorView@a8e578d[MainActivity]
11-27 15:38:29.086  6052  6052 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@be3a024, this = DecorView@a8e578d[MainActivity]
11-27 15:38:29.171  6052  6052 D CrFileSaverPlugin: Saved file /document/149 via dialog
11-27 15:38:29.179  6052  6052 E libc    : Access denied finding property "ro.vendor.pref_scale_resolution"
11-27 15:38:29.182  6052  6052 D CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10596; state: ENABLED
11-27 15:38:29.190  6052  6052 D ViewRootImpl[Toast]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
11-27 15:38:29.200  6052  6052 I InputTransport: Create ARC handle: 0xb4000071da5e9760
11-27 15:38:29.201  6052  6052 I Toast   : Show toast from OpPackageName:app.revanced.manager.flutter, PackageName:app.revanced.manager.flutter

Screenshots or videos

No response

Solution

No response

Additional context

Reproduced on MIUI 12.5.3 (Xiaomi Redmi Note 8 pro) on Android 11 RP1A.200720.011 on manager 0.0.40. Used revanced manager - 17.43.36. Installation type: root.

Patches applied: { "com.google.android.youtube":["disable-fullscreen-panels","disable-startup-shorts-player","downloads","general-ads","hide-endscreen-cards","hide-info-cards","hide-my-mix","hide-shorts-button","hide-watch-in-vr","hide-watermark","minimized-playback","premium-heading","return-youtube-dislike","sponsorblock","video-ads","hide-crowdfunding-box","hide-create-button","hide-cast-button","disable-auto-player-popup-panels","custom-video-speed","custom-video-buffer","client-spoof"]}

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.
@geugenm geugenm added the Bug report Something isn't working label Nov 29, 2022
@revanced-bot revanced-bot transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@oSumAtrIX oSumAtrIX transferred this issue from another repository Dec 14, 2023
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.166.0-dev.1](ReVanced/revanced-patches@v2.165.1...v2.166.0-dev.1) (2023-03-14)

### Bug Fixes

* **backdrops/pro-unlock:** constrain to most recent working app version ([ReVanced#1677](ReVanced/revanced-patches#1677)) ([7680838](ReVanced/revanced-patches@06088a1))
* **instagram/hide-timeline-ads:** fix compatibility with newer versions ([ReVanced#1672](ReVanced/revanced-patches#1672)) ([b803e3e](ReVanced/revanced-patches@c40b732))
* **twitch:** misspelling annotations ([675c970](ReVanced/revanced-patches@cb0b8ad))
* **youtube/general-ads:** remove duplicate preference ([89820c6](ReVanced/revanced-patches@c7c7af8))
* **youtube/return-youtube-dislike:** add missing strings ([19047b6](ReVanced/revanced-patches@371256e))

### Features

* **myexpenses/unlock-pro:** constrain to last working version ([f68c87b](ReVanced/revanced-patches@4bc379a))
* **reddit:** add more compatibility constraints ([65e5c26](ReVanced/revanced-patches@b788d59))
* **reddit:** bump compatibility to `2023.09.1` ([ReVanced#1729](ReVanced/revanced-patches#1729)) ([c8997e8](ReVanced/revanced-patches@d261ff2))
* **twitch:** constraint compatibility to `14.6.1` ([ReVanced#1736](ReVanced/revanced-patches#1736)) ([7d4294f](ReVanced/revanced-patches@dff7728))
* **youtube/custom-video-buffer:** replace patch with removal notice ([ReVanced#1718](ReVanced/revanced-patches#1718)) ([29f952d](ReVanced/revanced-patches@38536fd))
* **youtube/disable-player-popup-panels:** use better patch description ([7150662](ReVanced/revanced-patches@4d0ace5))
* **youtube/general-ads:** do not hide components in library tab ([d56d3bd](ReVanced/revanced-patches@2e2442a))
* **youtube/general-ads:** hide image shelf from search results ([e4c2450](ReVanced/revanced-patches@5894976))
* **youtube/hide-autoplay-button:** do not disable autoplay button when hidden ([98d0084](ReVanced/revanced-patches@1e84017))
* **youtube:** `hide-floating-microphone-button` patch ([8f33b11](ReVanced/revanced-patches@156f690))
* **youtube:** bump compatibility to `18.05.40` ([ReVanced#1704](ReVanced/revanced-patches#1704)) ([77fe23b](ReVanced/revanced-patches@05a5929))
* **youtube:** bump compatibility to `18.05.40` ([ReVanced#1743](ReVanced/revanced-patches#1743)) ([1090388](ReVanced/revanced-patches@5ce0b76))
* **youtubevanced:** `general-ads` patch ([ReVanced#1693](ReVanced/revanced-patches#1693)) ([b6ca3b4](ReVanced/revanced-patches@e9ab294))
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.166.0](ReVanced/revanced-patches@v2.165.1...v2.166.0) (2023-03-14)

### Bug Fixes

* **backdrops/pro-unlock:** constrain to most recent working app version ([ReVanced#1677](ReVanced/revanced-patches#1677)) ([7680838](ReVanced/revanced-patches@06088a1))
* **instagram/hide-timeline-ads:** fix compatibility with newer versions ([ReVanced#1672](ReVanced/revanced-patches#1672)) ([b803e3e](ReVanced/revanced-patches@c40b732))
* **twitch:** misspelling annotations ([675c970](ReVanced/revanced-patches@cb0b8ad))
* **youtube/general-ads:** remove duplicate preference ([89820c6](ReVanced/revanced-patches@c7c7af8))
* **youtube/return-youtube-dislike:** add missing strings ([19047b6](ReVanced/revanced-patches@371256e))

### Features

* **myexpenses/unlock-pro:** constrain to last working version ([f68c87b](ReVanced/revanced-patches@4bc379a))
* **reddit:** add more compatibility constraints ([65e5c26](ReVanced/revanced-patches@b788d59))
* **reddit:** bump compatibility to `2023.09.1` ([ReVanced#1729](ReVanced/revanced-patches#1729)) ([c8997e8](ReVanced/revanced-patches@d261ff2))
* **twitch:** constraint compatibility to `14.6.1` ([ReVanced#1736](ReVanced/revanced-patches#1736)) ([7d4294f](ReVanced/revanced-patches@dff7728))
* **youtube/custom-video-buffer:** replace patch with removal notice ([ReVanced#1718](ReVanced/revanced-patches#1718)) ([29f952d](ReVanced/revanced-patches@38536fd))
* **youtube/disable-player-popup-panels:** use better patch description ([7150662](ReVanced/revanced-patches@4d0ace5))
* **youtube/general-ads:** do not hide components in library tab ([d56d3bd](ReVanced/revanced-patches@2e2442a))
* **youtube/general-ads:** hide image shelf from search results ([e4c2450](ReVanced/revanced-patches@5894976))
* **youtube/hide-autoplay-button:** do not disable autoplay button when hidden ([98d0084](ReVanced/revanced-patches@1e84017))
* **youtube:** `hide-floating-microphone-button` patch ([8f33b11](ReVanced/revanced-patches@156f690))
* **youtube:** bump compatibility to `18.05.40` ([ReVanced#1704](ReVanced/revanced-patches#1704)) ([77fe23b](ReVanced/revanced-patches@05a5929))
* **youtube:** bump compatibility to `18.05.40` ([ReVanced#1743](ReVanced/revanced-patches#1743)) ([1090388](ReVanced/revanced-patches@5ce0b76))
* **youtubevanced:** `general-ads` patch ([ReVanced#1693](ReVanced/revanced-patches#1693)) ([b6ca3b4](ReVanced/revanced-patches@e9ab294))
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

No branches or pull requests

2 participants