pxb1988 / dex2jar

Tools to work with android .dex and java .class files
Apache License 2.0
12.36k stars 2.12k forks source link

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded #602

Closed LiWeiQiangAndroid closed 1 year ago

LiWeiQiangAndroid commented 1 year ago

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at java.lang.AbstractStringBuilder.(AbstractStringBuilder.java:68) at java.lang.StringBuilder.(StringBuilder.java:101) at com.googlecode.d2j.reader.DexFileReader.getString(DexFileReader.java:970) at com.googlecode.d2j.reader.DexFileReader.getMethod(DexFileReader.java:959) at com.googlecode.d2j.reader.DexFileReader.acceptInsn(DexFileReader.java:1647) at com.googlecode.d2j.reader.DexFileReader.acceptCode(DexFileReader.java:1413) at com.googlecode.d2j.reader.DexFileReader.acceptMethod(DexFileReader.java:1064) at com.googlecode.d2j.reader.DexFileReader.acceptClass(DexFileReader.java:862) at com.googlecode.d2j.reader.DexFileReader.accept(DexFileReader.java:662) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:117) at com.googlecode.d2j.reader.MultiDexFileReader.accept(MultiDexFileReader.java:110) at com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:86) at com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:285) at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:112) at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:290) at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:33)

ThexXTURBOXx commented 1 year ago

You need to increase the amount of RAM allocated to Java. Duplicate of #178 (solution given in this comment in particular)