How to reproduce:
1. Open the “ProfilerWebCamIssue.zip“ project
2. Open Profiler (Window > Analysis > Profiler)
3. Enter the editor's Play Mode
4. Observe the Console
Expected result: No errors are thrown in the Console
Actual result: Two errors are thrown in the Console
Reproducible in: 2023.3.0a2, 6000.0.25f1
Not reproducible in: 2021.3.45f1 2022.3.51f1, 2023.2.0a23
Reproduced on: Windows 11 Pro (23H2), macOS 14.7 (M1, by the reporter), macOS 15.0.1
Not reproduced on: No other environment tested
Notes:
- The two types of errors are:
- “Missing Profiler.EndSample (Every BeginSample call must have a subsequent EndSample call within the same frame)“
- “Non-matching Profiler.EndSample (Every EndSample call must have a preceding BeginSample call within the same frame)“
- Profiler appears to work still and displays data, it’s likely just a false exception
- In the version before regression and some other earlier versions other errors are present, seemingly unrelated to this one