ReVanced / revanced-manager

💊 Application to use ReVanced on Android
https://revanced.app
GNU General Public License v3.0
17.94k stars 738 forks source link

bug: trying to patch apps, show a error #2157

Closed peter9811 closed 2 months ago

peter9811 commented 2 months ago

Bug description

I have root, Snapdragon 8 Gen 2, 12 Gb RAM and 512 Gb storage

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

I tried Facebook, TikTok and others Manager 1.21.2 And the respective apps using the recommended version lasted

Installation method

None

ReVanced Manager logs

Empty (?)
The file shows 0B

Patch logs

- Device Info
ReVanced Manager: 1.21.2
Model: NX729J
Android version: 14
Supported architectures: arm64-v8a, armeabi-v7a, armeabi
Root permissions: Yes

- Patch Info
App: com.zhiliaoapp.musically v32.5.3 (Suggested: 32.5.3)
Patches version: v4.13.3
Patches added: Default
Patches removed: None
Default patch options changed: None

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

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Executing patches
Applied 8 patches
Compiling patched dex files
Compiled 22 dex files
An error occurred:
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 1851056 free bytes and 1807KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
    at java.lang.StringFactory.newStringFromChars(StringFactory.java:124)
    at com.android.tools.smali.util.Utf8Utils.utf8BytesWithUtf16LengthToString(SourceFile:0)
    at com.android.tools.smali.dexlib2.dexbacked.DexReader.readString(Unknown Source:12)
    at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile$5.get(SourceFile:0)
    at com.android.tools.smali.dexlib2.dexbacked.DexBackedDexFile$5.get(SourceFile:0)
    at com.android.tools.smali.dexlib2.dexbacked.reference.DexBackedFieldReference.getName(Unknown Source:30)
    at com.android.tools.smali.dexlib2.writer.pool.FieldPool.getName(SourceFile:0)
    at com.android.tools.smali.dexlib2.writer.pool.FieldPool.getName(SourceFile:0)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeFields(Unknown Source:93)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeTo(SourceFile:0)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeTo(SourceFile:0)
    at lanchon.multidexlib2.DexIO.writeMultiDexDirectoryCommon(Unknown Source:83)
    at lanchon.multidexlib2.DexIO.access$000(Unknown Source:0)
    at lanchon.multidexlib2.DexIO$1.call(SourceFile:0)
    at lanchon.multidexlib2.DexIO$1.call(SourceFile:0)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
    at java.lang.Thread.run(Thread.java:1012)
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-OSPEVX/out.apk' (OS Error: No such file or directory, errno = 2)

Acknowledgements

7Grn commented 2 months ago

Why_am_i_OutOf_Memory

peter9811 commented 2 months ago

Why_am_i_OutOf_Memory

I have root, 500+ Gb of storage, and 12 Gb of RAM... and I just did the same patch on my Pixel 7 Pro, which is less powerful and finished okay

7Grn commented 2 months ago

For support, move to one of our links at https://revanced.app/.