[Magisk] _f0xx:
Ongoing issue for me - app crashes at startup

OnePlus 6t, OxygenOS 9.0.13 (latest OTA), Magisk 19.3, Vanced v14.21.54(b01.40.20) installed from Magisk repo.

I uninstalled the updates and deleted storage for the stock Youtube (stock YouTube works before this), then I installed Vanced from Magisk. I see the Vanced Icon, but when I try to open it I first get a flash of the screen, and then nothing. If I try to open it a second time I get "YouTube Keeps Stopping".

I have had this issue since at least Magisk 19.2 (probably earlier, but I don't remember). I updated to 19.3 this morning and the latest YouTube Vanced from the Magisk repo to try my luck again and still no go.

I have a full logcat, but I believe this is the relevant part:

[ 06-05 08:58:18.327 730: 730 E/ANDR-IOP ]
IOP HAL: Received pkg_name = com.google.android.youtube pid = -1

[ 06-05 08:58:18.327 894: 1411 E/OnePlusSmartBoostManager ]
socket connect

[ 06-05 08:58:18.328 894: 1411 E/OnePlusSmartBoostManager ]
cmd: iop_start -1 com.google.android.youtube /system/app/YouTube false length = 65

[ 06-05 08:58:18.328 894: 1411 E/OnePlusSmartBoostManager ]
data: [B@fe03e5b length = 65

[ 06-05 08:58:18.328 939:14386 E/ANDR-RAMBOOST_SERVER ]
ramboost cmd_len = 65 cmd: iop_start -1 com.google.android.youtube /system/app/YouTube false

[ 06-05 08:58:18.314 939: 939 W/start_playback_ ]
type=1400 audit(0.0:8436): avc: denied { lock } for path="/data/system/ramboost-prefetcher.db" dev="sda17" ino=7078147 scontext=u:r:installd:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

[ 06-05 08:58:18.314 939: 939 W/start_playback_ ]
type=1400 audit(0.0:8437): avc: denied { lock } for path="/data/system/ramboost-prefetcher.db" dev="sda17" ino=7078147 scontext=u:r:installd:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

[ 06-05 08:58:18.335 730: 828 E/ANDR-IOP ]
io prefetch is disabled

[ 06-05 08:58:18.361 14388:14388 E/android.youtub ]
Not starting debugger since process cannot load the jdwp agent.

[ 06-05 08:58:18.380 14388:14388 W/System ]
ClassLoader referenced unknown path: /system/app/YouTube/Youtube.apk

[ 06-05 08:58:18.381 14388:14388 W/linker ]
Warning: unable to resolve "/system/app/YouTube/Youtube.apk": No such file or directory (ignoring)

[ 06-05 08:58:18.381 14388:14388 W/linker ]
Warning: unable to resolve "/system/app/YouTube/Youtube.apk": No such file or directory (ignoring)

[ 06-05 08:58:18.382 14388:14388 W/android.youtub ]
JIT profile information will not be recorded: profile file does not exits.

[ 06-05 08:58:18.382 14388:14388 W/ziparchive ]
Unable to open '/system/app/YouTube/Youtube.apk': No such file or directory

[ 06-05 08:58:18.382 14388:14388 E/android.youtub ]
Failed to open APK '/system/app/YouTube/Youtube.apk' I/O error

[ 06-05 08:58:18.382 14388:14388 E/ResourcesManager ]
failed to add asset path /system/app/YouTube/Youtube.apk

[ 06-05 08:23:58.719 10689:10706 E/AndroidRuntime ]
FATAL EXCEPTION: fonts
PID: 10689
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Context.isRestricted()' on a null object reference
at android.provider.FontsContract.fetchFonts(FontsContract.java:598)
at android.provider.FontsContract.lambda$getFontSync$0(FontsContract.java:357)
at android.provider.-$$Lambda$FontsContract$rqfIZKvP1frnI9vP1hVA8jQN_RE.run(Unknown Source:14)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)

[ 06-05 08:58:18.383 14388:14388 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.google.android.youtube, PID: 14388
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference
at android.app.ActivityThread.updateLocaleListFromAppContext(ActivityThread.java:5669)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5914)
at android.app.ActivityThread.access$1300(ActivityThread.java:207)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

[ 06-05 08:58:18.383 14388:14388 E/AndroidRuntime ]
Attempt to invoke virtual method 'android.content.Context android.app.Application.getApplicationContext()' on a null object reference

[ 06-05 08:58:18.386 894: 3071 W/ActivityManager ]
Force finishing activity com.google.android.youtube/.app.honeycomb.Shell$HomeActivity

[ 06-05 08:58:18.396 894: 1150 W/BroadcastQueue ]
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver

[ 06-05 08:58:18.396 894: 1150 W/BroadcastQueue ]
Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver

[ 06-05 08:58:18.424 755: 857 W/SurfaceFlinger ]
Attempting to destroy on removed layer: AppWindowToken{35a6537 token=Token{ca1236 ActivityRecord{7ee67d1 u0 com.google.android.youtube/.app.honeycomb.Shell$HomeActivity t3333}}}#0

[ 06-05 08:58:18.425 755: 857 W/SurfaceFlinger ]
Attempting to destroy on removed layer: Task=3333#0

[ 06-05 08:58:18.436 3243: 3243 E/neplus.launche ]
Invalid ID 0x00000000.

[ 06-05 08:58:18.437 3243: 3243 W/StaticLayout ]
maxLineHeight should not be -1. maxLines:1 lineCount:1

[ 06-05 08:58:18.437 3243: 3243 W/StaticLayout ]
maxLineHeight should not be -1. maxLines:1 lineCount:1

[ 06-05 08:58:18.637 2706: 2737 E/bt_osi_wakelock ]
wakelock_acquire wakelock acquired

[ 06-05 08:58:18.638 2706: 2738 E/bt_osi_wakelock ]
wakelock_release wakelock released

[ 06-05 08:58:20.008 730: 730 E/ANDR-IOP ]
IOP HAL: Received pkg_name = com.google.android.youtube pid = -1

[ 06-05 08:58:20.009 894: 1411 E/OnePlusSmartBoostManager ]
socket connect

[ 06-05 08:58:20.009 894: 1411 E/OnePlusSmartBoostManager ]
cmd: iop_start -1 com.google.android.youtube /system/app/YouTube false length = 65

[ 06-05 08:58:20.009 894: 1411 E/OnePlusSmartBoostManager ]
data: [B@ac2f02a length = 65

[ 06-05 08:58:20.009 939:14415 E/ANDR-RAMBOOST_SERVER ]
ramboost cmd_len = 65 cmd: iop_start -1 com.google.android.youtube /system/app/YouTube false

[ 06-05 08:58:20.009 939:14415 E/ANDR-RAMBOOST_SERVER ]
is_in_recent_list is TRUE

[ 06-05 08:58:20.009 939:14415 E/ANDR-RAMBOOST_SERVER ]
io prefetch is deactivate

[ 06-05 08:58:20.015 730: 828 E/ANDR-IOP ]
io prefetch is disabled

[ 06-05 08:58:20.043 14416:14416 E/android.youtub ]
Not starting debugger since process cannot load the jdwp agent.

[ 06-05 08:58:20.061 14416:14416 W/System ]
ClassLoader referenced unknown path: /system/app/YouTube/Youtube.apk

[ 06-05 08:58:20.062 14416:14416 W/linker ]
Warning: unable to resolve "/system/app/YouTube/Youtube.apk": No such file or directory (ignoring)

[ 06-05 08:58:20.062 14416:14416 W/linker ]
Warning: unable to resolve "/system/app/YouTube/Youtube.apk": No such file or directory (ignoring)

[ 06-05 08:58:20.063 14416:14416 W/android.youtub ]
JIT profile information will not be recorded: profile file does not exits.

[ 06-05 08:58:20.063 14416:14416 W/ziparchive ]
Unable to open '/system/app/YouTube/Youtube.apk': No such file or directory

[ 06-05 08:58:20.064 14416:14416 E/android.youtub ]
Failed to open APK '/system/app/YouTube/Youtube.apk' I/O error

[ 06-05 08:58:20.064 14416:14416 E/ResourcesManager ]
failed to add asset path /system/app/YouTube/Youtube.apk

[ 06-05 08:58:18.383 14388:14388 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.google.android.youtube, PID: 14388
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference
at android.app.ActivityThread.updateLocaleListFromAppContext(ActivityThread.java:5669)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5914)
at android.app.ActivityThread.access$1300(ActivityThread.java:207)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

[ 06-05 08:58:20.064 14416:14416 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.google.android.youtube, PID: 14416
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference
at android.app.ActivityThread.updateLocaleListFromAppContext(ActivityThread.java:5669)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5914)
at android.app.ActivityThread.access$1300(ActivityThread.java:207)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

[ 06-05 08:58:20.064 14416:14416 E/AndroidRuntime ]
Attempt to invoke virtual method 'android.content.Context android.app.Application.getApplicationContext()' on a null object reference

[ 06-05 08:58:20.071 894: 1682 W/ActivityManager ]
Force finishing activity com.google.android.youtube/.app.honeycomb.Shell$HomeActivity

This bit seems odd because I can see the file through the terminal and SolidExplorer:

I thought it might be permissions related, so I checked and it seems to have the same permissions as all the other .apk's in /system/app (-rw-r--r--) and the owner is root. Do these need execute privileges? I don't see any others with execute.

I've tried uninstalling and reinstalling the app (both versions) and have rebooted countless times. I'm not sure what I am missing.

Any help is appreciated!