question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decompiler exception

See original GitHub issue

I see the following message in the "Decompiler window: Exception while decompiling xxxxx: Decompiler results exceeded payload limit of 50 MBytes

is there an easy way to allow more payload ?

Rather than use an indexed table the coders decided to go for several hundred statements similar to the following to print various messages… if (r4 == 0x2c) goto loc_xyz;

some of them are nested, which is why I think the code breaks the de-compiler.

if (r4 != 0x98) { if (r4 != 0x93) { if (r4 != 0x94) { if (r4 != 0x95) { if (r4 != 0x96) { if (r4 != 0x97) { if (r4 != 0x9d) { if (r4 != 0x9e) { if (r4 != 0xa4) { if (r4 != 0xa8) { if (r4 != 0xab) { if (r4 != 0xac) { if (r4 != 0xad) {

Etc… “hopper dissasembler” just about manages to break the code down, but ghidra breaks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
ghidracadabracommented, Sep 23, 2019

To increase the payload size: Edit->Tool Options->Decompiler->Decompiler Max-Payload (from the Code Browser).

0reactions
ghostcommented, Nov 25, 2019

Thanks. It solved the problem for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decompiling software: the “errors” exception
Decompiling software: the “errors” exception. Landmark decision shows buyers can decompile software to correct errors. A matter for dispute.
Read more >
DecompileException - Ghidra
public class DecompileException extends java.lang.Exception. An exception from (or that has passed through) the decompiler process.
Read more >
Decompiler - An unhandled exception is thrown at the startup ...
DevExpress Support Team: CLONED FROM T707058: CodeRush Decompiler won't load / crashes.] Selecting CodeRush > Support > Extension Folder, t.
Read more >
Decompiler Exception Test Source
This is the Jasmin (essentially Java "assembly language") source code for the exceptions decompiler test. It is an attempt at the test program...
Read more >
ida - Is there a way to show exceptions handlers in Hex-Rays ...
The Hex-Rays decompiler does not support decompiling exception handling code: Below are the most important limitations of our decompilers ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found