Xcode crashing when debugging shaders for macOS app

Using Xcode 14.0.1, but also happened the previous version:

  • Run my Vulkan (MoltenVK) app, runs and renders fine.
  • Press on the "M" Metal frame capture tool in Xcode, and capture 1 frame.
  • Frame data looks good, multiple passes, framebuffers, textures all looking good.
  • Click on the frame's queue submit point in the Metal debugger.
  • Click on the "bug" symbol to debug shaders.
  • Click on a pixel on the fragment shader selector dialog and click the "bug" icon there to debug that pixel in the fragment shader.

=> Crashes after I start inspecting the shader source, clicking on different likes to see values, etc.

Happens very often, making this otherwise awesome set of GPU tools useless.

More info:

  • shaders compiled with glslc (shaderc v2022.2 v2022.2, spirv-tools v2022.4-dev v2022.3-2-g3a8a961c, glslang 11.1.0-533-gf771c129, Target: SPIR-V 1.0).
  • The Vulkan SDK uses MoltenVK to translate to Metal (I understand it's a relatively thin layer).
  • Other Metal/GPU frame inspection and GPU profiling tools seem to work great, only the metal shader debugger is crashing.
  • The rest of the experience with the Vulkan SDK on macOS has been great.

Thanks.

Hi cococarbon,

I'm sorry to hear you're experiencing a crash under these circumstances. We would like to investigate this issue further. For this, it would help us if you could open a Feedback Assistant ticket (https://developer.apple.com/bug-reporting/) and post back here the Feedback Assistant ID after the case is open.

Feedback Assistant will allow you to attach files. Please make sure to attach the GPU trace file. You can access it through File -> Export after you've performed the capture. The gputrace file will allow us to attempt to reproduce the issue on our end and investigate any problems.

Best regards.

Xcode crashing when debugging shaders for macOS app
 
 
Q