Closed Spacellary closed 1 year ago
Could be related to https://github.com/reisxd/revanced-builder/issues/502#issue-1401820035 I'll keep trying what I can
as expected java.exe is holding that file but I dunno if I can do anything about it when force stop it obv the builder just stops responding :/
not reproduced at all However, I can only vaguely guess that it is an issue of java.
If it is true that java is holding the file or directory, try the patch by moving rvx-builder-win.exe
to another directory.
I am getting this error with updated everything an hour ago and trying to patch the latest recommended version.
not reproduced at all However, I can only vaguely guess that it is an issue of java.
If it is true that java is holding the file or directory, try the patch by moving
rvx-builder-win.exe
to another directory.
Rebooted my PC, moved file to a different directory in a different Disk, from D: to C:, same result. Weirdly enough it doesn't happen with ReisXD builder when building official Revanced.
@inotia00 I was able to now build normally after doing the following steps:
1) Uninstalled the Any/Zulu JDK 17 version that was installed.
2) Uninstalled standalone Node.js - if present.
3) Installed Zulu JDK again (Zulu JDK 17 v17.36.15 32-bit from Winget).
4) Build again, with success.
I used Geek Uninstaller to perform a clean removal (uninstall and remove residual files) of the software and I installed Zulu JDK 17 v17.36.15 using WingetUI/Winget. Probably any version of Zulu JDK 17/18/19+ will work. It's mostly just about doing a clean reinstallation.
rvx-builder-v3.4.16 revanced-cli-v2.14.1 revanced-integrations-v0.63.0 revanced-patches-v2.99.0 youtube-v17.42.35
[builder] ReVanced has been built! Please transfer over revanced/ReVanced-YouTube-v17.42.35-cli_v2.14.1-patches_v2.99.0.apk and if you are using YT/YTM, revanced/microg.apk and install them!
[builder] ReVanced has been built! Please transfer over revanced/ReVanced-YouTube-v17.42.35-cli_v2.14.1-patches_v2.99.0.apk and if you are using YT/YTM, revanced/microg.apk and install them!
Thank you so much for sharing the method you solved If anyone has the same issue, this method will be very helpful for them.
@meetaditya Added a bit more context to https://github.com/inotia00/rvx-builder/issues/7#issuecomment-1296274651 as it seems to work for other people too, if you would still have the issue, please try again and remove all versions and related files related to Java as mentioned before and hopefully that will do it for you too.
@Spacellary Thanks for your help!
"ReVanced has been built! Please transfer over revanced/ReVanced-YouTube-v17.42.35-cli_v2.14.1-patches_v2.99.0.apk and if you are using YT/YTM, revanced/microg.apk and install them!"
Uninstalled everything as you mentioned, I noticed that path variables still had the path set to previous installation folder so I removed that manually and then did a fresh install. That fixed it for me. :)
17.36.15
Don't we need Node.js to build?
That's just the version I used, probably reinstalling any other will work. Only installing Zulu Open JDK will have everything needed. Not necessary to install Node.js separately.
Well the bad news is it didn't work....but the GOOD news is I got a different error message(s)!
[builder] INFO: Signing revanced_aligned.apk to revanced_signed.apk
[builder] Exception in thread "main"
[builder] java.lang.OutOfMemoryError: Unable to allocate 1048576 bytes
[builder] at java.base/jdk.internal.misc.Unsafe.allocateMemory(Unsafe.java:632)
[builder] at java.base/java.nio.DirectByteBuffer.(DirectByteBuffer.java:125) at java.base/java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:332) at com.android.apksig.internal.util.FileChannelDataSource.feed(FileChannelDataSource.java:102) at com.android.apksig.internal.zip.LocalFileRecord.outputUncompressedData(LocalFileRecord.java:384) at com.android.apksig.ApkSigner.fulfillInspectInputJarEntryRequest(ApkSigner.java:621) at com.android.apksig.ApkSigner.sign(ApkSigner.java:385) at com.android.apksig.ApkSigner.sign(ApkSigner.java:204) at app.revanced.utils.signing.Signer.signApk(Signer.kt:77) at app.revanced.cli.signing.Signing.sign(Signing.kt:10) at app.revanced.cli.command.MainCommand.run(MainCommand.kt:174) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
[builder] at picocli.CommandLine$RunLast.handle(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2314) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) at picocli.CommandLine$RunLast.execute(CommandLine.java:2316) at picocli.CommandLine.execute(CommandLine.java:2078) at app.revanced.cli.main.MainKt.main(Main.kt:7)
This is actually good news, I did get that error too after the previous one and eventually it worked out.
Things I tried, If you don't mind or haven't tried already:
Clean uninstall JDK again. Reboot. Install again.
Do a java --version
in the Terminal, to make sure you got have anything left, and do again to see if everything is installed after you do install again, after the reboot...
Hopefully this helps somehow. I tried many things so can't hurt to try too.
I selected ALL the patches and it worked this time!!!! IT WORKED!!! TYTYTYTYTYTY!!!!
I selected ALL the patches and it worked this time!!!! IT WORKED!!! TYTYTYTYTYTY!!!!
Haha, congratulations! I mean, it will probably work out fine now then. This bug does certainly feel random sometimes. I was getting "out of memory" with 10GB free, I was mad xD
I failed on Windows 11 (22621.608.51.6), but after installing zulu19.30.11 in a sandbox environment, I succeeded in patching with rvx-builder v3.4.16.
revanced-patches-v2.111.2.json revanced.keystore revanced-cli-v2.15.1.jar revanced-patches-v2.111.2.jar revanced-integrations-v0.71.0.apk VancedMicroG-v0.2.25.224113-224113003.apk youtube.apk(17.45.34)
success [ReVanced-YouTube-v17.45.34-cli_v2.15.1-patches_v2.111.2.apk]
For anyone else experiencing similar issues Windows, make sure to uninstall your current Azul Zulu JDK installation and install the last Java 17 (LTS) x86 32-bit version from this page: https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-32-bit&package=jdk
Note: 64-bit version seems to cause some issues with both rvx-builder from inotia00 and revanced-builder from reisxd.
This bug, which I thought would last a forever, is no longer reproduced in the latest release
Unpin the issue
@inotia00 Gotta love Java on Windows... Glad it seems solved 👏🎉
Update: Solved in the replies bellow.
Still gettingError: EBUSY: resource busy or locked
, also tried doing again from a different folder and I get a[builder] Finished downloading files.
but no files get downloaded,revanced
folder is empty... or when it downloads them I get theError: EBUSY
when patching...Tried ReisXD builder and it is working fine.Full Patching Process:
https://user-images.githubusercontent.com/39604793/198880408-95b6f341-6aec-44a3-9ca4-6758c46e22a3.mp4
Tried
rvx-builder-v3.4.15
andrvx-builder-v3.4.16
and same thing happens on both.Describe the bug
Builder fails to patch, using the versions and rvx-resources bellow: revanced-integrations-v0.63.0 revanced-patches-v2.99.0 revanced-cli-v2.14.0
Steps To Reproduce
Screenshots
revanced-builder Version: rvx-builder v3.4.16
Desktop (please complete the following information):
Additional context: Crash Report