Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17146

ProjectManager: Sometimes failing to start application

    XMLWordPrintable

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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hunger Tobias Hunger
              cstenger Christian Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes