intoolswetrust / jd-cli

Command line Java Decompiler
GNU General Public License v3.0
589 stars 93 forks source link

"Hang" problem not solved #39

Open zicofish opened 4 years ago

zicofish commented 4 years ago

The bug mentioned in this issue #17 is not completely solved yet. jd-cli still hangs when analyzing the following jar file:

https://ufile.io/jqsf8ze9

The last outputs are:

16:41:06.622 WARN  com.github.kwart.jd.output.DirOutput - Class name or java source is null
16:41:06.809 ERROR com.github.kwart.jd.JavaDecompiler - Can't decompile com/ss/android/message/a/f.class
java.lang.NullPointerException: null
16:41:06.809 WARN  com.github.kwart.jd.output.DirOutput - Class name or java source is null
16:41:07.066 ERROR com.github.kwart.jd.JavaDecompiler - Can't decompile com/ss/android/socialbase/appdownloader/c.class
java.lang.NullPointerException: null
16:41:07.066 WARN  com.github.kwart.jd.output.DirOutput - Class name or java source is null
16:41:07.531 ERROR com.github.kwart.jd.JavaDecompiler - Can't decompile com/ss/android/videoshop/layer/gesture/a.class
java.lang.NullPointerException: null
16:41:07.532 WARN  com.github.kwart.jd.output.DirOutput - Class name or java source is null
TanWeiQi1800860 commented 3 years ago

It freezes for me as well with 1.2.0

n0099 commented 2 years ago

By combining parameter -ods <path> and -g ALL, we can manually stop the hanging program when there's no new files is being outputted.

--outputDirStructured, -ods takes a [directoryPath] as a parameter and configures a structured DIR output for this path --logLevel, -g

takes [level] as parameter and sets it as the CLI log level. Possible values are: ALL, TRACE, DEBUG, INFO, WARN, ERROR, OFF Default: INFO