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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
This is a duplicate of issue #1240963