ThexXTURBOXx / dex2jar

Tools to work with android .dex and java .class files
Apache License 2.0
234 stars 59 forks source link

OutOfMemoryError #13

Closed b0123456789 closed 3 years ago

b0123456789 commented 3 years ago

dex2jar ../com.ss.android.ugc.aweme.lite.apk -> .\com.ss.android.ugc.aweme.lite-dex2jar.jar Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Unknown Source) at java.lang.String.(Unknown Source) at java.lang.StringBuilder.toString(Unknown Source) at com.googlecode.d2j.util.Mutf8.decode(Mutf8.java:42) at com.googlecode.d2j.reader.DexFileReader.getString(DexFileReader.java:1034) at com.googlecode.d2j.reader.DexFileReader.getType(DexFileReader.java:1044) at com.googlecode.d2j.reader.DexFileReader.getMethod(DexFileReader.java:1022) at com.googlecode.d2j.reader.DexFileReader.acceptInsn(DexFileReader.java:1728) at com.googlecode.d2j.reader.DexFileReader.acceptCode(DexFileReader.java:1489) at com.googlecode.d2j.reader.DexFileReader.acceptMethod(DexFileReader.java:1142) at com.googlecode.d2j.reader.DexFileReader.acceptClass(DexFileReader.java:918) at com.googlecode.d2j.reader.DexFileReader.accept(DexFileReader.java:725) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:122) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:115) at com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:48) at com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:235) at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:103) at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:297) at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:16)

b0123456789 commented 3 years ago

app download address:

http://221.179.41.80:49155/imtt.dd.qq.com/16891/apk/534543437451773FE790418EDFF9DEBE.apk?mkey=616663c8bd8f2b9a701b0cfc50299528&arrive_key=10168902610&fsname=com.baidu.searchbox.lite_5.16.0.11_28312960.apk&cip=183.238.72.89&proto=http

b0123456789 commented 3 years ago

linux run success ,nut window not.

ThexXTURBOXx commented 3 years ago

This issue is related to the JVM itself. An OutOfMemoryError can nearly always be fixed by using the -Xmx parameter for the JVM. Look here for details: https://alvinalexander.com/blog/post/java/java-xmx-xms-memory-heap-size-control/

b0123456789 commented 3 years ago

Decompiler not completely and not log any error.

Show with jd-gui. com/baidu/megapp/callback/MegappCallbackController.class

微信截图_20211013171811

ThexXTURBOXx commented 3 years ago

This issue is not related to dex2jar, but rather to the decompiler you chose. In fact, dex2jar is not a decompiler and just translates dex to jar files (which contain bytecode).