Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator fails to run the project after build

Qt Creator fails to run the project after build

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.2k 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.
  • GmemberG Offline
    GmemberG Offline
    Gmember
    wrote on last edited by
    #1

    Hello,

    I am experiencing an annoying problem with Qt Creator. At times, it stops being able to run the application after building. If I try to run the debugger, I can see that the function that freezes is always ZwQueryVirtualMemory (screenshot: https://ibb.co/nOT1OQ) , so I guess that the problem is caused by Windows. If I deploy the application with windeployqt.exe and then double click on the exe, the application runs fine.

    I am using Windows 10 64 bit with all updates installed.

    I am working with Qt 5.8.0 and MSVC2015_64bit. The problems shows up mostly with the debug build, and it requires a system reboot to restore normal functionality. However, after a few build-run cycles, the problem appears again.

    kshegunovK 1 Reply Last reply
    0
    • GmemberG Gmember

      Hello,

      I am experiencing an annoying problem with Qt Creator. At times, it stops being able to run the application after building. If I try to run the debugger, I can see that the function that freezes is always ZwQueryVirtualMemory (screenshot: https://ibb.co/nOT1OQ) , so I guess that the problem is caused by Windows. If I deploy the application with windeployqt.exe and then double click on the exe, the application runs fine.

      I am using Windows 10 64 bit with all updates installed.

      I am working with Qt 5.8.0 and MSVC2015_64bit. The problems shows up mostly with the debug build, and it requires a system reboot to restore normal functionality. However, after a few build-run cycles, the problem appears again.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      How big's that library? - the one it's trying to load, this may cause it (i.e. the loader) to be rather slow on the uptake.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      3
      • GmemberG Offline
        GmemberG Offline
        Gmember
        wrote on last edited by
        #3

        Hi @kshegunov ,
        Thank you for your reply. I am not sure about what library is causing the problem (how can you tell that it is trying to load a library?). Please tell me how to find out. However, is it normal that after a reboot the application runs instantly, and after a few build-run cycles it starts failing?

        kshegunovK 1 Reply Last reply
        0
        • GmemberG Gmember

          Hi @kshegunov ,
          Thank you for your reply. I am not sure about what library is causing the problem (how can you tell that it is trying to load a library?). Please tell me how to find out. However, is it normal that after a reboot the application runs instantly, and after a few build-run cycles it starts failing?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by kshegunov
          #4

          @Gmember said in Qt Creator fails to run the project after build:

          Thank you for your reply. I am not sure about what library is causing the problem (how can you tell that it is trying to load a library?)

          #15 LdrLoadDll in your stack trace suggests that it's the loading of a library that is hanging (probably while doing the memory mapping, inferred by #1 ZwQueryVirtualMemory).

          Please tell me how to find out.

          Run it through the debugger, in the beginning you'll see the libraries being loaded at a information bar under the source code on top of the debug windows in the right. If there's a lot of time spent doing that it probably is the loader having trouble ...

          However, is it normal that after a reboot the application runs instantly, and after a few build-run cycles it starts failing?

          I have no idea, neither can I tell why it's intermittent. It may be some caching done by the OS at work, it may be something else, I don't know.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          2

          • Login

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