Qt installer fails on Windows 7, exception Code: c0000005
-
wrote on 1 Aug 2017, 16:44 last edited by
The Qt installer (version 3.0.0) crashes while apparently trying to access a null pointer on Windows 7 x64.
Problem signature:
Problem Event Name: BEX
Application Name: qt-unified-windows-x86-3.0.0-online.exe
Application Version: 0.0.0.0
Application Timestamp: 59240861
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: 00000000
Exception Code: c0000005
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 3082
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789Does anybody experience this problem?
-
Hi,
Did you check that you have enough space on your hard drive ?
-
wrote on 1 Aug 2017, 22:24 last edited by
@SGaist said in Qt installer fails on Windows 7, exception Code: c0000005:
Hi,
Did you check that you have enough space on your hard drive ?
Yeap, I have enough space. I also tried the offline installer but I get the same error.
-
Hi, looks like DEP fault (Stackhash_0a9e), try disable it in a CMD window (started as a Administrator):
bcdedit.exe /set {current} nx AlwaysOff
More here
wrote on 1 Aug 2017, 23:42 last edited by@hskoglund said in Qt installer fails on Windows 7, exception Code: c0000005:
Hi, looks like DEP fault (Stackhash_0a9e), try disable it in a CMD window (started as a Administrator):
bcdedit.exe /set {current} nx AlwaysOff
More here
I tried that but it didn't work. I don't think that's the problem anyway, the installer is clearly trying to reference a null pointer.
-
wrote on 2 Aug 2017, 02:00 last edited by
Hi, the code is legit, however in the .exe file those bytes can be found pretty close to the start of the file (around offset 0xaaaa0). Also on my Win7 that code at 0x0118B1AF isn't the same as yours (when I break the installer at 0%).
Hmmm could it be an anti-virus program like Avast that's reshuffling your Qt installer? -
wrote on 2 Aug 2017, 03:57 last edited by
Ok, after some research I found the problem. The installer was failing to load the module kernel32. To load the module it first calls the Windows function LoadLibrary passing the filename “kernel32.dll.dll” for some reason. When this fails it tries again with “kernel32.dll”, except that it only does so when the function GetLastError returns ERROR_MOD_NOT_FOUND (0x7E). If the first call to LoadLibrary fails for some other reason the installer doesn’t retry. In my case GetLastError was returning ERROR_NOT_READY (0x15). This occurred because my PATH contained a reference to a folder on the D drive that used to be a disk partition but now is a DVD drive that was empty at the time:
After removing that folder from my PATH the installation completes successfully.
This is probably a bug. The installer shouldn't use the value returned by GetLastError to determine if LoadLibrary failed.
-
wrote on 19 Aug 2019, 13:54 last edited by
Thank you very much, Primer!
Searched quite a while for this. Obviously it is still a Topic on Windows 7. -
wrote on 14 Apr 2020, 09:06 last edited by
I am sorry to open this old topic but I was facing same problem just now (Apr 14, 2020) on quite old computer with windows 7. I am using this version of the installer qt-unified-windows-x86-3.2.2-online.exe and "stuck" just before installation process to start. So I decided to try Primer solution about the "kernel32.dll.dll" file not found. I made a copy of the file "kernel32.dll" in folders windows\system32\ and windows\sysWOW64\ and rename the copied files like the missing one "kernel32.dll.dll" and the installer just continue with the installation.
Thank you Primer for your research!