Xcode Metal Trace

Code is download from apple official metal4 sample [https://developer.apple.com/documentation/metal/drawing-a-triangle-with-metal-4?language=objc]

enable metal gpu trace in macOS schema and trace a frame in Xcode. Xcode may show segment fault on App from some 'GTTrace' function when click trace button.

When replay a .gputrace file, Xcode may crash , throw an internal error or a XPC error.

The example code using old metal-renderer can trace without any problem and everything works fine.

Test Environment:

Xcode Version 26.2 (17C52)

macOS 26.2 (25C56)

M1 Pro 16GB A2442

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. I'll check the status next time I do a sweep of forums posts where I've suggested bug reports and post any information about changes I am able to share to this thread.

Bug Reporting: How and Why? has tips on creating your bug report.

We have been able to reproduce the problem here and we have filed a bug report. If you file a bug report, please post the feedback number here and I will make sure it gets routed to the correct team.

Xcode Metal Trace
 
 
Q