Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.13.1
-
None
-
FWIW, the following are the compilers QtCreator discovers and queries (with three calls to each of them):
/opt/cuda/bin/g++
/opt/cuda/bin/gcc
/usr/bin/afl-g++
/usr/bin/afl-gcc
/usr/bin/g++
/usr/bin/g++-8
/usr/bin/g++-9
/usr/bin/gcc
/usr/bin/gcc-8
/usr/bin/gcc-9
/usr/bin/i686-w64-mingw32-g++
/usr/bin/i686-w64-mingw32-gcc
/usr/bin/i686-w64-mingw32-gcc-10.2.0
/usr/bin/x86_64-pc-linux-gnu-g++
/usr/bin/x86_64-pc-linux-gnu-g++-8
/usr/bin/x86_64-pc-linux-gnu-g++-9
/usr/bin/x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc-10.2.0
/usr/bin/x86_64-pc-linux-gnu-gcc-8
/usr/bin/x86_64-pc-linux-gnu-gcc-8.4.0
/usr/bin/x86_64-pc-linux-gnu-gcc-9
/usr/bin/x86_64-pc-linux-gnu-gcc-9.3.0
/usr/bin/x86_64-w64-mingw32-g++
/usr/bin/x86_64-w64-mingw32-gcc
/usr/bin/x86_64-w64-mingw32-gcc-10.2.0
/usr/lib/ccache/bin/g++
/usr/lib/ccache/bin/gcc
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gccFWIW, the following are the compilers QtCreator discovers and queries (with three calls to each of them): /opt/cuda/bin/g++ /opt/cuda/bin/gcc /usr/bin/afl-g++ /usr/bin/afl-gcc /usr/bin/g++ /usr/bin/g++-8 /usr/bin/g++-9 /usr/bin/gcc /usr/bin/gcc-8 /usr/bin/gcc-9 /usr/bin/i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-10.2.0 /usr/bin/x86_64-pc-linux-gnu-g++ /usr/bin/x86_64-pc-linux-gnu-g++-8 /usr/bin/x86_64-pc-linux-gnu-g++-9 /usr/bin/x86_64-pc-linux-gnu-gcc /usr/bin/x86_64-pc-linux-gnu-gcc-10.2.0 /usr/bin/x86_64-pc-linux-gnu-gcc-8 /usr/bin/x86_64-pc-linux-gnu-gcc-8.4.0 /usr/bin/x86_64-pc-linux-gnu-gcc-9 /usr/bin/x86_64-pc-linux-gnu-gcc-9.3.0 /usr/bin/x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-10.2.0 /usr/lib/ccache/bin/g++ /usr/lib/ccache/bin/gcc /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
Description
Launching QtCreator it takes multiple seconds before the UI shows up, where most of them seem to be spent launching everything that looks like compilers in my PATH, in total ~99 blocking process calls (+ one call to git and one to cmake).
I'm not sure what the best way to avoid this is, it could execute them asynchronously (or in a background thread), cache the output (based on the mtime of the executable), or delay launching them until the info from them is necessary (e. g. wait until I try to use a kit with a particular compiler).
There is already Re-detect button in the kit configuration, so I assume auto-detection isn't ran every time.
And maybe wait until the UI is ready and add some feedback that something is happening.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19621 toolchain detection may freeze creator
-
- Closed
-