Page 1 of 1
Initialization error 4 in x86 build
Posted: Mon Apr 08, 2019 3:31 pm
by stefan_reinalter
Since upgrading to build v3.3.1.1076 on Windows, the x86 build of my application always fails to start with "Initialization error 4".
All options are the same and this used to work with prior versions of VMProtect.
The x64 build works fine.
Any ideas?
Re: Initialization error 4 in x86 build
Posted: Mon Apr 08, 2019 5:33 pm
by stefan_reinalter
I updated my subscription in order to upgrade to the latest build 1097, and the issue persists.
With build 1097, the "Initialization error 4" is gone, but now the x86 exe simply refuses to start - it looks like it starts but then immediately closes itself again.
And again, the x64 build works fine.
I can make my x86 application available.
Re: Initialization error 4 in x86 build
Posted: Mon Apr 08, 2019 8:57 pm
by stefan_reinalter
Disregard this.
This was caused by a memory overwrite of 4 bytes in the application's startup code. I guess this corrupted something in a way that made VMProtect "unhappy".
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 5:54 am
by Admin
Did you find an application that does it?
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 10:37 am
by stefan_reinalter
There is definitely something wrong with VMProtect and x86 builds.
I built a small test case which is literally the following C++ code:
#include "VMProtectSDK.h"
int DeactivateLicense(void)
{
VMProtectBeginUltra("DeactivateLicense");
VMProtectEnd();
return 0;
}
int main(void)
{
const int result = DeactivateLicense();
printf("exit code: %d\n", result);
return result;
}
The resulting executable runs fine on its own.
When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.
Where can I submit the application in question so the developers can take a look at it?
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 10:43 am
by Admin
When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.
... because the file was modified in the memory? It seems something changes your protected file at the runtime and VMProtect detects it and shows the error.
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 10:57 am
by stefan_reinalter
Admin wrote:When using VMProtect and running the resulting executable, VMProtect will detect a file modification and close the app.
... because the file was modified in the memory? It seems something changes your protected file at the runtime and VMProtect detects it and shows the error.
The file is not modified in memory. The code I posted above is the exact C++ code - there is nothing else in there.
The x64 application runs fine (and VMProtect doesn't detect any modification), but x86 fails.
Can I send you the compiled x86 executable along with my VMProtect options? It's only around 100KB.
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 11:21 am
by Admin
OK. Please send all files (the original binary + MAP + VMP files too) to
[email protected]
Re: Initialization error 4 in x86 build
Posted: Tue Apr 09, 2019 11:44 am
by stefan_reinalter
Admin wrote:OK. Please send all files (the original binary + MAP + VMP files too) to
[email protected]
Done, thank you for your help!
Re: Initialization error 4 in x86 build
Posted: Wed Apr 10, 2019 3:58 pm
by stefan_reinalter
Can you confirm yet if this is indeed a bug in VMProtect along with a possible ETA for a fix?
I have quite a few customers who need to use the x86 version of my product.
Re: Initialization error 4 in x86 build
Posted: Fri Apr 12, 2019 6:58 am
by Admin
Please try the 1099 build
Re: Initialization error 4 in x86 build
Posted: Fri Apr 12, 2019 2:01 pm
by stefan_reinalter
I can confirm that the issue is fixed in the 1099 build.