Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The program has unexpectedly finished. The process was ended forcefully.
Qt 6.12 LTS is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 6 Posters 9.4k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    Run it with a debugger (F5) and it will show you exactly where the crash is happening.

    A crash is usually caused by a dangling pointer.

    (Z(:^

    1 Reply Last reply
    3
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #3

      Hi
      Is it a clean default GUI project that crashes ?

      You are using the mingw compiler that came with Qt ?
      No custom install of compiler was used, correct ?

      Also what platform ?

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Is it a clean default GUI project that crashes ?

        You are using the mingw compiler that came with Qt ?
        No custom install of compiler was used, correct ?

        Also what platform ?

        S Offline
        S Offline
        Sekhar
        wrote on last edited by
        #4

        @mrjj
        yes,it is completely clean default GUI project.
        i am using mingw compiler that came with QT at the time of installing procedure.
        i am using window 7.
        i didn't use any custom install of compiler.

        i was download QT-5.10.0 offline installer.

        aha_1980A 1 Reply Last reply
        0
        • S Sekhar

          @mrjj
          yes,it is completely clean default GUI project.
          i am using mingw compiler that came with QT at the time of installing procedure.
          i am using window 7.
          i didn't use any custom install of compiler.

          i was download QT-5.10.0 offline installer.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #5

          @Sekhar Please check your PATH that it not contains incompatible Qt or MinGW libraries.

          Can you run a plain C++ console program? And a Qt console program?

          Regards

          Qt has to stay free or it will die.

          S 1 Reply Last reply
          2
          • aha_1980A aha_1980

            @Sekhar Please check your PATH that it not contains incompatible Qt or MinGW libraries.

            Can you run a plain C++ console program? And a Qt console program?

            Regards

            S Offline
            S Offline
            Sekhar
            wrote on last edited by
            #6

            @aha_1980
            i tried console c++ program but doesn't work
            Console.JPG

            jsulmJ 1 Reply Last reply
            0
            • S Sekhar

              @aha_1980
              i tried console c++ program but doesn't work
              Console.JPG

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @Sekhar Do you have any anti-virus software running?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Sekhar Do you have any anti-virus software running?

                S Offline
                S Offline
                Sekhar
                wrote on last edited by Sekhar
                #8

                @jsulm
                I doesn't have any anti-virus software's on my PC.
                if i was tried to select new project--> non-QT project --> plain c++ application.
                it will worked. but new project --> Application --> Qt widgets application (or) Qt Console and reaming application didn't work.

                jsulmJ 1 Reply Last reply
                0
                • S Sekhar

                  @jsulm
                  I doesn't have any anti-virus software's on my PC.
                  if i was tried to select new project--> non-QT project --> plain c++ application.
                  it will worked. but new project --> Application --> Qt widgets application (or) Qt Console and reaming application didn't work.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @Sekhar Is E: a local drive or a network drive?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    CroCo
                    wrote on last edited by CroCo
                    #10

                    I suspect the 64 bit issue. Please show us the .pro file and the whole project.

                    jsulmJ 1 Reply Last reply
                    0
                    • C CroCo

                      I suspect the 64 bit issue. Please show us the .pro file and the whole project.

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @CroCo I doubt: he uses a 32bit Qt with 32bit compiler, works fine even on 64bit Windows.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      C 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @CroCo I doubt: he uses a 32bit Qt with 32bit compiler, works fine even on 64bit Windows.

                        C Offline
                        C Offline
                        CroCo
                        wrote on last edited by
                        #12

                        @jsulm he claims that but hard to tell if this is the case. We need to know when Qt installed which compiler being used. I recall long time ago similar problem occurred with me.

                        jsulmJ S 2 Replies Last reply
                        0
                        • C CroCo

                          @jsulm he claims that but hard to tell if this is the case. We need to know when Qt installed which compiler being used. I recall long time ago similar problem occurred with me.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @CroCo See the screenshots above and the build logs in QtCreator

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • C CroCo

                            @jsulm he claims that but hard to tell if this is the case. We need to know when Qt installed which compiler being used. I recall long time ago similar problem occurred with me.

                            S Offline
                            S Offline
                            Sekhar
                            wrote on last edited by
                            #14

                            @CroCo

                            this is my .pro file and doesn't use any cross compilers on it.
                            #-------------------------------------------------

                            Project created by QtCreator 2019-10-03T11:59:25

                            #-------------------------------------------------

                            QT += core gui

                            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                            TARGET = untitled1
                            TEMPLATE = app

                            The following define makes your compiler emit warnings if you use

                            any feature of Qt which has been marked as deprecated (the exact warnings

                            depend on your compiler). Please consult the documentation of the

                            deprecated API in order to know how to port your code away from it.

                            DEFINES += QT_DEPRECATED_WARNINGS

                            You can also make your code fail to compile if you use deprecated APIs.

                            In order to do so, uncomment the following line.

                            You can also select to disable deprecated APIs only up to a certain version of Qt.

                            #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

                            SOURCES +=
                            main.cpp
                            mainwindow.cpp

                            HEADERS +=
                            mainwindow.h

                            FORMS +=
                            mainwindow.ui

                            1 Reply Last reply
                            0
                            • C Offline
                              C Offline
                              CroCo
                              wrote on last edited by CroCo
                              #15

                              @Sekhar do you have another version of mingw in your system? Also, when you installed Qt, which compiler did you use? Moreover, can you show the environment variables related to MinGW and Qt?

                              S 1 Reply Last reply
                              1
                              • jsulmJ jsulm

                                @Sekhar Is E: a local drive or a network drive?

                                S Offline
                                S Offline
                                Sekhar
                                wrote on last edited by
                                #16

                                @jsulm
                                E: is my local drive not a network drive.

                                1 Reply Last reply
                                0
                                • C CroCo

                                  @Sekhar do you have another version of mingw in your system? Also, when you installed Qt, which compiler did you use? Moreover, can you show the environment variables related to MinGW and Qt?

                                  S Offline
                                  S Offline
                                  Sekhar
                                  wrote on last edited by
                                  #17

                                  @CroCo
                                  I think this is you want it.
                                  Untitled.jpg

                                  1 Reply Last reply
                                  0

                                  • Login

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