Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.2.0-beta1
-
OSX 10.10, QC 4.2 snapshot
Description
I cannot reliably reproduce this issue - but this is what triggered it..:
Steps to reproduce:
- have several Qt versions/Kits configured
- open examples from Qt (I've used the OpenGL stuff)
- configure the project with one kit (avoid checking sth on Projects view afterwards)
- Build & Run the example
Current result:
- example might come up, but it might also just not start
- if it doesn't start you'll see sth like the following in Application Output
Starting /Users/chris/Qt5.7.1_snap/Examples/Qt-5.7/opengl/build-paintedwindow-Desktop_5_7_1_snaphot-Debug/paintedwindow.app/Contents/MacOS/paintedwindow... Failed to start program. Path or permissions wrong? /Users/chris/Qt5.7.1_snap/Examples/Qt-5.7/opengl/build-paintedwindow-Desktop_5_7_1_snaphot-Debug/paintedwindow.app/Contents/MacOS/paintedwindow exited with code -1
- using exactly the same command line as listed inside the Application Output works without problems
- hitting Run again does not help
- after using dtruss (strace like) I figured out what could be the cause - it seems as if the working directory is not initialized (or wrongly set?) and a chdir to it does fail which stops the execution
Note: if I'm stuck with a not starting application I switch to Projects view -> current kit -> Run settings. This seems to initialize the working directory correctly and now hitting Run works.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-17749 Project working directory from run settings initially not applied
- Closed