When I profile desktop builds of my DOTS projects, my Console fills up with errors like these:
When these errors occur, they also produce large spikes in my Profiler graph, which don’t seem to make sense: Frames with these perf spikes also tend to show ECS Systems in the wrong groups (for example, built-in Unity systems will be shown in my custom system groups). This suggests the spikes aren’t actually dips in performance, but an error in the Profiler’s recording.
Every thread I’ve found with mention of ‘Missing Profiler.EndSample’ errors has concluded that they are internal Unity bugs. But they also mostly relate to much older versions of Unity.
I’m wondering if it’s safe to disregard these errors for now, and assume it’s an error in the Profiler/Sample recording. Or, is it possible I’m actually causing these errors in my code?
Fwiw, I’m not currently using any of the new Profiler API in my projects.