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 Project doesn't work anymore on the same system (Qt 5.5, Windows 8.1, x64)
Forum Updated to NodeBB v4.3 + New Features

Qt Project doesn't work anymore on the same system (Qt 5.5, Windows 8.1, x64)

Scheduled Pinned Locked Moved Solved Installation and Deployment
14 Posts 3 Posters 4.1k Views 2 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.
  • M Offline
    M Offline
    maroney
    wrote on last edited by maroney
    #1

    Hi everyone,

    I had a Qt Project running on a workstation. But after some changes in the network system and I guess some little updates on the OS (Windows 8.1 Pro, x64) the project throws following error message upon initialisation on the same system:

    Unhandled exception at 0x00007FFC9C7F7EC6 (Qt5Gui.dll) in main.exe: 0xC0000005: Access violation reading location 0x00000000000000D8.

    I ran the Dependency Walker on the release exe with following result:

    alt text

    All missing DLLs are connected to the system32 DLLs in the dependency tree. But I can hardly figure out how to solve the problem. Also I couldn't even find those DLLs (like "EXT-MS-WIN-NTUSER-UICONTEXT-EXT-L1-1-0.DLL") on the system itself.

    I would highly appriciate every hint on how to solve the issue.

    Thanks!

    [SOLVED] Look here.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maroney
      wrote on last edited by
      #2

      Just to show how I already tried to solve the issue based on former posts:

      • copied the missing DLLs to my release folder
        --> Dependency Walker Log : " At least one module has an unresolved import due to a missing export function in a delay-load dependent module" (refers to more the than the copied DLLs)
      • Installed the Redistributable Package (x86/x64) from Microsoft
      • Deleted the Qt DLLs (Qt5Gui.dll, Qt5Core.dll...) from the project folder and ran windeployqt
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Access violation ? Did you try to run the application through the debugger ?

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maroney
          wrote on last edited by
          #4

          Yes, the debugger throws the same error

          Unhandled exception at 0x00007FFC923DA79A (Qt5Guid.dll) in main.exe: 0xC0000005: Access violation reading location 0x00000000000000D8.
          

          (well, changes Qt5Gui.dll to Qt5Guid.dll) and stops in the main thread at stack

          Qt5Guid.dll!QOpenGLFunctions_3_3_Core::glEnable(unsigned int cap)
          

          Here d_1_0_Core (QOpenGLFunctions_1_0_CoreBackend) and this and all undelying variables can't be read from memory (VS: "Unable to read from memory" respectively for this: "Information not available, no symbols loaded for main.exe").

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

            Did you use windeployqt to do the deployment part ?

            It looks like you might be missing a plugin/plugin dependency.

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

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maroney
              wrote on last edited by
              #6

              Yes. I also used windeployqt. But this didn't change anything. Also the same setup with the same Qt related DLLs already worked on the same machine. To be honest I was just told so, that it was all working half a year ago and now after some month without usage the error occurs.
              Because it's also not working on a similar machine, I rule hardware failure out. My guess is on some windows or driver updates. Hoped this may be a problem some other Qt developers already had to face.

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

                What kind of graphic card do you have ?

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

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maroney
                  wrote on last edited by
                  #8

                  I'm using a nvidia geforce 980. already updated the driver.

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

                    Strange... Can you update to a more recent version of Qt ?

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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      maroney
                      wrote on last edited by
                      #10

                      Already updated to Qt version 5.7. Still not working.

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

                        5.8 has just been released.

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

                        1 Reply Last reply
                        0
                        • M maroney

                          Yes, the debugger throws the same error

                          Unhandled exception at 0x00007FFC923DA79A (Qt5Guid.dll) in main.exe: 0xC0000005: Access violation reading location 0x00000000000000D8.
                          

                          (well, changes Qt5Gui.dll to Qt5Guid.dll) and stops in the main thread at stack

                          Qt5Guid.dll!QOpenGLFunctions_3_3_Core::glEnable(unsigned int cap)
                          

                          Here d_1_0_Core (QOpenGLFunctions_1_0_CoreBackend) and this and all undelying variables can't be read from memory (VS: "Unable to read from memory" respectively for this: "Information not available, no symbols loaded for main.exe").

                          A Offline
                          A Offline
                          ambershark
                          wrote on last edited by
                          #12

                          @maroney I've seen this when you don't have your platform plugins installed properly.

                          What does the directory structure of your application look like? It should be something like this:

                          app/
                             app.exe
                             libs/
                                qt*.so
                             plugins/
                                platforms/
                                   *.so
                          

                          It doesn't need to look exactly like that, i.e. libs and where your exe is but the location of your platform plugins is very very important. And sometimes it doesn't tell you it can't load one it just crashes like that.

                          You can also make sure it is looking in the right place with a qt.conf file:

                          [Paths]
                          Plugins = ./plugins
                          

                          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            maroney
                            wrote on last edited by maroney
                            #13

                            [SOLVED]
                            I was able to solve the problem. Maybe someone else comes along similar issues...

                            The compiling failure didn't come from the code, but from the system itself. Most propably the graphic card was damaged during a transport. I setup a different workstation with the exact same specs as the previous one and I was able to compile the code.

                            Also some issues came from the Windows Remote Desktop connection to the workstation, which has it's difficulties with OpenGL.

                            Thanks for all the answers.

                            A 1 Reply Last reply
                            0
                            • M maroney

                              [SOLVED]
                              I was able to solve the problem. Maybe someone else comes along similar issues...

                              The compiling failure didn't come from the code, but from the system itself. Most propably the graphic card was damaged during a transport. I setup a different workstation with the exact same specs as the previous one and I was able to compile the code.

                              Also some issues came from the Windows Remote Desktop connection to the workstation, which has it's difficulties with OpenGL.

                              Thanks for all the answers.

                              A Offline
                              A Offline
                              ambershark
                              wrote on last edited by
                              #14

                              @maroney Wow... I hate it when it ends up being hardware related. It's something I almost never suspect because it is so rare and so hard to track down.

                              Glad you got it fixed though. :)

                              My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                              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