skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.59k stars 4.87k forks source link

jadx crasing while decompilling on 94% #195

Closed HiguP closed 6 years ago

HiguP commented 6 years ago

Hello. I've got problem with decompiling .apk file. Jadx is crashing on 94% and the only way to close it is killing a process in Task Manager. Java version: 1.8.0_151 I've got installed JDK and JRE, both the same version (1.8.0_151)

bagipro commented 6 years ago

Could you please attach the apk file?

HiguP commented 6 years ago

It's crashing on all apk files, but on some files it's crashing on 98%

Update: It decompiled one apk after long time, but on Spotify apk it's not working, I will attach this .apk in few minutes.

Update 2.: .apk file cannot be attached here, so it's the link for download: https://apkpure.com/store/apps/details?id=com.spotify.music I'm using a online google play downloader.

HiguP commented 6 years ago

Should I install other version of java?

skylot commented 6 years ago
  1. Did you try to increase java maximum heap size? Check here
  2. Did you see any exception in log? (To get log run jadx from command line) Can you post it here?
HiguP commented 6 years ago

I deleted java and then installed older version, now it is 1.8.0_144 and after that I've increased java maximum heap size in .bat files and now it's running perfectly. Thanks for help.

Edit: I think the most important thing is increasing maximum heap size in BOTH files ("jadx-gui" and "jadx-gui.bat"), before I had it in just one of them (I don't remember which) and it didn't worked. What do you think about it?

Edit 2.: Oh, yea, now I see, I had increased it in jadx-gui script for UN*X, not for Windows. That was my fail.