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

[error] Failed parsing PE file #1

Open
aminya opened this issue Nov 14, 2021 · 2 comments
Open

[error] Failed parsing PE file #1

aminya opened this issue Nov 14, 2021 · 2 comments

Comments

@aminya
Copy link

aminya commented Nov 14, 2021

I get this error without much useful information. What can cause this? Not that I used MinGW to build my app.

[2021-11-14 04:11:14.079] [info] Referenced DLL Parser v1.2 (C) 2021 BullyWiiPlaza Productions
[2021-11-14 04:11:14.080] [info] Executable file path: ./build/src/app.exe
[2021-11-14 04:11:14.080] [info] Skip parsing Windows DLL dependencies: false
[2021-11-14 04:11:14.080] [info] Results output file path:
[2021-11-14 04:11:14.081] [info] Finding dependent DLLs recursively...
[2021-11-14 04:11:14.081] [error] Failed parsing PE file ./build/src/app.exe
[2021-11-14 04:11:14.082] [info] Result JSON:
{
    "dll-load-failures": [],
    "missing-dlls": [
        "./build/src/app.exe"
    ],
    "referenced-dlls": []
}
[2021-11-14 04:11:14.082] [info] DLL references resolver took 0.01 s
@BullyWiiPlaza
Copy link
Owner

Hello, thanks for trying this application. This error means that the input file wasn't a valid PE file, the error is returned by the pe-parse library. I recommend compiling with MSVC when targeting Windows. Also, you can try to create an issue over there and upload an example executable which fails to parse.

@RealPlanet
Copy link

In my experience it's because you didn't provide an absolute path. For some reason you either provide a complete path (i.e C:/..../file.dll) or you keep the dll and the tool in the same folder thus providing only the file name.

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