Skip to content

Errors when running profiler #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mihakrajnc opened this issue Dec 10, 2021 · 6 comments
Open

Errors when running profiler #52

mihakrajnc opened this issue Dec 10, 2021 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@mihakrajnc
Copy link

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.

@Arvtesh
Copy link
Owner

Arvtesh commented Dec 10, 2021

This a duplicate of #44. You can safely remove the line with ProfilingScope reference.

@Arvtesh Arvtesh added the duplicate This issue or pull request already exists label Dec 10, 2021
@Arvtesh
Copy link
Owner

Arvtesh commented Dec 10, 2021

I'm going to remove these line for the next version,

@popcron
Copy link

popcron commented May 8, 2022

i get the exact same issue, commenting this line also aleviates it

@BorpaBoatski
Copy link

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

@abogarsukov-braingames
Copy link

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.

@BorpaBoatski
Copy link

Thanks @abogarsukov-braingames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants