You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[engine-start-failed] clangd could not be started: granting C:/Program Files: out of memory #86
mcppls reported [engine-start-failed]: clangd could not be started: granting C:/Program Files: out of memory
mcppls saved a diagnostic bundle on this machine: ~/AppData/Local/mcppls/bundles/auto-engine-start-failed-20261110T035920Z.zip
Please attach that file to this issue.
Summary
clangd dies with exit code 0xC000001D (STATUS_ILLEGAL_INSTRUCTION) in Building AST...
for one module interface unit of the project. mcppls restarts it 5 times in 5 minutes,
reports engine-crash-loop and writes a bundle. The same file compiles fine with
clang++ 23.1.3 through the normal mcpp build, so this is clangd-side only.
Steps to reproduce
Open the project. mcppls opens the last-used files, including src/ui/monitor_view.cppm.
clangd builds the preamble (257088 bytes), indexes the c++23 std library, then exits
~1-2 s later with 0xC000001D.
Deterministic standalone reproducer (no LSP client needed):
Every run ends in Building AST... followed by exit 0xC000001D.
main.cpp (a non-module TU that includes ftxui and imports the same modules) is fine.
Reduced trigger
The file is a module interface unit:
module;
#include <ftxui/dom/node.hpp> // any ftxui header, user include with an include guard
export module systop:monitor_view;
import std;
export namespace monitor {
auto f(ftxui::Box&) -> int; // any use of an ftxui type in the purview
}
Findings from the reduction (same command, same module cache):
module + guarded ftxui headers + no purview use of their types: OK
using namespace ftxui; alone: OK
any purview use of any ftxui type (Component, Closure, Event, Box, Color, Element...): crash
same position with std::string / a type from an imported module: OK
a synthetic include-guarded header with a single empty struct, used in the purview: crash
the same synthetic header without the #ifndef guard, or #pragma once removed: OK
(pragma once also crashes)
a non-module TU including the same headers: OK
When the module hints are not available (e.g. a fresh CDB where
module-hints/...pcm is missing), clangd falls back to parsing the headers into a
22976824-byte preamble and does not crash, with module file ... not found.
So the crash is on the module path, not in plain header parsing.
Expected
No crash; diagnostics/AST for the module.
Actual
clangd exits 0xC000001D; mcppls sets main.cpp aside and eventually reports
engine-crash-loop.
Attached
auto-engine-crash-loop-20261112T063025Z.zip (extension diagnostics bundle).
The project is public if a checkout helps; the file above is enough to reproduce.
The crash. On Windows 11 24H2 (builds 26100 and later) clangd ended with 0xC000001D on any module unit that includes a header in its global module fragment, imports a module and uses the header's type. The engine (23.1.0-mcppls.12) no longer does. CI on build 26100 runs such units with the released package without a single engine exit.
The out of memory. This was not memory. The crash loop used up the sandbox's fixed table of granted directories. A file that ends clangd now costs only that file (mcppls's own engine answers for it, across edits and sessions). Automatic restarts keep a reserve of engine starts. When starts do run out, the message says so and offers Restart Server.
Reports. The exit is recorded as what it was (e.g. an illegal instruction (0xC000001D), not -1), with the file being built and a command to reproduce it.
Still open: the root cause (one file having two identities under the runner on 24H2) is fixed in openkal-windows 0.22.0, which a later platform update brings to mcppls. Until then the start table is still not recycled; that is harmless without the crash loop.
If you can, please try 0.23.0 on your 24H2 machine and let us know whether it works for you. I'll keep this open until then or until the platform update lands.
Activity
yizhinailong commentedon Nov 10, 2026
auto-engine-start-failed-20261110T035920Z.zip
Sunrisepeak commentedon Nov 10, 2026
更新到 0.21.0 看还有没有这个问题
yizhinailong commentedon Nov 10, 2026
auto-engine-crash-loop-20261110T042307Z.zip
0.21.1: an include completion is accepted once in either mode (#80), …
0.22.0: include completions accepted once in either mode (#80) and a …
yizhinailong commentedon Nov 12, 2026
auto-engine-crash-loop-20261112T015441Z.zip
yizhinailong commentedon Nov 12, 2026
auto-engine-start-failed-20261112T065515Z.zip
clangd exits with 0xC000001D while building AST for a module unit that uses a type from an included (guarded) header
Environment
payload built 2026-11-11T04:17:41Z, commit 9e31bf6 (dirty)
Summary
clangd dies with exit code 0xC000001D (STATUS_ILLEGAL_INSTRUCTION) in
Building AST...for one module interface unit of the project. mcppls restarts it 5 times in 5 minutes,
reports engine-crash-loop and writes a bundle. The same file compiles fine with
clang++ 23.1.3 through the normal mcpp build, so this is clangd-side only.
Steps to reproduce
~1-2 s later with 0xC000001D.
Deterministic standalone reproducer (no LSP client needed):
okrun.exe clangd.okb
--check=src/ui/monitor_view.cppm
--compile-commands-dir=/cdb
--experimental-modules-support --log=info
Every run ends in
Building AST...followed by exit 0xC000001D.main.cpp (a non-module TU that includes ftxui and imports the same modules) is fine.
Reduced trigger
The file is a module interface unit:
module;
#include <ftxui/dom/node.hpp> // any ftxui header, user include with an include guard
export module systop:monitor_view;
import std;
export namespace monitor {
auto f(ftxui::Box&) -> int; // any use of an ftxui type in the purview
}
Findings from the reduction (same command, same module cache):
using namespace ftxui;alone: OK(pragma once also crashes)
When the module hints are not available (e.g. a fresh CDB where
module-hints/...pcm is missing), clangd falls back to parsing the headers into a
22976824-byte preamble and does not crash, with
module file ... not found.So the crash is on the module path, not in plain header parsing.
Expected
No crash; diagnostics/AST for the module.
Actual
clangd exits 0xC000001D; mcppls sets main.cpp aside and eventually reports
engine-crash-loop.
Attached
auto-engine-crash-loop-20261112T063025Z.zip (extension diagnostics bundle).
The project is public if a checkout helps; the file above is enough to reproduce.
0.23.0: a file that ends clangd costs the session that file, the sess…
Sunrisepeak commentedon Nov 13, 2026
@yizhinailong 更新到 0.23.0 再测试一下
speak-agent commentedon Nov 13, 2026
v0.23.0 fixes the crash behind this report:
0xC000001Don any module unit that includes a header in its global module fragment, imports a module and uses the header's type. The engine (23.1.0-mcppls.12) no longer does. CI on build 26100 runs such units with the released package without a single engine exit.out of memory. This was not memory. The crash loop used up the sandbox's fixed table of granted directories. A file that ends clangd now costs only that file (mcppls's own engine answers for it, across edits and sessions). Automatic restarts keep a reserve of engine starts. When starts do run out, the message says so and offers Restart Server.an illegal instruction (0xC000001D), not-1), with the file being built and a command to reproduce it.Still open: the root cause (one file having two identities under the runner on 24H2) is fixed in openkal-windows 0.22.0, which a later platform update brings to mcppls. Until then the start table is still not recycled; that is harmless without the crash loop.
If you can, please try 0.23.0 on your 24H2 machine and let us know whether it works for you. I'll keep this open until then or until the platform update lands.
yizhinailong commentedon Nov 14, 2026
@Sunrisepeak 已经可以正常提示了