Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
9.0.0-preview.35
Issue ID
1261912
Regression
Yes
[URP] Non matching Profiler.EndSample error is thrown in the Editor when Profiler is recording
Reproduction steps:
1. Open the attached user's project "Package Upgrade.zip"
2. Turn on the Profiler recording and set it to Editor
3. Observer the Console window
Expected result: no errors related to Non matching Profiler.EndSample are being thrown
Actual result: errors related to Non matching Profiler.EndSample are being thrown
Reproduces on: URP 9.0.0-preview.35 (2020.1.0b16, 2020.2.0a18)
Does not reproduce on: LWRP 4.10.0-preview (2018.4.25f1), URP 7.4.1 (2019.4.4f1), 9.0.0-preview.14 (2020.1.0b16, 2020.2.0a18)
Two first errors being outputted in the console:
Missing Profiler.EndSample (BeginSample and EndSample count must match): Render Camera
Previous 5 samples:
Render Camera
Render Camera
Semaphore.WaitForSignal
WaitForJobGroupID
Shadows.PrepareDrawShadows
In the scope:
Render Camera
Render Camera
UnityEngine.CoreModule.dll!UnityEngine.Rendering::RenderPipelineManager.DoRenderLoop_Internal()
PlayerLoop
Main Thread
Non matching Profiler.EndSample (BeginSample and EndSample count must match): Render Main Shadowmap
Previous 5 samples:
Render Main Shadowmap
RenderLoop.CleanupNodeQueue
Render Main Shadowmap
SRPBatcher.Flush
SRPBShadow.ApplyShader
In the scope:
Render Main Shadowmap
UnityEngine.CoreModule.dll!UnityEngine.Rendering::RenderPipelineManager.DoRenderLoop_Internal()
PlayerLoop
Main Thread
Notes:
-Issue reproduces in Play mode as well
-Issue only reproduces if URP is installed
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Curve" window workspace doesn't update the scale to match the selected curve preset unless reopened
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
This is a duplicate of issue #1240963