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. The program has unexpectedly finished (Windows)
Forum Updated to NodeBB v4.3 + New Features

The program has unexpectedly finished (Windows)

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 379 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.
  • D Offline
    D Offline
    Dzusan
    wrote on last edited by
    #1

    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
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      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
      • D Offline
        D Offline
        Dzusan
        wrote on last edited by
        #3

        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.

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

          Nothing like a hard reset...

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

          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
          1

          • Login

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