asolfre / dex2jar

Automatically exported from code.google.com/p/dex2jar
1 stars 0 forks source link

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
d2j-dex2jar classes.dex

What is the expected output? What do you see instead?
dex2jar classes.dex -> classes-dex2jar.jar
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.lang.String.toCharArray(Unknown Source)
        at org.objectweb.asm.Type.getType(Unknown Source)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.searchEnclosing(V3ClassAdapt
er.java:179)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:13
0)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.ja
va:303)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader
.java:603)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader
.java:439)
        at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java
:330)
        at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:84)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:239)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:230)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java
:109)
        at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:168)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:34)

What version of the product are you using? On what operating system?
dex2jar-0.0.9.13
Microsoft Windows [Version 6.2.9200] x86
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

Original issue reported on code.google.com by chen.92...@gmail.com on 11 May 2013 at 3:57

GoogleCodeExporter commented 9 years ago
i have the same problem plz one regarded person help us :)

Original comment by nedamale...@gmail.com on 27 May 2013 at 10:56

GoogleCodeExporter commented 9 years ago
See 
https://code.google.com/p/dex2jar/wiki/Faq#Got_OutOfMemoryError_%3A_Java_heap_sp
ace

Hint: Make heap bigger. 

Original comment by david.li...@gmail.com on 14 Jun 2013 at 4:14

GoogleCodeExporter commented 9 years ago
Hello,
Thank you for your help. I tried "-Xmx2048M" (can't be bigger because my 
computer is 32-bit), but this exception still occurs.
Please help me.

Original comment by chen.92...@gmail.com on 15 Jun 2013 at 8:23

GoogleCodeExporter commented 9 years ago
I have assigned all my 4G memory to it ...
I really don't understand why it costs so much memory (it is just an 
instruction set converter).
Maybe you should put something into temporary files instead of memory?

Original comment by chen.92...@gmail.com on 19 Apr 2014 at 8:42