Qt Creator fails to run the project after build



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


  • Qt Champions 2016

    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.



  • 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?


  • Qt Champions 2016

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.