Solved Error running default HelloWorld QML project on clean install. [Win10, Qt5.10]
-
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!
-
Hi
First suspect is always the gfx driver.
Did you update it lately ?
QML requires good openGL support. -
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.
-
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 -
Other OpenGL application are working fine.
More ideas? :) -
@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. -
@maxoox
The usual place to start from a "crash" is to run it from within a debugger? -
-
@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 requirementshttps://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."
-
@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.
-
@maxoox
ok, it does sounds new enough.
Make sure no virus scanner is blocking anything during install. -
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
-
@maxoox
Well i have only had Avast and others do it.
Not windows defender. -
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?
-
@maxoox
Do a non QML project works?
Also you are just using the include mingw compiler?, correct? -
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.
-
@maxoox
So a Widgets project can compile but pressing run does nothing?
Is the .exe file created in build folder? -
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! :)
-
@maxoox
Oh.
good it works!
Happy programming.