Issue starting brand new projects
-
I cannot start new projects generated with Qt creator.
I am using the Qt creator and general Qt installation for a long time. Initial install was on Win 7 and is now Win 10 (both 64 bit). Change to Win 10 is more than 6 month ago. The only recent change for OS is changing the OS language from German to English.
Starting a new project with Ctrl+N all seem to work fine. However, when trying to start the new project (even with the template setup only) I receive folowing message:
Starting C:\Source\shadow\build-testSetupHelper-Qt_5_4_1_MinGW_4_9_1-Release\release\tst_TestSetupHelperTest.exe... Failed to start program. Path or permissions wrong? C:\Source\shadow\build-testSetupHelper-Qt_5_4_1_MinGW_4_9_1-Release\release\tst_TestSetupHelperTest.exe exited with code -1
This happens in debug as well as release mode. I have tried different application setups Gui application, command line application and also the unit test setup as the message is from. I am always having the same issue. When starting the debugger it simply quits.
Anyone an idea?
-
Hi
Does it create the .exe?
Have you tried disable shadow build for test?
Did you recently upgrade scanner or anything that
might inspect .exe files upon creation ? -
@koahnig
Ok so it's not a permission issue.Do you have mutiple version of Qt installed?
Can it have shifted path so it see other version on start?
Have you checked the kit. the debugger it points to etc?
Must be a (some sort of) config problem since it didn't happen at the win 10 upgrade.
-
@kshegunov
Yes, it does does.
I have changed sessions. The first session has quite a number of projects (around 15, did not check). The new session had only 3 projects. Did the same thing creating the different projects (GUI, core and also a test project) with two different Qt versions as also used with the larger session. In the smaller session all works.However, loading the test project created in the previous, large session I have the same issue again. Also when loading after deleting the *.pro.user.
-
@mrjj @kshegunov
It gets more ridiculous.Reopened the large session (has 20 entries BTW). Opened another test project and now all works again.
However, a bit more testing showed that it might have been the naming of the project. I used always "Setup" in the name. Before i had often removed my failures. This time I made sure that the project name was new "SetupHelping", it failed again.
When creating another project with the name "S_E_T_U_P_Helping" it works.That is really ridiculous.
-
@koahnig
That indeed sounds ridiculous. I tried on my machine and it works fine, but I wouldn't expect problems, as I'm developing on Linux (Qt Creator 3.6.1 if you're wondering).Any updates on Qt/Qt Creator when you changed the windows version?
What about Win10 security policies and/or antivirus software, those could be interfering with the debugger?
I think MS introduced some changes with the security in Win10, and I believe it also reflects the debugging APIs, so perhaps it's worth taking a look into that? One thing you could also try is to start a console debugging session with gdb and see if it starts okay. If it doesn't I'd search for some debugger/OS incompatibility. -
@koahnig said:
SetupHelpingWow. That I never would have guess in a million years.
I can reproduce it.
If I make brand new project and name it SetupHelping
it cannot run.
and
"Failed to start program. Path or permissions wrong?"Win 10, Qt 5.6. mingw
-
That I never would have guess in a million years.
Neither would have I.
I can reproduce it ... Win 10, Qt 5.6. mingw
What about the creator version? Can you perhaps start the application directly (not through creator/debugger)? Can you "run" it in creator without debugger? Can you start a console debugging session?
-
@kshegunov said:
It cannot run from creator at all.
I can start it in in deploy folder. -
@mrjj @kshegunov
I am using a self-compiled Qt creator 3.1.2 (rather old and compiled with MinGW 4.8.2 32 bit). Qt version 5.4.1 and 5.3.1 precompiled.I thought already that the issue has something to do with my AV-scanner bitdefender.
@mrjj Which are you using?
Possibly it could be the windows defender stuff too.
It is the TARGET name you have to change. Simply changed in .pro to "TARGET = S_e_t_u_p_Helping" or "TARGET = Set_upHelping" and it works.
-
-
@kshegunov
You are the only one on Linux. So, possibly limited to Windows or even Win10.@kshegunov said:
MY_TARGET_NAME = "SetupHelping" TARGET = $(MY_TARGET_NAME)
This does not do the trick.
-
You are the only one on Linux. So, possibly limited to Windows or even Win10.
I'd even say probable. I don't experience any strange behavior by changing the target to the problematic one.
This does not do the trick.
Well, my "shot in dark" approach has met its demise ... sadly I have nothing further to suggest. :|