Open baldurk opened 3 years ago
@baldurk Thank you for reporting this issue. We will take a look.
This is not a priority at this time. I don't know when we will get around to it. If someone else wants to investigate it, we would gladly accept a fix. If we see it becomes more prevalent, we can look into it.
I get a crash when compiling shaders to SPIR-V with printf. It seems to be a bit inconsistent and from what I can tell there are unit tests of this that seem to pass, so I think it might be some memory corruption of some kind.
Note all the builds below have
-fcgl -Vd
to disable legalization, since there's a current spirv-tools issue that would crash and confuse issues: KhronosGroup/SPIRV-Tools#4219Running dxc from the latest appveyor or latest vulkan SDK distribution and building the intrinsics.printf.hlsl test shader hits an ICE fairly consistently for me:
Weirdly if I build locally from source in debug it works. In release it works from visual studio but fails on the command line - perhaps due to differences in debug heap. Attaching to the release build gives a callstack of:
But I suspect that's due to heap corruption from earlier in the program. If I enable heap debugging and appverifier then I get a crash earlier: