Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt installer fails on Windows 7, exception Code: c0000005
Forum Updated to NodeBB v4.3 + New Features

Qt installer fails on Windows 7, exception Code: c0000005

Scheduled Pinned Locked Moved Solved Installation and Deployment
10 Posts 5 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Primer
    wrote on last edited by
    #1

    The Qt installer (version 3.0.0) crashes while apparently trying to access a null pointer on Windows 7 x64.

    0_1501604944317_1.jpg
    0_1501604969322_2.jpg
    0_1501604975379_3.jpg

    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: 0a9e372d3b4ad19135b953a78882e789

    Does anybody experience this problem?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check that you have enough space on your hard drive ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you check that you have enough space on your hard drive ?

        P Offline
        P Offline
        Primer
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          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

          P 1 Reply Last reply
          0
          • hskoglundH hskoglund

            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

            P Offline
            P Offline
            Primer
            wrote on last edited by
            #5

            @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.

            0_1501630872533_4.jpg

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              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?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Primer
                wrote on last edited by
                #7

                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:

                0_1501646081888_5.jpg

                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.

                1 Reply Last reply
                1
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Good catch! I can easily reproduce the bug on my Windows 7, by adding a non-valid directory into the path list and then trying to install Qt. And I also get that same "StackHash..." error.

                  You can report the bug here

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    Zatnktel
                    wrote on last edited by
                    #9

                    Thank you very much, Primer!
                    Searched quite a while for this. Obviously it is still a Topic on Windows 7.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      bobgrayX
                      wrote on last edited by
                      #10

                      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!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved