The program has unexpectedly finished (Windows)

  • Hi, this is my first time Qt developing. I already installed all environment, but have a big trouble at start.

    Immediately after installation I ran first example “Address book example” and it worked. I didn’t even change any default properties. But another day after reboot (I don’t remember changing anything in system settings) everything went bad.

    If I create “Hello World” console application, it successfully builds and runs:

    • built with MSVC console window opens with no output “Hello world” (only “Press <RETURN> to close this window...”)
    • built with MinGW console window opens with proper text

    If I create blank widgets project or open any embedded QT Creator example, it successfully builds, no any errors, but after run it instainly falls with the following messages:

    The program has unexpectedly finished.
    The process was ended forcefully.

    No difference between MSVC and MinGW.

    My environment:

    • Windows Server 2019 1809
    • chocolatey package microsoft-visual-cpp-build-tools (python extensions builds successfully)
    • MinGW 7.3.0 (installed with Qt Creator installer)
    • Qt 5.12.5 MSVC 2015 64-bit
    • Qt 5.12.5 MinGW 7.3.0 64-bit

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you get any system update before rebooting ?
    Do you have that crash in both release and debug mode ?

  • No, I did not get the updates. Yes, it happened in both release and debug. In addition my python 3.7 package PyQt5 was broken too. I tried several hacks to solve this problem, but nothing avail.

    Then I was radical and removed all development tools (python, qt, mingw, visual studio, etc), cleaned all settings files and install all from scratch. It works great as if nothing had happened.

  • Lifetime Qt Champion

    Nothing like a hard reset...

    Anyway, glad you are back on track. Happy coding !

Log in to reply