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

Package: Scriptable Render Pipeline Universal

-

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.