BullyWiiPlaza / DLL-Dependencies-Parser

A command line application for parsing DLL dependencies recursively
GNU General Public License v3.0
13 stars 0 forks source link

[error] Failed parsing PE file #1

Open aminya opened 2 years ago

aminya commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.