revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

bug: after any patch YouTube doesn't launch

Open asamofal opened this issue 2 years ago • 17 comments

Type

Error at runtime

Bug description

Patching looks fine (just one patch selected). Installation via root method looks fine too but then the app can't be launched, just crashed at the start.

Any ideas?

Steps to reproduce

  1. Patch Youtube with any single patch and install.
  2. Launch the app.

Android version

12

Manager version

0.0.39

Target package name

YouTube

Target package version.

17.43.36

Installation type

Root

Patches selected.

Any.

Device logs (exported using Manager settings).

time: 1667937841737
device fp:OnePlus/OnePlus5T/OnePlus5T:10/QKQ1.191014.012/2010292059:user/release-keys
product board:msm8998
derpfest vers:12-Official-Shinju-dumpling-20220814
msg: ehd: libelements.so
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.youtube/com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity}: java.lang.RuntimeException: EntityStore failed loading from .so
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3707)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7866)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:550)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.RuntimeException: EntityStore failed loading from .so
	at vbs.d(PG:4)
	at vbs.a(PG:1)
	at flc.b(PG:1)
	at flc.<init>(PG:1)
	at ffg.j(PG:1)
	at equ.o(PG:76)
	at equ.a(PG:39)
	at arjc.a(PG:1)
	at equ.o(PG:81)
	at equ.a(PG:39)
	at equ.o(PG:82)
	at equ.a(PG:39)
	at arjc.a(PG:1)
	at epq.e(PG:18)
	at epq.a(PG:32)
	at arjc.a(PG:1)
	at epq.b(PG:75)
	at epq.a(PG:43)
	at arjc.a(PG:1)
	at epq.b(PG:9)
	at epq.a(PG:43)
	at arjc.a(PG:1)
	at epq.m(PG:60)
	at epq.a(PG:38)
	at arjc.a(PG:1)
	at epq.m(PG:61)
	at epq.a(PG:38)
	at arjc.a(PG:1)
	at epq.o(PG:91)
	at epq.a(PG:36)
	at arjc.a(PG:1)
	at com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity.o(PG:22)
	at jln.a(PG:38)
	at qt.onCreate(PG:3)
	at bu.onCreate(PG:1)
	at fam.onCreate(PG:8)
	at lja.onCreate(PG:1)
	at com.google.android.apps.youtube.app.watchwhile.WatchWhileActivity.onCreate(PG:4)
	at android.app.Activity.performCreate(Activity.java:8057)
	at android.app.Activity.performCreate(Activity.java:8037)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1347)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
	... 12 more
Caused by: ehd: libelements.so
	at epc.I(PG:51)
	at tmy.am(PG:7)
	at esd.a(PG:1)
	at agqf.e(PG:8)
	at agqf.f(PG:5)
	at agqf.c(PG:1)
	at ogh.a(PG:1)
	at vbo.<init>(PG:1)
	at vbw.<init>(PG:6)
	at vbs.g(PG:4)
	at vbs.d(PG:1)
	at vbs.a(PG:1)
	at flc.b(PG:1)
	at flc.<init>(PG:1)
	at ffg.j(PG:1)
	at equ.o(PG:76)
	at equ.a(PG:39)
	at arjc.a(PG:1)
	at equ.o(PG:81)
	at equ.a(PG:39)
	at equ.o(PG:82)
	at equ.a(PG:39)
	at arjc.a(PG:1)
	at icp.<init>(PG:2)
	at icd.g(PG:1)
	at equ.d(PG:49)
	at equ.a(PG:39)
	at arjc.a(PG:1)
	at ese.run(PG:151)
	at tma.run(PG:7)
	at ocy.run(PG:5)
	at odc.run(PG:23)
	at nlt.run(PG:33)
	at com.google.android.apps.youtube.embeddedplayer.service.jar.client.s.run(PG:15)
	at java.lang.Thread.run(Thread.java:1013)


### Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].

```shell
Initializing installer
Creating working directory
Copying original apk
Unpacking input apk
Reading dex files
Decoding AndroidManifest.xml only, because resources are not needed
Merging integrations
Deleting existing resource cache directory
Decoding resources
Executing all patches
Executing 'integrations' of type: bytecode
Skipping 'integrations' because it has already been applied
Executing 'locale-config-fix' of type: resource
Executing 'resource-mapping' of type: resource
Executing 'settings-resource-patch' of type: resource
Executing 'settings' of type: bytecode
Skipping 'integrations' because it has already been applied
Skipping 'integrations' because it has already been applied
Executing 'video-information' of type: bytecode
Skipping 'settings' because it has already been applied
Skipping 'integrations' because it has already been applied
Executing 'video-id-hook' of type: bytecode
Executing 'fix-playback' of type: resource
Executing 'video-ads' of type: bytecode
Applied video-ads
Skipping 'settings' because it has already been applied
Applied settings
Repacking patched apk
Compiling resources
Creating new dex file
Writing modified dex files
Finished!
Installing patched file using root method
Installed!


### Screenshots or videos

_No response_

### Solution

_No response_

### Additional context

_No response_

### Acknowledgements

- [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
- [X] I have written a short but informative title.
- [X] I filled out all of the requested information in this issue properly.
- [X] The issue is related solely to the ReVanced Manager

asamofal avatar Nov 08 '22 20:11 asamofal

i'm having the same issue using revanced manager 0.0.39 and youtube 17.43.36.

I'm rooted and every time i try the root version everything looks like it works, but youtube keeps crashing. I'm running android 11 on a rooted asus zenfone 6. Is there something I'm missing, or is the root method broken?

briantho avatar Nov 08 '22 22:11 briantho

I got it too with the MicroG method, cannot launch. Might be some error with the new version, the 17.36.37 one I patched before works until I try the latest version this happened.

howarddo2208 avatar Nov 09 '22 06:11 howarddo2208

The same situation on rooted Xiaomi Redmi Note 8 Pro with 0.0.39 manager and 17.43.36 version of YouTube on Android 11.

geugenm avatar Nov 09 '22 13:11 geugenm

I had the same issue if I installed YouTube from Google Play, but worked fine if I downloaded the apk from ApkPure.

zeko9381 avatar Nov 09 '22 21:11 zeko9381

SAME HERE

dr3mro avatar Nov 09 '22 22:11 dr3mro

Yeah YouTube revenge doesn't open (Samsung s21 Fe)

Jeff9369 avatar Nov 09 '22 22:11 Jeff9369

Yeah, pixel art experience 21.1 on mi 11lite5g

On Thu, Nov 10, 2022, 12:55 AM Jeff9369 @.***> wrote:

Yeah YouTube revenge doesn't open (Samsung s21 Fe)

— Reply to this email directly, view it on GitHub https://github.com/revanced/revanced-manager/issues/491#issuecomment-1309499270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJQHCJNNV4HSQQTZKVI5NLWHQTUZANCNFSM6AAAAAAR2WXHL4 . You are receiving this because you commented.Message ID: @.***>

dr3mro avatar Nov 09 '22 22:11 dr3mro

Try updating YouTube via APKPure, enable experimental patches in revanced and then delete the keystore, logs and temp directory

After weeks of not being able to patch even the recommended version of YT, now for unknown reasons after the above steps, suddenly the latest version works (even though it's not the recommended version)

Root install

BRUHItsABunny avatar Nov 10 '22 02:11 BRUHItsABunny

Enabling experimental patches confirmed to work! I took no other steps BRUHItsABunny listed

boehs avatar Nov 10 '22 21:11 boehs

I also had the same exact problem. Experimental patches worked for me too!

donmega avatar Nov 10 '22 21:11 donmega

Experimental patches do not resolve it for me

matthoendorf avatar Nov 12 '22 22:11 matthoendorf

Experimental patches do not resolve it for me

same for me. experimental patches don't work. also, are you using root method, or regular install?

I only tried the root method. does the regular install work?

briantho avatar Nov 13 '22 21:11 briantho

Experimental patches don't solve the problem for me too (with the PlayMarket version of Youtube, root method).

asamofal avatar Nov 14 '22 08:11 asamofal

I fixed it by:

  1. Installing the apk from here
  2. Enabling experimental patches
  3. Patching and installing as root.

Y-T-G avatar Nov 16 '22 06:11 Y-T-G

I got it too with the MicroG method, cannot launch. Might be some error with the new version, the 17.36.37 one I patched before works until I try the latest version this happened.

By the way, the newer version 17.45.36 also works.

h-lunah avatar Nov 28 '22 06:11 h-lunah

I also have this issue with Patcher 0.0.42, patches v2.130.0 and You Tube v17.45.36(Recommended by patcher).

But this issue happens only with patching You Tube having Split apks, after I selected single universal apk that I downloaded from apkmirror solved the issue.

HemanthJabalpuri avatar Nov 29 '22 13:11 HemanthJabalpuri

I noticed that the first time it won't start but the second time, it does. I'm running Android 12, revanced 0.0.44, YouTube v17.45.36 but also with Twitter (first time no, second time yes).

DarkSkull91 avatar Dec 06 '22 18:12 DarkSkull91