Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QCoreApplication or QApplication calls are hanging the executable



  • I call them to set library paths ( QApplication::setLibraryPaths(QStringList() << rootPath << pluginsPath); ) ant it seems to work perfectly... but in a couple of computers.

    Also, it is even weirder since it only happens since I've updated to 5.14.4 in previous versions (5.3.2) it was working flawlessly in any computer, obviously I've provided the required dependencies like the updated Qt5Core.dll and so.

    I'm totally running out of ideas so any tip is really welcome!


  • Qt Champions 2019

    @FrankE Did you try to debug to see where it hangs?



  • @jsulm Unfortunately I cannot replicate it on my computers (4) also I sent it to other people and it works ok but in two computers, that is making even hard to catch the error.



  • It still happens even using Qt deploy tool, also Microsoft Process Monitor (procmon) didn't showcased any problem.

    btw my code is as simple as

    #include "mainwindow.h"
    
    #include <QApplication>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        MainWindow w;
        w.show();
        return a.exec();
    }
    

    being MainWindow a default window, but the software gets freezed on the QApplication.



  • I ran into "weird errors" when the deploy tool didn't match the exact version of the qt version used to compile against. I assume you did a clean before compiling against 5.14.4? How do you run your deploy tool? Command line environment matching version 5.14.4?



  • @fcarney As I said it works ok in almost every computer, also I double checked the version of the Qt dlls and it was ok.


Log in to reply