Skip to content

Instantly share code, notes, and snippets.

@elkraneo
Created November 14, 2023 21:59
Show Gist options
  • Save elkraneo/3832ffa4f5fe668d163fef90a4f6d16e to your computer and use it in GitHub Desktop.
Save elkraneo/3832ffa4f5fe668d163fef90a4f6d16e to your computer and use it in GitHub Desktop.

Runtime showStatistics debugOptions crash on iOS RealityKit

FB13373595

When the ".showStatistics" debug option is assigned to an ARView in runtime, the app crashes due to metal encoder buffer offset errors.

The error reads as follows:

-[MTLDebugRenderCommandEncoder validateCommonDrawErrors:]:5775: failed assertion `Draw Errors Validation
Vertex Function(vsSdfFont): the offset into the buffer viewConstants that is bound at buffer index 4 must be a multiple of 256 but was set to 62096.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment