Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Application crashes on startup

Qt Application crashes on startup

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 2.1k Views 1 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.
  • DenjasD Offline
    DenjasD Offline
    Denjas
    wrote on last edited by Denjas
    #1

    So earlier today I uninstalled Visual Studio 2013 and all of its components. I am not sure if this has affected my Qt installation, but I don't know what else it should have been. Anyway, my Qt installation worked perfectly fine before, but now every time I run an (even in a newly created project) application, I always get the following output:

    Starting C:\path\to\untitled.exe...
    The program has unexpectedly finished.
    The process was ended forcefully.
    C:/path/to/untitled.exe crashed.

    However this is only when I run in debug mode, when I run in release mode it seems to work fine.

    I am using Qt 5.10.1 with MSVC 2017 64bit.
    I also have Visual Studio 2017 installed, and after uninstalling Visual Studio 2013 and all of its components I ran the "Repair" function in the VS2017 installer. I have also tried re-installing Qt but I still get the same error message when running an application in Debug mode, and I don't know what else could be wrong.

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

      Hi,

      Rather than repaire I would re-install MSVC 2017 completely to be sure it has everything needed.

      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
      2
      • 6thC6 Offline
        6thC6 Offline
        6thC
        wrote on last edited by 6thC
        #3

        Are you using and Intel HD Graphics video card? I've noted they broke the driver for OpenGL https://communities.intel.com/message/521599#521599 but it's a big blackhole trying to get fixed.

        If you specify:

        // MSVC17 / Intel driver bug - use angle
        QGuiApplication::setAttribute(Qt::AA_UseOpenGLES, true);
        

        before QApplication ... does that get you working?

        It's a bit shit cause I believe you lose anti-aliasing - I've just put MSVC compiler builds/branches low for now and am using GCC in linux and MinGW5.3.0 to further development.

        I'd try using another compiler just to see if you can get moving again.

        1 Reply Last reply
        2
        • DenjasD Offline
          DenjasD Offline
          Denjas
          wrote on last edited by
          #4

          I tried re-installing MSVC 2017 completely as SGaist said and it seems to have fixed the problem, now I can run applications in debug mode again :)

          Thanks for the help both of you!

          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