bytecode-viewer icon indicating copy to clipboard operation
bytecode-viewer copied to clipboard

Exception decompiling

Open Miscf opened this issue 2 years ago • 5 comments

// This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file. // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [3[TRYBLOCK]], but top level block is 9[UNCONDITIONALDOLOOP] // org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:427) // org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:479) // org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:607) // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:696) // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:184) // org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:129) // org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:96) // org.benf.cfr.reader.entities.Method.analyse(Method.java:397) // org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:906) // org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:797) // org.benf.cfr.reader.Driver.doClass(Driver.java:58) // org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:67) // org.benf.cfr.reader.Main.main(Main.java:48) // the.bytecode.club.bytecodeviewer.decompilers.CFRDecompiler.decompileClassNode(CFRDecompiler.java:131) // the.bytecode.club.bytecodeviewer.gui.ClassViewer$12.doShit(ClassViewer.java:971) // the.bytecode.club.bytecodeviewer.gui.PaneUpdaterThread.run(PaneUpdaterThread.java:57)

So what causes this?

Miscf avatar Jul 06 '21 15:07 Miscf

I am relatively sure, CFR is causing this issue and we can't do much about it. Which class/jar file are you trying to decompile?

If you don't hold the appropriate legal rights of that file, don't upload it!!! Please send us a link to the file.

ThexXTURBOXx avatar Jul 06 '21 15:07 ThexXTURBOXx

I'm trying to decompile a dex file, sorry i haven’t the linke to the file

Miscf avatar Jul 06 '21 16:07 Miscf

In fact, both CFR and Procyon failed.

Miscf avatar Jul 06 '21 16:07 Miscf

Okay, no problem. There are some problems with dex files atm. We will try to investigate the issue when we find some failing DEX/APK.

ThexXTURBOXx avatar Jul 06 '21 16:07 ThexXTURBOXx

Could you please try if this snapshot fixes your issue? https://github.com/Konloch/bytecode-viewer/suites/3473954380/artifacts/82608578

ThexXTURBOXx avatar Aug 09 '21 21:08 ThexXTURBOXx