Solved LLVM ERROR: Cannot chdir into "."! on Qt Creator startup
-
Good morning,
I searched the board before and didn't find any matching topic, so I decided to open a new one for my problem.
I'm developing Qt/QtQuick software using Qt Creator on Windows 10 64-bit. It's a fresh installation made with the Qt Online Installer, I installed the following components: Qt 5.15.2, MinGW 8.1.0 64-bit, Qt Creator 4.14.0, Qt Creator 4.14.0 CDB Debugger Support, Qt Installer Framework 4.0, CMake 3.19.2 64-bit, Ninja 1.10.0
I can use Qt Creator, compile and run my Code without any problems. But on every startup the Qt Creator shows the following error (Stack dump addresses differ) in general messages:
Das Kommando "C:\Qt\Tools\QtCreator\bin\clang\bin\clang-tidy.exe someFilePath -- -print-resource-dir" wurde unnormal beendet. Error while trying to load a compilation database: Could not auto-detect compilation database for file "someFilePath" No compilation database found in C:\Users\tempAdmin or any parent directory fixed-compilation-database: Error while opening fixed database: no such file or directory json-compilation-database: Error while opening JSON database: no such file or directory Running without flags. Error reading configuration from C:\Users\tempAdmin: directory doesn't exist. Error reading configuration from C:: directory doesn't exist. Error reading configuration from C:\Users\tempAdmin: directory doesn't exist. Error reading configuration from C:: directory doesn't exist. LLVM ERROR: Cannot chdir into "."! PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: C:\Qt\Tools\QtCreator\bin\clang\bin\clang-tidy.exe someFilePath -- -print-resource-dir 0x00007FF634C5C7D5 (0x000051234BCD4B71 0x000000B2CB78F6C8 0x0000000000000016 0x0000000000000000) 0x00007FFD6A08CAAD (0x0000000000000001 0x0000000000000000 0x0000000000000000 0x000000B2CB78DBC0), raise() + 0x1DD bytes(s) 0x00007FFD6A08DAB1 (0x0000000000000003 0x0000000000000003 0x0000000000000000 0x000000B2CB78E1D0), abort() + 0x31 bytes(s) 0x00007FF634C032CE (0x00007FF6357BF284 0x000000B2CB78DDC0 0x00007FF6357BF284 0x00007FF6357BF284) 0x00007FF634FA42DB (0x0000000000000000 0x000001FE6083FD20 0x00000000FFFFFFFF 0x000000B2CB78EC58) 0x00007FF634FCF06E (0x000001FE6083FDE0 0x000000B2CB78ECB0 0x0000000000000000 0x000001FE6083FDE0) 0x00007FF63421F71B (0x0000000000000000 0x0000000000000000 0x000001FE607E1000 0x0000000000000000) 0x00007FF634BAADA4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000) 0x00007FFD6A3B7C24 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s) 0x00007FFD6C10D4D1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s) Das Kommando "C:\Qt\Tools\QtCreator\bin\clang\bin\clazy-standalone.exe someFilePath -- -print-resource-dir" wurde unnormal beendet. Error while trying to load a compilation database: Could not auto-detect compilation database for file "someFilePath" No compilation database found in C:\Users\tempAdmin or any parent directory fixed-compilation-database: Error while opening fixed database: no such file or directory json-compilation-database: Error while opening JSON database: no such file or directory Running without flags. LLVM ERROR: Cannot chdir into "."!
One message is displayed in German (my systems language), it translates to:
The command "C:\Qt\Tools\QtCreator\bin\clang\bin\clazy-standalone.exe someFilePath -- -print-resource-dir" exited abnormally.
Is this anything i should worry about? Has this to be fixed?
Additional Information: As specified by our IT dept my user account does not have any administrative permissions on my Windows 10 host. They gave me an account called "tempAdmin", which I should not login to, I should rather run the Installers I need as tempAdmin user, thats what I did. So the file path "C:\Users\tempAdmin" is outside of my home directory and I don't have permissions to access it. Besides this error on startup, everything works fine. The error is also shown on Qt Creator startup without loading a project (Dashboard shown after start).
I'm forced to use Windows, as we develop software targeting Windows. When I used Qt Creator (same Qt version) on a Manjaro Linux host before, I didn't have this problem. (There were no problems at all...)Additional Information on my setup:
- Windows 10 x64 v1909
- Domain user profile, but no roaming profile (everything stored locally)
- The projects and build folders are stored locally
- Used build system: CMake
What I tried so far (without success):
- Search C:\Qt for clang/llvm related config files and check them for path settings pointing to C:\Users\tempAdmin - didn't find any, left the files unmodified
- Check Qt Creator settings for wrong path - didn't find anything there
- Googled the LLVM ERROR with Qt Creator keywords
Feel free to ask for any further details required for debugging.
Any help is appreciated, thanks!
-
Same here under Standard Account (non-Admin) :(
It was fine when I was on Qt 5.15.1 - but after upgrade to 5.15.2 this issue has appeared.
-
Good morning,
just a few days ago I ended up with the following solution, which so far works perfectly for me:
- I uninstalled Qt
- I'd let the admin user grant my user account full access to a new empty folder C:\Qt
- Started Qt installer with my user account, as it had full access to the install destination it didn't bug for any admin access
So far my Qt installation and the updater run fine. Hope this helps you!
-
Thanks for the prompt reply :)
But I think it's a compromise on system security to give a root folder user rights :o
So derived from your reply, I simply run Qt Creator as administrator and it works fine.
Of course it is big compromise on the security but, alas, so far no solution other than this one is available :( -
When it comes to security, I'd rather give a standard user full permissions to a folder that has nothing to do with the OS than granting an application (Qt Creator, including my Qt applications it compiles and runs) administrative access to my whole machine.
I think the standard user solution has less impact on the whole systems security. What could possibly happen? The standard user destroys the Qt installation within that one root folder he has access to, then you could simply reinstall it. For me that sounds way better than giving your user the power to let his Qt application (intentionally or not) delete the whole file system tree ;)
-
But I've seen malwares looking for .exes on the whole system. Wherever they find an .exe with open rights, they attach to them. Last year I have this happened with one of my portable application that started misbehaving afterwards. That's why I'm concerned as it is a root folder and it opens a security backdoor.
Although the Qt 5.15.2 is the last LTS version for non-commercial open-source users, yet some critical fix must be released by the Qt for non-commercial users.
-
@_Hasnain_ And giving an app administrator rights is more secure?!
-
@jsulm of course no way.
But to get rid of the issue, we have only two ways:- Give the /Qt folder full access rights as mentioned by @amwde20 .
- Run Qt Creator as administrator.
Both approaches are insecure :'(
Everything was working fine before the update of Qt Creator and Qt to 5.15.2 from 5.15.1.
Waiting for some 3rd (hopefully secure) approach anxiously...!!!
-
The issue is really so severe in terms of security concerns.
Is there any way to roll back the Qt Creator to previous version?