question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors when running profiler

See original GitHub issue

I’m using outlines with URP, and when opening the profiler, I get spammed with errors:

Non matching Profiler.EndSample (BeginSample and EndSample count must match): OutlinePass
Previous 5 samples:
	Gfx.SetRenderTarget
	Outline-1024
	Gfx.SetRenderTarget
	OutlinePass
	Outline-1024
In the scope:
	Outline-1024
	ScriptableRenderer.Execute: BaseRenderer
	UniversalRenderPipeline.RenderSingleCamera: Main Camera
	Render Thread

If I comment out the using (new ProfilingScope(cmd, _profilingSampler)) lines in OutlinePass.cs, the errors go away. Not sure if this is an issue with Unity or the OutlinePass.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
abogarsukov-braingamescommented, Mar 10, 2023

I notice this issue is still open. How can I comment out the line without it reverting back after package compilation?

Try installing is as local package (https://docs.unity3d.com/Manual/upm-ui-local.html). This should allow editing it as you like.

0reactions
ProgramPlotamcommented, Mar 13, 2023
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trace Errors And Exceptions Using Profiler
Using SQL Server profiler is the easiest way to capture the errors and exceptions occurring in a single or multiple databases.
Read more >
Troubleshoot profiling errors - Visual Studio (Windows)
Troubleshoot profiling errors and fix issues · In this article · No results · Taking a long time for the results to complete...
Read more >
How to Avoid SQL Server Profiler Pitfalls and Errors
Another common pitfall when using SQL Server Profiler is to run traces on production servers, which are the servers that host your live...
Read more >
How to find what caused errors reported in a SQL Server ...
Don't worry about the 208 errors. 208 is "Object not found". Profiler picks up these due to what's called 'deferred name resolution'.
Read more >
How To: Use SQL Profiler to Monitor Login Failures on The ...
Click on Run. 9. Wait until the error is reproduced, then click on Stop selected trace. You can view the results now. 10....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found