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

Many Qml-Modules: run environment PATH can become way too long (Error 0xc0000017)

    XMLWordPrintable

Details

    • Windows
    • 0d8a542b4 (13.0), 251a8a221 (13.0)

    Description

      When activating the "Add build library search path" option (which is essential to have the Qt DLLs found), Creator seems to add the path for each cmake target, too.

      On Windows the PATH variable size seems to be rather limited, looks like 2047 bytes is the maximum.

      With non trivial applications using e.g. lots of Qt Qml modules (each forming a cmake target), this limit is easily reached.

      Trying to run such an application will result in a windows error dialog mentioning some 0xc0000017 error (which can mean a lot of things, googling this error will result in useful tips like exchanging faulty RAM).

      Instead of buying new RAM the workaround is to manually fix the run environment to contain a reasonable PATH variable.

      • Directories of static Qml modules should not be added to the PATH
      • Qt Creator should itself check the build environment for variables exceeding Windows limitations and give a helpful error message instead of letting Windows confuse developers

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes