Open Farajo001 opened 2 months ago
The one above was with the latest version of Instagram Here something happened while trying to compile the modified files for YouTube: - Device Info ReVanced Manager: 1.21.1 Model: moto e5 play Android version: 8.1.0 Supported architectures: armeabi-v7a, armeabi Root permissions: No
Patch Info App: com.google.android.youtube v19.16.39 (Suggested: 19.16.39) Patches version: v4.12.0 Patches added: Default Patches removed: None Default patch options changed: None
Settings Allow changing patch selection: false 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 59 patches Compiling patched dex files Compiled 8 dex files Compiling modified resources An error occurred: java.lang.OutOfMemoryError: Failed to allocate a 2097168 byte allocation with 318400 free bytes and 310KB until OOM, max allowed footprint 268435456, growth limit 268435456 at com.google.common.io.ByteStreams.toByteArrayInternal(Unknown Source:29) at com.google.common.io.ByteStreams.toByteArray(SourceFile:0) at com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage.fromStream(Unknown Source:0) at com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage.fromSource(Unknown Source:4) at com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage.fromSource(Unknown Source:4) at com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage.fromSource(Unknown Source:29) at com.android.tools.build.apkzlib.zip.ZFile.mergeFrom(Unknown Source:195) at app.revanced.library.ApkUtils.applyTo(Unknown Source:153) at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:484) 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:764) Suppressed: java.lang.OutOfMemoryError: Failed to allocate a 16777232 byte allocation with 13743384 free bytes and 13MB until OOM, max allowed footprint 268435456, growth limit 268435456 at java.util.Arrays.copyOf(Arrays.java:3164) at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118) at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153) at com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage$2.doWrite(Unknown Source:2) at com.android.tools.build.apkzlib.bytestorage.AbstractCloseableByteSourceFromOutputStreamBuilder.write(SourceFile:0) at com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage$1.doWrite(Unknown Source:2) at com.android.tools.build.apkzlib.bytestorage.AbstractCloseableByteSourceFromOutputStreamBuilder.write(SourceFile:0) at com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage$1.doWrite(Unknown Source:39) at com.android.tools.build.apkzlib.bytestorage.AbstractCloseableByteSourceFromOutputStreamBuilder.write(SourceFile:0) at com.google.common.io.ByteStreams.copy(Unknown Source:21) at com.android.tools.build.apkzlib.zip.StoredEntry.loadSourceIntoMemory(Unknown Source:29) at com.android.tools.build.apkzlib.zip.ZFile.reAdd(Unknown Source:32) at com.android.tools.build.apkzlib.zip.ZFile.packIfNecessary(Unknown Source:90) at com.android.tools.build.apkzlib.zip.ZFile.writeAllFilesToZip(Unknown Source:13) at com.android.tools.build.apkzlib.zip.ZFile.update(Unknown Source:21) at com.android.tools.build.apkzlib.zip.ZFile.close(Unknown Source:9) at kotlin.io.CloseableKt.closeFinally(Unknown Source:8) at app.revanced.library.ApkUtils.applyTo(Unknown Source:329) ... 4 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-YSKLKR/out.apk' (OS Error: No such file or directory, errno = 2)
Potentially related to #2125
Potentially related to #2125
Nope, not at all
Potentially related to #2125
Nope, not at all
Whoops.. sorry
I got this error too. Device redmo note 11 OS Xiaomi HyperOS. Android version : Android 13
https://github.com/ReVanced/revanced-patcher/commit/5ec9f390e1d48d1f40581b9f9caa3faa7f162b55 This should solve the issue
I have the same issue when trying to patch X (formerly Twitter):
Device Info ReVanced Manager: 1.22.1-dev.2 Model: SM-F956U1 Android version: 14 Supported architectures: arm64-v8a Root permissions: No
Patch Info App: com.twitter.android v10.62.1-release.0 (Suggested: Any) Patches version: v1.41.0 Patches added: Bring back twitter Patches removed: None Default patch options changed: None
Settings Allow changing patch selection: true Version compatibility check: true Show universal patches: false Patches source: crimera/piko Integration source: crimera/revanced-integrations
Logs Reading APK Decoding app manifest Loading patches Merging integrations Deleting existing temporary files directory Decoding resources Executing patches Applied 58 patches Compiling patched dex files Compiled 12 dex files Compiling modified resources An error occurred: brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/app/~~hBL_fQ2Ntes_IcGdQsoCOw==/app.revanced.manager.flutter-NKITVdNr-hpPamYq7Megog==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KXDNOK/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KXDNOK/revanced-temporary-files/apk/build/resources.zip] at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:144) 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:495) 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/~~hBL_fQ2Ntes_IcGdQsoCOw==/app.revanced.manager.flutter-NKITVdNr-hpPamYq7Megog==/lib/arm64/libaapt2.so, compile, --dir, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KXDNOK/revanced-temporary-files/apk/res, --legacy, -o, /data/user/0/app.revanced.manager.flutter/files/patcher/tmp-KXDNOK/revanced-temporary-files/apk/build/resources.zip] at brut.util.OS.exec(Unknown Source:75) at brut.androlib.AaptInvoker.invokeAapt2(Unknown Source:122) ... 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/files/patcher/tmp-KXDNOK/out.apk' (OS Error: No such file or directory, errno = 2)
How is my issue off-topic if it has the same error/result: PathNotFoundException ?
Because it is not an OOM error
Thanks for the quick reply. Just trying to figure out reporting issues on Github.
Bug description
Whenever I try to patch anything the manager freezes when Compiling Dex files even when using recommended APKs
Version of ReVanced Manager and version & name of app you are patching
Revanced version: v1.21.1 Name of the apps: YouTube v19.16.39, Instagram v343.0.0.33, Reddit v2024.17
Installation method
Regular
ReVanced Manager logs
Patch logs
No response
Acknowledgements