尝试在未安装更新补丁的Windows 10 LTSC 2021上(从massgrave下载)安装ImageGlass 9.3.2版本无法运行。
通过在事件管理器中查看发现报错点发生在KERNELBASE.dll,错误代码是0xC0000602,STATUS_FAIL_FAST_EXCEPTION。
通过查询MSDN得知该错误归咎于Fail Fast(快速失败),一般出现在检测到内存不对劲的时候出现。
进一步查询发现也有现有文章和Issue提到了这个问题,比如 Facepunch/sbox-issues7244 中提到:
Realized i need to add backticks around the property for markdown to not try hiding the potential html tag, issue should have said "Solution was to add <CETCompat>false</CETCompat> to PropertyGroup for the project." But yeah I'll try updating windows next.
可以看出就是ImageGlass构建的时候没有设置CETCompat而导致系统对构建启用了CET控制流保护机制。由于CET在旧系统上表现有问题导致整个build在Unmanaged Code层崩溃。
解决办法:安装最新的Windows安全更新补丁(可以使用Windows Update,也可以使用火绒的漏洞修复)