Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Assertion failed on expression on multi-scene project after unloading a scene (on 2021.3.0 LTS)

Discussion in 'Editor & General Support' started by Caparrini, Apr 18, 2022.

  1. Caparrini

    Caparrini

    Joined:
    Jun 21, 2017
    Posts:
    51
    Since I installed 2021.3 LTS I received this error in the console when I Unload one of my scenes while on Play mode. Since it mentioned the Camera, I deleted the Cinemachine cameras I'm using and just put a standard one, but it still happens. Any idea how can I track where the issue lies?

    Thank you

    Assertion failed on expression: 'offsetIndex != -1'
    UnityEngine.Rendering.RenderPipelineManager: DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,System.Collections.Generic.List`1<UnityEngine.Camera/RenderRequest>,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
     
  2. AustinDrozin

    AustinDrozin

    Joined:
    Jun 8, 2016
    Posts:
    33
    Did you ever find a solution to this? Coming across this same error.
     
  3. Caparrini

    Caparrini

    Joined:
    Jun 21, 2017
    Posts:
    51
    No, still happens
     
  4. danes1111

    danes1111

    Joined:
    Feb 16, 2017
    Posts:
    1
    I've had the same issue, it was caused by
    LightProbes.TetrahedralizeAsync()
    , don't know why, but switching to
    LightProbes.Tetrahedralize()
    fixed it.
     
    Reahreic likes this.
  5. Caparrini

    Caparrini

    Joined:
    Jun 21, 2017
    Posts:
    51
    Yes, I switched to LightProbes.Tetrahedralize() and the error does not appear in the Console anymore. I'm curious about this if Unity can respond. Why does it happen? Doesn't the Async version of it works?
     
  6. AugustinDarreHVR

    AugustinDarreHVR

    Joined:
    Mar 16, 2020
    Posts:
    2
    Having the same issue. Reproduced in Unity 2020.3.41f1.