Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt Creator 11.0.2
-
-
0d8a542b4 (13.0), 251a8a221 (13.0), 2ce6255a7 (13.0), 5d159e618 (13.0), 725cf0637 (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
Issue Links
- relates to
-
QTCREATORBUG-30827 [REG: 12->13] Global imported targets are not added to PATH anymore
- Closed
- resulted in
-
QTCREATORBUG-30827 [REG: 12->13] Global imported targets are not added to PATH anymore
- Closed