Issue |
149032
|
Summary |
Bug[clangd]:Clangd cannot start
|
Labels |
new issue
|
Assignees |
|
Reporter |
WangZhongDian
|
# system
- windows10
- vscode
- clangd 19.1.1
# logging
```shell
I[15:54:11.763] Built preamble of size 4369480 for file d:\project\aiAntiCheatClient\src\security\Decrypt.hpp version 1 in 0.40 seconds
I[15:54:11.763] --> workspace/semanticTokens/refresh(1)
I[15:54:11.763] --> textDocument/clangd.fileStatus
I[15:54:11.764] Indexing c++17 standard library in the context of d:\project\aiAntiCheatClient\src\security\Decrypt.hpp
I[15:54:11.764] ASTWorker building file d:\project\aiAntiCheatClient\src\model\modelOpencv.cpp version 1 with command
[D:/project/aiAntiCheatClient/build/Debug]
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.43.34808\\bin\\Hostx64\\x64\\cl.exe" --driver-mode=cl /nologo /TP -DCURL_STATICLIB=1 -DLIBJPEG_STATIC -DLZMA_API_STATIC -DOPJ_STATIC "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\openc7c74d5be81492\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\loggiaf7dec7d28de6\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\libcu46f84d08ce9d2\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\opensb848768c7f118\\p\\include" -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++17 -MDd -Zi /W4 /wd4819 "/FoCMakeFiles\\reasonerEngine.dir\\src\\model\\modelOpencv.cpp.obj" "/FdCMakeFiles\\reasonerEngine.dir\\" /FS -c "-resource-dir=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\lib\\clang\\19" -- "d:\\project\\aiAntiCheatClient\\src\\model\\modelOpencv.cpp"
I[15:54:11.764] <-- reply(1)
I[15:54:11.771] --> textDocument/clangd.fileStatus
I[15:54:11.875] Built preamble of size 5201956 for file d:\project\aiAntiCheatClient\src\Config.hpp version 1 in 0.51 seconds
I[15:54:11.875] --> workspace/semanticTokens/refresh(2)
I[15:54:11.875] --> textDocument/clangd.fileStatus
I[15:54:11.875] ASTWorker building file d:\project\aiAntiCheatClient\src\communication\feedback.hpp version 1 with command inferred from D:\project\aiAntiCheatClient\src\communication\feedback.cpp
[D:/project/aiAntiCheatClient/build/Debug]
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.43.34808\\bin\\Hostx64\\x64\\cl.exe" --driver-mode=cl /nologo -DCURL_STATICLIB=1 -DLIBJPEG_STATIC -DLZMA_API_STATIC -DOPJ_STATIC "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\openc7c74d5be81492\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\loggiaf7dec7d28de6\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\libcu46f84d08ce9d2\\p\\include" "-external:IC:\\Users\\Administrator\\.conan2\\p\\b\\opensb848768c7f118\\p\\include" -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -MDd -Zi /W4 /wd4819 "/FdCMakeFiles\\reasonerEngine.dir\\" /FS -c /std:c++17 "-resource-dir=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\lib\\clang\\19" -- "d:\\project\\aiAntiCheatClient\\src\\communication\\feedback.hpp"
I[15:54:11.876] <-- reply(2)
I[15:54:11.882] --> textDocument/clangd.fileStatus
I[15:54:12.012] Built preamble of size 7580044 for file d:\project\aiAntiCheatClient\src\utils\Base64.hpp version 1 in 0.65 seconds
I[15:54:12.012] --> workspace/semanticTokens/refresh(3)
I[15:54:12.012] --> textDocument/clangd.fileStatus
I[15:54:12.013] <-- reply(3)
I[15:54:12.047] --> textDocument/publishDiagnostics
I[15:54:12.047] --> textDocument/inactiveRegions
I[15:54:12.047] --> textDocument/clangd.fileStatus
I[15:54:12.082] --> textDocument/publishDiagnostics
I[15:54:12.082] --> textDocument/inactiveRegions
I[15:54:12.082] --> textDocument/clangd.fileStatus
I[15:54:12.133] --> textDocument/publishDiagnostics
I[15:54:12.133] --> textDocument/inactiveRegions
I[15:54:12.133] --> textDocument/clangd.fileStatus
I[15:54:14.648] Built preamble of size 33640260 for file d:\project\aiAntiCheatClient\src\utils\Screenshot.hpp version 1 in 3.28 seconds
I[15:54:14.648] --> workspace/semanticTokens/refresh(4)
I[15:54:14.649] <-- reply(4)
I[15:54:14.674] Built preamble of size 33642496 for file d:\project\aiAntiCheatClient\src\utils\Screenshot.cpp version 1 in 3.31 seconds
I[15:54:14.674] --> workspace/semanticTokens/refresh(5)
I[15:54:14.675] <-- reply(5)
I[15:54:14.709] --> textDocument/publishDiagnostics
I[15:54:14.709] --> textDocument/inactiveRegions
I[15:54:14.709] --> textDocument/clangd.fileStatus
I[15:54:14.723] Built preamble of size 34486688 for file d:\project\aiAntiCheatClient\src\communication\feedback.cpp version 1 in 3.36 seconds
I[15:54:14.723] --> workspace/semanticTokens/refresh(6)
I[15:54:14.724] <-- reply(6)
I[15:54:14.769] --> textDocument/publishDiagnostics
I[15:54:14.769] --> textDocument/inactiveRegions
I[15:54:14.770] --> textDocument/clangd.fileStatus
I[15:54:14.784] --> textDocument/publishDiagnostics
I[15:54:14.784] --> textDocument/inactiveRegions
I[15:54:14.785] --> textDocument/clangd.fileStatus
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. <eof> parser at end of file
Signalled while building preamble
Filename: D:\project\aiAntiCheatClient\src\model\modelOpencv.cpp
Directory: D:/project/aiAntiCheatClient/build/Debug
Command Line: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\cl.exe --driver-mode=cl /nologo /TP -DCURL_STATICLIB=1 -DLIBJPEG_STATIC -DLZMA_API_STATIC -DOPJ_STATIC -external:IC:\Users\Administrator\.conan2\p\b\openc7c74d5be81492\p\include -external:IC:\Users\Administrator\.conan2\p\b\loggiaf7dec7d28de6\p\include -external:IC:\Users\Administrator\.conan2\p\b\libcu46f84d08ce9d2\p\include -external:IC:\Users\Administrator\.conan2\p\b\opensb848768c7f118\p\include -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++17 -MDd -Zi /W4 /wd4819 /FoCMakeFiles\reasonerEngine.dir\src\model\modelOpencv.cpp.obj /FdCMakeFiles\reasonerEngine.dir\ /FS -c -resource-dir=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\lib\clang\19 -- d:\project\aiAntiCheatClient\src\model\modelOpencv.cpp
Version: 1
[Error - 15:54:14] The Clang Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 15:54:15] Server process exited with code 3221225501.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs