Coder Social home page Coder Social logo

dex error about dex2jar HOT 12 CLOSED

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
dex error

from dex2jar.

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Almost the same problem for me.

Exception in thread "main" java.lang.StackOverflowError
        at java.util.Arrays.copyOf(Arrays.java:2760)
        at java.util.Arrays.copyOf(Arrays.java:2734)
        at java.util.ArrayList.toArray(ArrayList.java:275)
        at java.util.ArrayList.<init>(ArrayList.java:131)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:129)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)
        at com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)

Original comment by [email protected] on 18 Jan 2012 at 1:38

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
For what I can see it's the recursive function dfsRemove in 
TopologicalSort.java that goes haywire. I'm not the man (lack of java skills) 
to actually fix this but I think the problem lies in the "else if" statement on 
row 134. Either the to._cfg_visited never turns "true" or the depth of the 
recursive function can't be handled by a normal computers stack. I tested with 
2GB stack and it didn't work out.

127 private void dfsRemove(Stmt stmt, Set<Stmt> visited) {
128        visited.add(stmt);
129        for (Stmt to : new ArrayList<Stmt>(stmt._ts_tos)) {
130            if (visited.contains(to)) {// a loop
131                to._cfg_froms.remove(stmt);
132                while (stmt._ts_tos.remove(to)) {
133                }
134            } else if (!to._cfg_visited) {
135                dfsRemove(to, visited);
136            }
137        }
138        visited.remove(stmt);
139        stmt._cfg_visited = true;
140    }

Original comment by [email protected] on 20 Jan 2012 at 6:29

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
same problem while disassemble framework.dex, is that because it's too big? 
(about 7.48M)

Original comment by [email protected] on 3 Feb 2012 at 7:24

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
and I found that the old version like 0.0.7.9-SNAPSHOT, won't report such error

Original comment by [email protected] on 3 Feb 2012 at 7:32

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
[deleted comment]

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Done. I did send it to your pxb-address. Not sure whether it would clog down 
this issue if I send it to your googlecode address so I sent it to the other 
one.

Original comment by [email protected] on 3 Feb 2012 at 10:08

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
[deleted comment]

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
I use dex2jar-0.0.9.7 also have at 
com.googlecode.dex2jar.ir.ts.TopologicalSort.dfsRemove(TopologicalSort.java:135)
 exception!

The apk file 137544_f9bc28aa-bebe-4941-ac02-0e00dc787c06.apk

Original comment by [email protected] on 9 Feb 2012 at 1:25

  • Added labels: ****
  • Removed labels: ****

Attachments:

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
@zdz8 Funny. Out of curiosity I downloaded your apk-file and ran it through 
dex2jar (Linux, Opensuse 11.4, dex2jar 0.0.9.7) and it went fine. One thing 
though. I installed 4GB more RAM (8GB in total now) in my laptop last friday. I 
tried one more time with my classes.dex and it did not work.

Original comment by [email protected] on 9 Feb 2012 at 1:46

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Tried zdz8's file as well. Even tried extending my VM memory size by using the 
following code:

set CLASSPATH=
FOR %%i IN ("%~dp0lib\*.jar") DO CALL "%~dp0setclasspath.bat" %%i

java -Xms1024m -Xmx1024m -cp "%CLASSPATH%" "com.googlecode.dex2jar.v3.Main" %*

This doesn't work either and still gives me the same error.

Original comment by [email protected] on 9 Feb 2012 at 2:06

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
[deleted comment]

from dex2jar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
I think you've sorted out the issue of StackOverflowError in dex2jar-0.0.9.8. 
At least for what I can see. Thanks.

Original comment by [email protected] on 4 Jun 2012 at 10:50

  • Added labels: ****
  • Removed labels: ****

from dex2jar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.