Windows Server 2012 R2 and QT 5.12.0 Debug problem (static build)
Last summer I built QT 5.8 (static) on a Win Server 2012 R2 VM. I got it working after removing following modules:
Now I've moved to 5.12.0 and the good news is that I can now build it static incuding above modules. However, now a new module makes trouble but only for the debug build. In order for it to compile I had to remove the qttranslations module. The release build works also with this module without problems. But the debug version that did build without qttranslations cannot build running applications.
For example, I created a helloworld desktop application with the wizard. Building and running the release version... no problem. Building the debug version works without errors or warnings but when trying to execute the binary things go south.
As always with Windows you can't copy any text out if the error dialog and the event viewer doesn't show the same error.
But here's the event view entry:
Faulting application name: hw2.exe, version: 0.0.0.0, time stamp: 0x5c344953
Faulting module name: ntdll.dll, version: 6.3.9600.19153, time stamp: 0x5b93ffa7
Exception code: 0xc0000374
Fault offset: 0x00000000000f1cd0
Faulting process id: 0x10e8
Faulting application start time: 0x01d4a71f26b304d5
Faulting application path: C:\Users\xxx\Documents\build-hw2-Desktop-Debug\debug\hw2.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 36ddd86f-1313-11e9-8107-005056a80e63
Faulting package full name:
Faulting package-relative application ID:
The error dialog shows something about debug_heap.cpp line 888
If I ignore some more errors are displayed in the same gist.
This error is also what used to come up during build of the debug version on 5.8 when above mentioned modules where not removed.
So is this a bug ? or did just something go wrong with the build and I should re-build (takes about 4 hours on that system).
Not sure how I can solve this. If I google for the mentioned errors I can't find any solution. But it appears to be a common problem on Windows.
ps: my build config was the following : D:\QT\qt5.12.0>\QT\Qt.5.12.src\qt-everywhere-src-5.12.0\configure.bat -static -debug -no-opengl -opensource -confirm-license -nomake examples -nomake tools -nomake tests -prefix d:\qt\qt5.12.0