<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/149032>149032</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Bug[clangd]:Clangd cannot start
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          WangZhongDian
      </td>
    </tr>
</table>

<pre>
    
# 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.
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWltv4zoO_jXqixDDlq95yIOTNHt60Dktmp4pcF4GssQ4mtpSIMm97K9fyE7aTht70ma2CywGCHxRLIqkSH7-mFBjRCkBJiieonh-Qhu7VnpyQ2X5z1rJci6oPCkUf5wgP0ckxObRWKiRn4_wvZBc3ZvAb-_uDFMc2ktWUVlyHIy9wAvcvO5DQlypshSydHeJ333MGqoK-fkZiqdBjMI8jlCYB4GXJiGK53jaiMrijQZaFxVgtcJG_BtwFCbjKPPxSmm8EhVgjsIcxbONVt-BWRTPqMilFbM1UDurBEg3ZjRzR2CNFvYRxbM5MP24sd56s8F3oI1QEgdYSOx7kY8NMCW5GdBuNELh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