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: PathNotFoundException #2192

Closed
4 tasks done
NOoOBBByYT opened this issue Sep 5, 2024 · 9 comments
Closed
4 tasks done

bug: PathNotFoundException #2192

NOoOBBByYT opened this issue Sep 5, 2024 · 9 comments
Labels
Bug report Something isn't working Waiting on author Further information is requested

Comments

@NOoOBBByYT
Copy link

Bug description

Errors out when patching YouTube

Version of ReVanced Manager and version & name of app you are patching

1.21.2, YouTube 19.16.39

Installation method

None

ReVanced Manager logs

https://drive.google.com/file/d/1-8nk4-B__zEBEJHBHZmVKeunQOD5mWxp/view?usp=drivesdk

Patch logs

- Device Info
ReVanced Manager: 1.21.2
Model: Pixel 9 Pro XL
Android version: 14
Supported architectures: arm64-v8a
Root permissions: No

- Patch Info
App: com.google.android.youtube v19.16.39 (Suggested: 19.16.39)
Patches version: v4.13.3
Patches added: Enable slide to seek
Patches removed: Copy video URL, Disable precise seeking gesture, Swipe controls, Hide video action buttons, Hide autoplay button, Hide captions button, Hide cast button, Navigation buttons, Hide player buttons, Hide album cards, Comments, Hide crowdfunding box, Hide endscreen cards, Hide filter bar, Hide floating microphone button, Hide layout components, Hide info cards, Disable rolling number animations, Hide seekbar, Hide Shorts components, Disable suggested video end screen, Hide timestamp, Custom player overlay opacity, Wide searchbar, Restore old seekbar thumbnails, SponsorBlock, Spoof app version, Enable tablet layout, Alternative thumbnails, Announcements, Always repeat, Disable zoom haptics, Restore old video quality menu, Open links externally
Default patch options changed: None

- Settings
Allow changing patch selection: true
Version compatibility check: true
Show universal patches: false
Patches source: revanced/revanced-patches
Integration source: revanced/revanced-integrations

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Deleting existing temporary files directory
Decoding resources
Executing patches
Applied 27 patches
Compiling patched dex files
Compiled 8 dex files
Compiling modified resources
An error occurred:
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~Az8qGtj6rQk4OU4rRNzMZA==/app.revanced.manager.flutter-aSIs_v-73S0UnNuVYmhPZQ==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/patched/resources/resources.apk, --package-id, 127, --min-sdk-version, 26, --target-sdk-version, 34, --version-code, 1545731520, --version-name, 19.16.39, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, --warn-manifest-validation, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL7399985664459442230.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/apk/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/apk/build/resources.zip]
	at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:563)
	at brut.androlib.AaptInvoker.invokeAapt(Unknown Source:106)
	at app.revanced.patcher.data.ResourceContext.get(SourceFile:0)
	at app.revanced.patcher.Patcher.get(SourceFile:0)
	at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:462)
	at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
	at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
	at java.lang.Thread.run(Thread.java:1012)
Caused by: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~Az8qGtj6rQk4OU4rRNzMZA==/app.revanced.manager.flutter-aSIs_v-73S0UnNuVYmhPZQ==/lib/arm64/libaapt2.so, link, -o, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/patched/resources/resources.apk, --package-id, 127, --min-sdk-version, 26, --target-sdk-version, 34, --version-code, 1545731520, --version-name, 19.16.39, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, --warn-manifest-validation, -e, /data/user/0/app.revanced.manager.flutter/cache/APKTOOL7399985664459442230.tmp, -0, arsc, -I, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/1.apk, --manifest, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/apk/AndroidManifest.xml, /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/revanced-temporary-files/apk/build/resources.zip]
	at brut.util.OS.exec(Unknown Source:75)
	at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:542)
	... 7 more
Something went wrong:
PathNotFoundException: Cannot copy file to '/data/user/0/app.revanced.manager.flutter/files/lastPatchedApp.apk', path = '/data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-ILEFVI/out.apk' (OS Error: No such file or directory, errno = 2)

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The bug is only related to ReVanced Manager.
@NOoOBBByYT NOoOBBByYT added the Bug report Something isn't working label Sep 5, 2024
@oSumAtrIX
Copy link
Member

Use default selection of patches. If it works, revert back to your current selection. Report back if the issue still happens

@oSumAtrIX oSumAtrIX added the Waiting on author Further information is requested label Sep 6, 2024
@amankaif

This comment was marked as off-topic.

@Dinjoralo
Copy link

Dinjoralo commented Sep 6, 2024

I'm also having the same issue when trying to apply patches to YouTube. I have tried running with the default list of patches, and a smaller selection of patches, and both return the same error.

Here are my device logs;
DinjoVncdDeviceLogs.txt

@oSumAtrIX
Copy link
Member

Delete manager data and try again

@Dinjoralo
Copy link

Deleting data for the Revanced Manager app has resolved my issues. Thank you!

@WaseemAbbo

This comment was marked as spam.

@rajdeepvaghela

This comment was marked as spam.

@Anujkaushik01

This comment was marked as spam.

@ReVanced ReVanced locked as spam and limited conversation to collaborators Sep 8, 2024
@oSumAtrIX
Copy link
Member

Moved to #2142 because its the same issue.

@oSumAtrIX oSumAtrIX closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug report Something isn't working Waiting on author Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants