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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
This is a duplicate of issue #1240963