ReVanced / revanced-manager

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

bug: Memory overflow error while fixing the TikTok app #1817

Closed wangyi1573 closed 6 months ago

wangyi1573 commented 6 months ago

Bug description

Memory overflow error while fixing the TikTok app

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

com.zhiliaoapp.musically apk version 32.5.3

Installation method

None

ReVanced Manager logs

- Device Info
ReVanced Manager: 1.19.4-dev.2
Model: 23078RKD5C
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.5.0
Patches added: SIM spoof
Patches removed: None
Default patch options changed: None

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

- Logs
Reading APK
Decoding app manifest
Loading patches
Merging integrations
Executing patches
Applied 9 patches
Compiling patched dex files
Compiled 22 dex files
An error occurred:
java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 4692160 free bytes and 4582KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
    at com.android.tools.smali.dexlib2.dexbacked.util.DebugInfo$DebugInfoImpl$3.readNextItem(SourceFile:1)
    at com.android.tools.smali.dexlib2.dexbacked.util.DebugInfo$DebugInfoImpl$3.readNextItem(SourceFile:2)
    at com.android.tools.smali.dexlib2.dexbacked.util.VariableSizeLookaheadIterator.computeNext(Unknown Source:2)
    at com.android.tools.smali.dexlib2.dexbacked.util.VariableSizeLookaheadIterator.tryToComputeNext(Unknown Source:3)
    at com.android.tools.smali.dexlib2.dexbacked.util.VariableSizeLookaheadIterator.hasNext(Unknown Source:8)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeDebugItem(Unknown Source:136)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeDebugAndCodeItems(Unknown Source:198)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeTo(SourceFile:2)
    at com.android.tools.smali.dexlib2.writer.DexWriter.writeTo(SourceFile:1)
    at h6.h.c(Unknown Source:80)
    at h6.h.a(Unknown Source:0)
    at h6.h$a.a(Unknown Source:20)
    at h6.h$a.call(Unknown Source: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)

Patch logs

No response

Acknowledgements

cyberboh commented 6 months ago

Manager does not support TikTok patching, use revanced cli for it.