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. GUI Application crashes before launch
Forum Updated to NodeBB v4.3 + New Features

GUI Application crashes before launch

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 4 Posters 4.0k 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.
  • luisrcastanL Offline
    luisrcastanL Offline
    luisrcastan
    wrote on last edited by
    #5

    Hi @jsulm

    Yes, sorry if i didn't explain correctly.

    Using the debug button in the IDLE, the 0xc0000139 error code appear, and in the application output windows prints:

    Debugging starts
    Debugging has finished

    The compile output window prints:
    09:43:39: Running steps for project untitled4...
    09:43:39: Configuration unchanged, skipping qmake step.
    09:43:39: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.5.0/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Users/RCastanon/Documents/test/build-untitled4-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    mingw32-make[1]: Nothing to be done for 'first'.
    mingw32-make[1]: Leaving directory 'C:/Users/RCastanon/Documents/test/build-untitled4-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    09:43:39: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
    09:43:39: Elapsed time: 00:01.

    This was only when I try with the debug mode button.

    Regards
    Raul C,

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

      Do you have any external dependencies for your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      luisrcastanL 1 Reply Last reply
      0
      • SGaistS SGaist

        Do you have any external dependencies for your application ?

        luisrcastanL Offline
        luisrcastanL Offline
        luisrcastan
        wrote on last edited by
        #7

        Hi @SGaist,

        What do you mean by external dependencies?

        At the beginning I've tried to run the project that I've worked long time ago, but after I haven't be able to do it I try to run a bare new one.

        Right now I'm trying to run a default project, the one that is created by default when we create a new project:
        New->Project->GUI application...

        Thanks again

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

          By external dependencies I mean any library that you are using in your application.

          Do you mean that even a default project doesn't start ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          luisrcastanL 1 Reply Last reply
          1
          • SGaistS SGaist

            By external dependencies I mean any library that you are using in your application.

            Do you mean that even a default project doesn't start ?

            luisrcastanL Offline
            luisrcastanL Offline
            luisrcastan
            wrote on last edited by
            #9

            @SGaist ,

            That's correct, a default project does not start...

            jsulmJ 1 Reply Last reply
            0
            • luisrcastanL luisrcastan

              @SGaist ,

              That's correct, a default project does not start...

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

              @luisrcastan Create a console application and check whether this one starts. If it does then most probably it is an issue with your graphics driver.

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

              luisrcastanL 1 Reply Last reply
              1
              • jsulmJ jsulm

                @luisrcastan Create a console application and check whether this one starts. If it does then most probably it is an issue with your graphics driver.

                luisrcastanL Offline
                luisrcastanL Offline
                luisrcastan
                wrote on last edited by
                #11

                Hello @jsulm

                I've created a new project and it seems to work properly...
                But when I added a simple code like
                unsigned int x;
                x=1;

                and I set a breakpoint in x=1;

                The next messages pop out:
                0_1533683711769_7e97b99d-2230-4a2d-8524-4a1c99b2ee43-image.png
                0_1533683736571_7417f5aa-4810-4785-9cef-afbccefb18ac-image.png

                If I have to guess.... i think I'm not using the right compiler, because the compilation does not set any kind of error, but the exe file does not run properly.

                How can I know that I'm using the right compiler?

                Thanks for your support

                jsulmJ 1 Reply Last reply
                0
                • luisrcastanL luisrcastan

                  Hello @jsulm

                  I've created a new project and it seems to work properly...
                  But when I added a simple code like
                  unsigned int x;
                  x=1;

                  and I set a breakpoint in x=1;

                  The next messages pop out:
                  0_1533683711769_7e97b99d-2230-4a2d-8524-4a1c99b2ee43-image.png
                  0_1533683736571_7417f5aa-4810-4785-9cef-afbccefb18ac-image.png

                  If I have to guess.... i think I'm not using the right compiler, because the compilation does not set any kind of error, but the exe file does not run properly.

                  How can I know that I'm using the right compiler?

                  Thanks for your support

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

                  @luisrcastan What happens if you start this app without debugger (Strg-R)?

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

                  luisrcastanL 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @luisrcastan What happens if you start this app without debugger (Strg-R)?

                    luisrcastanL Offline
                    luisrcastanL Offline
                    luisrcastan
                    wrote on last edited by luisrcastan
                    #13

                    Hi @jsulm ,

                    At first look seems like it is working correctly, but as I see, the instructions do not execute.
                    With a new project I added a simple printf("Hello word"); then the system("PAUSE"); instruction.
                    The application output shows:
                    0_1533739677764_42873ad9-2482-4ca2-b5d6-26e1074e0d9f-image.png
                    The console application window does not print anything:
                    0_1533739753809_097c78ae-0066-4754-829d-f9f66a8fbb45-image.png

                    Thanks

                    JonBJ 1 Reply Last reply
                    0
                    • luisrcastanL luisrcastan

                      Hi @jsulm ,

                      At first look seems like it is working correctly, but as I see, the instructions do not execute.
                      With a new project I added a simple printf("Hello word"); then the system("PAUSE"); instruction.
                      The application output shows:
                      0_1533739677764_42873ad9-2482-4ca2-b5d6-26e1074e0d9f-image.png
                      The console application window does not print anything:
                      0_1533739753809_097c78ae-0066-4754-829d-f9f66a8fbb45-image.png

                      Thanks

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by JonB
                      #14

                      @luisrcastan
                      This is guesswork, but if it were me because of where it falls over and the random exit code I would be checking:

                      1. Are you sure the program is finding the correct versions of MinGW C runtime startup library (and standard libraries), and that those are the versions matching what is expected at compilation time?

                      2. Does it make any difference if you compile not-for-debug?

                      3. Have you tried running your program not from inside Qt Creator?

                      4. Take your "Hello world" program and compile it as a standalone C/C++ program quite outside of anything Qt, using the same MinGW compiler. How does that behave?

                      1 Reply Last reply
                      2
                      • luisrcastanL Offline
                        luisrcastanL Offline
                        luisrcastan
                        wrote on last edited by
                        #15

                        Hello guys,

                        Since I thought this was related to some internal configurations, what I did is to clean my PC, I uninstalled all the application that I'm not using currently, cleaned all the frameworks and all visual studio versions.
                        After this clean up, I install QT and the application is running without any problem.

                        Thank you all for your support.

                        Best regards
                        Raul C.

                        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