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

Crash when loading project with run config with custom executable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.3.0
    • All Other Issues
    • None
    • macOS 10.12.5
      Qt installed via the online installer and up to date.

      What I planned to do:
      Configure Qt Creator to run a custom application that has the current project's application as parameter, such as startaut --cwd /blah /blah/bin/binary. I did that by adding a run configuration with a custom executable. The exact variables I used are these:

      --cwd=%{buildDir} %{CurrentRun:Executable:FilePath}
      

      Then, when trying to run that configuration, Qt Creator crashed. The run config was not yet saved at that point. If I make QtC save the config first, it also crashes when loading the project. I attached backtraces from both crashes.

      • Removing the run configuration from the project's .pro.user file makes it load correctly again.
      • I can reproduce the crash with the existing project in a fresh session.
      • When using a different variable (such as DebuggedExecutable:FilePath) the crash doesn't occur.

      A project with the crashing run config is attached. The application is an empty Qt console program.

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

            con Eike Ziller
            tanuva. Why The
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes