Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Deep Profile -> Missing Profiler.EndSample

Discussion in 'Editor & General Support' started by Reahreic, Oct 27, 2022.

  1. Reahreic

    Reahreic

    Joined:
    Mar 23, 2011
    Posts:
    254
    Looks like there's a failure in the profiler under 2022.1.16f1 when Deep Profile is active. As soon as the session starts recording I get multiple of the following error:

    Missing Profiler.EndSample (Every BeginSample call must have a subsequent EndSample call within the same frame): PreUpdate.NewInputUpdate
    Previous 5 samples:
    TextRendering.CollectGarbage
    updateScene.Invoke
    WaitForRenderJobs
    Gfx.EndAsyncJobFrame
    ReflectionProbes.Update
    In the scope:
    PreUpdate.NewInputUpdate
    PlayerLoop
    Main Thread

    and
    Missing Profiler.EndSample (Every BeginSample call must have a subsequent EndSample call within the same frame): FrameEvents.NewInputBeforeRenderUpdate
    Previous 5 samples:
    WaitForRenderJobs
    Gfx.EndAsyncJobFrame
    FrameEvents.XREndFrame
    CoroutinesDelayedCalls
    PlayerEndOfFrame
    In the scope:
    FrameEvents.NewInputBeforeRenderUpdate
    PlayerLoop
    Main Thread





    Anyone know of a workaround?