Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Error running default HelloWorld QML project on clean install. [Win10, Qt5.10]

    Installation and Deployment
    3
    19
    4133
    Loading More Posts
    • 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.
    • M
      maxoox last edited by maxoox

      Hello,

      i have a fresh Qt installation (5.10.0) running including QtCreator (4.5.0) on my Windows 10 Machine. Running the default QML Hello World program with the standard "Desktop Qt 5.10.0 MinGW 32Bit"-Kit (Build: Debug) results in an error listed in the Application Output window:
      "The program has unexpectedly finished. The process was ended forcefully."

      So, where can i get a more detailled description of the error to solve that problem? Or any ideas what went wrong? As i mentioned, it's a clean install with the latest offline installer.

      Thanks!

      1 Reply Last reply Reply Quote 1
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        First suspect is always the gfx driver.
        Did you update it lately ?
        QML requires good openGL support.

        1 Reply Last reply Reply Quote 0
        • M
          maxoox last edited by

          Hey, thanks for your quick reply! :)

          Im using a Surface Pro 3 with Win 10 and an Intel HD Graphics chip (onboard). All available Updates for Windows 10 are installed, so I think this includes all drivers too.

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @maxoox last edited by

            Hi
            Have you checked with some other openGL app that its working ?

            I assumed you have installed
            https://www.microsoft.com/en-us/download/details.aspx?id=38826

            1 Reply Last reply Reply Quote 0
            • M
              maxoox last edited by

              Other OpenGL application are working fine.
              More ideas? :)

              mrjj JonB 2 Replies Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion @maxoox last edited by

                @maxoox
                sadly no.
                And just to be clear. A plain fresh QML default project crashes ?

                The openGL app you test with. are they newer date?
                It might be shader revision or other support QML wants that is not correct version.

                1 Reply Last reply Reply Quote 0
                • JonB
                  JonB @maxoox last edited by

                  @maxoox
                  The usual place to start from a "crash" is to run it from within a debugger?

                  1 Reply Last reply Reply Quote 0
                  • M
                    maxoox last edited by

                    @mrjj yeah, it's a complete plain fresh install. I'll deinstall it and install it again, hopefully it will work.

                    @JonB I know, but also the debugger showed no detailled information related to this problem.

                    mrjj 1 Reply Last reply Reply Quote 0
                    • mrjj
                      mrjj Lifetime Qt Champion @maxoox last edited by mrjj

                      @maxoox
                      Hi
                      It wont help installing Qt again.
                      If a clean default QML project crashes,
                      its something on the operating system it dont like or that do not meet minimum requirements

                      https://doc-snapshots.qt.io/qt5-dev/windows-requirements.html
                      https://wiki.qt.io/Qt_5_on_Windows_ANGLE_and_OpenGL

                      "The Qt Quick 2 stack in Qt 5 is based on OpenGL, and requires OpenGL 3.0 (alternatively OpenGL 2.x with the framebuffer_object extension) or higher or OpenGL ES 2.0. The Qt OpenGL module requires OpenGL 1.3 or later."

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        maxoox @mrjj last edited by

                        @mrjj GPU Caps View shows me OpenGL 4.3 and OpenCL 1.2. Maybe some compiler issues. I'm waiting for the reinstall to finish.

                        mrjj 1 Reply Last reply Reply Quote 0
                        • mrjj
                          mrjj Lifetime Qt Champion @maxoox last edited by

                          @maxoox
                          ok, it does sounds new enough.
                          Make sure no virus scanner is blocking anything during install.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            maxoox @mrjj last edited by

                            Make sure no virus scanner is blocking anything during install.

                            Oh, is that the explanation for some timeout errors related to the Online Installer? If yes, this should be fixed to work at least with the Windows default av scanner :D

                            mrjj 1 Reply Last reply Reply Quote 0
                            • mrjj
                              mrjj Lifetime Qt Champion @maxoox last edited by

                              @maxoox
                              Well i have only had Avast and others do it.
                              Not windows defender.

                              1 Reply Last reply Reply Quote 0
                              • M
                                maxoox last edited by maxoox

                                Ok, install finished. Same error as before.

                                Running the Debugger of QtCreator shows error message "Executable Failed":

                                During startup program exited with code 0xc0000139.

                                Searching on the web doesn't show up any solution.

                                Edit: Could this issue be related to a too long file path regarding mingw32-make maybe?

                                mrjj 1 Reply Last reply Reply Quote 0
                                • mrjj
                                  mrjj Lifetime Qt Champion @maxoox last edited by mrjj

                                  @maxoox
                                  Do a non QML project works?
                                  Also you are just using the include mingw compiler?, correct?

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    maxoox last edited by

                                    Just the built-in mingw compiler.

                                    Same issue for Widgets application.

                                    In both cases the build-process runs without errors or warnings. Just running the app doesnt work.

                                    mrjj 1 Reply Last reply Reply Quote 0
                                    • mrjj
                                      mrjj Lifetime Qt Champion @maxoox last edited by

                                      @maxoox
                                      So a Widgets project can compile but pressing run does nothing?
                                      Is the .exe file created in build folder?

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        maxoox last edited by

                                        Hey,

                                        i solved the problem by reinstalling Qt and using the latest Visual Studio compiler instead of MinGW.. i think it somehow has conflicts with pre-installed versions of MinGW.

                                        Well, at least it works. @mrjj Thanks a lot for your help! :)

                                        mrjj 1 Reply Last reply Reply Quote 1
                                        • mrjj
                                          mrjj Lifetime Qt Champion @maxoox last edited by

                                          @maxoox
                                          Oh.
                                          good it works!
                                          Happy programming.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post