shaderCompiler multi threading deadlock issue
whitemousegary opened this issue · comments
I updated Window SDK to 19041, updated Visual Studio 2019 to the latest version and updated all Windows SDK Version project setting to 10.0.19041.0. Almost all projects could be compiled successfully, except the projects that would trigger/require shader compilation. After a bit of debugging, I found that the problem came from the program shaderCompiler.exe.
When shaderCompiler.exe begins, the process will stop responding. No error, no progress, indefinitely. The following is the most that shaderCompiler.exe reports before it stops responding.
Build started...
1>------ Build started: Project: rtxdi-sample-shaders, Configuration: Release x64 ------
1>[ 2.2%] DXIL OK FusedResamplingPass.hlsl: USE_RAY_QUERY=0 RTXDI_REGIR_MODE=RTXDI_REGIR_DISABLED
I suspect it is a multi threading deadlock issue in the program shaderCompiler.exe.
Please help. Thanks.
Please try editing shaders/CMakeLists.txt
and replacing --parallel
with --verbose
. That should make it work in single-threaded mode and print more information.
In general, I doubt that there is a deadlock issue, as the shader compiler has been used internally in multiple projects, and this has never happened, as far as I know. A hang in DXC sounds more likely.
Thanks. I have tried removing --parallel, and it doesn't help.
I'll try --verbose, so as compiling directly with dxc tomorrow. Will let you know results. Thanks again.