vaginessa / smali

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

UNEXPECTED TOP-LEVEL EXCEPTION: #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when I use the command:
java -jar baksmali-1.3.0.jar  -x framework.odex,then it complains:
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
        at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
        at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
        at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
        at org.jf.dexlib.Item.readFrom(Item.java:76)
        at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
        at org.jf.dexlib.Section.readFrom(Section.java:143)
        at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
        at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
        at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav
a:129)
        at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7
9)
        at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4
4)
        at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst
ruction3rc.java:145)
        at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
        ... 6 more
Error occured at code address 0
code_item @0x142074

Original issue reported on code.google.com by wylhistory on 26 Nov 2011 at 9:41

GoogleCodeExporter commented 9 years ago
when I use the java -jar baksmali-1.2.8.jar,it doesnot complain this ;

Original comment by wylhistory on 26 Nov 2011 at 9:51

GoogleCodeExporter commented 9 years ago
You need to use the -a <api-level> option, to specify the api level of device 
that the odex is from.

Original comment by jesusfreke@jesusfreke.com on 26 Nov 2011 at 3:36

GoogleCodeExporter commented 9 years ago
thanks a lot!
when I use the -a option,it is ok,but still has the bug as depicted "Issue 
94: use JDGUI can not see some soure codes"

Original comment by wylhistory on 29 Nov 2011 at 11:02

GoogleCodeExporter commented 9 years ago
thanks a lot!
i can complain the odex file
with the -a option
command as below:
java -jar baksmali.1.3.0.jar -a 10 -x VpnServices.odex

Original comment by sndnv...@gmail.com on 30 Nov 2011 at 2:34