Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch_process(...) failed with error code 1 #60

Closed
ishroudd opened this issue Apr 28, 2020 · 3 comments
Closed

launch_process(...) failed with error code 1 #60

ishroudd opened this issue Apr 28, 2020 · 3 comments

Comments

@ishroudd
Copy link

IDA Version : 7.0
retdec-idaplugin version : v0.9
retdec version: v3.3
Windows version: 10

I get the following errors trying to run a decompile:

Error
Error2

Running the command given in the error in a cmd manually gives:

Error3

Interestingly, running the command without the --select-decode-only and --select-ranges options appears to start going through the process, I don't know if it's relevant without the options set though:

Error4

@PeterMatula
Copy link
Collaborator

Thanks for the report. I started work on using RetDec as a library. It is going well. The next plugin release will not launch processes, etc. It will be self-contained and these kinds of problems should be non-existent.

@PavelKotov1
Copy link

Hello, dear friends!
I am not sure if my issue is similar to the one discussed here so I apologize in advance for possibly misplacing my question.
When I run:
C:\Users\root\AppData\Local\Programs\Python\Python38\python.exe D:\retDEC_v3.2\scripts\retdec-decompiler.py --help
everything works just fine, but
C:\Users\root\AppData\Local\Programs\Python\Python38\python.exe D:\retDEC_v3.2\scripts\retdec-decompiler.py C:\crackme.exe
it fails in the subprocess.py in _executechild startup info

Start the process

        try:
            hp, ht, pid, tid = _winapi.CreateProcess(executable, args, etc. 

function with "FileNotFoundError" the system cannot find the file specified.
I tried different python versions (from 2.7 to 3.8) but the net result is pretty much the same.
My COMSPEC = C:\Windows\System32\cmd.exe, just in case.
Shell I wait for the RetDec as a library solution, mentioned above, or hopefully there is an easy one available now?
Thanks in advance!

@PeterMatula
Copy link
Collaborator

After 3503eb6, plugin no longer uses launch_process. Release v1.0 will come shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants