Assertion failed on expression: 'offsetIndex != -1'

Since we upgrade Unity to 2020.3.34 (from .27) the following error started appearing while async loading/unloading scenes. We’re not sure but this might also be the cause of random freezes in a build on some platform.

Assertion failed on expression: ‘offsetIndex != -1’
0x00007ff7b671f65c (Unity) StackWalker::GetCurrentCallstack
0x00007ff7b6726c59 (Unity) StackWalker::ShowCallstack
0x00007ff7b74b9afc (Unity) GetStacktrace
0x00007ff7b7f1c527 (Unity) DebugStringToFile
0x00007ff7b7f1c242 (Unity) AssertImplementation
0x00007ff7b620c8e0 (Unity) LightProbesManager::GetCount
0x00007ff7b6169ce4 (Unity) LightProbeContext::InitSharedLightProbeData
0x00007ff7b60f56fe (Unity) BeginRenderQueueExtraction
0x00007ff7b63033f4 (Unity) PrepareDrawShadowsCommandStep1
0x00007ff7b62fb092 (Unity) ScriptableRenderContext::ExecuteScriptableRenderLoop
0x00007ff7b68ab94f (Unity) ScriptableRenderContext_CUSTOM_Submit_Internal_Injected

It seems to be related to Light Probes, but we have no idea how to interpret this log.

1 Like

We have the same problem on 2019.4.40 when unloading scene and then calling lightprobes Tetrahedralize asynch. IT trows error, there was none of tha error on 2019.4.32. ehh it seem unity fix one problem and makes different event in such a advance version of unity as .40

Same here on 2021.3.13, it started randomly, when unloading scenes and calling LightProbes.TetrahedralizeAsync()… when we were on 2020 it didn’t gave such problems…

Thanks for letting me know, We have been wonder which version of engine should we upgrade to. I know now that 2021 wont be good choose :slight_smile:

No we are on 2021.3.21 and problem still here

It seems to be the same problem as mentioned here.

I have experienced the same problem.
I remember using LightProbes.Tetrahedralize() instead of LightProbes.TetrahedralizeAsync() to fix the problem.

I mean really? :smile: IT was problem on 2019.4 they fixed it there and now its on 2021 like 5 years later? :slight_smile:

I could be wrong.
But the symptoms that I experienced, that others experienced, were definitely happening.
In addition to this case, many cases have experienced many bugs that were solved or unresolved n years ago.
If a somewhat convincing workaround succeeds, I think it’s good to be satisfied with it and move on.