Packaged game crashing on level transition (Ensure condition failed: GetShadowIndex() == 0)

Hello all,
I’ve been struggling with this issue for around a month now with no end in sight. Any help will be greatly appreciated.

After upgrading my project from 4.24 to 4.25 my game keeps crashing upon changing level when playing the packaged build, but not in the editor.
The crash is random, I can sometimes change the level 2 times or 20 times before a crash.
The error I get initially is either blank, or looks like this:

Capture.PNG

I’ve tried a lot of things but I can’t seem to figure this out,
Here is the crash context:

<ErrorMessage>Assertion failed: ComponentsThatNeedEndOfFrameUpdate.IsValidIndex(ArrayIndex) [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/Engine/Private/LevelTick.cpp] [Line: 863]

</ErrorMessage>

And here is the debug text document with the crash:

[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: Ensure condition failed: GetShadowIndex() == 0 [File:Runtime\Core\Public\HAL/IConsoleManager.h] [Line: 1262]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error:
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: Stack:
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff610b2e097 UE4Game.exe! ?? ::XZ::QEBA::<lambda_d35e4b9bf9e52215be036f3de5170712::operator()() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60f333c5d UE4Game.exe!UWorld::MarkActorComponentForNeededEndOfFrameUpdate() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: Ensure condition failed: GetShadowIndex() == 0 [File:Runtime\Core\Public\HAL/IConsoleManager.h] [Line: 1262]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60f006abb UE4Game.exe!USceneComponent::PropagateTransformUpdate() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60f016d74 UE4Game.exe!USceneComponent::UpdateComponentToWorldWithParent() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error:
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b3daef5 UE4Game.exe!USceneComponent::UpdateComponentToWorld() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: Stack:
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60f015e20 UE4Game.exe!USceneComponent::UpdateChildTransforms() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff610b2e097 UE4Game.exe! ?? ::XZ::QEBA::<lambda_d35e4b9bf9e52215be036f3de5170712::operator()() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b3b4afd UE4Game.exe!UPaperFlipbookComponent::CalculateCurrentFrame() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60f333c5d UE4Game.exe!UWorld::MarkActorComponentForNeededEndOfFrameUpdate() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b3b73c1 UE4Game.exe!UPaperFlipbookComponent::CreateSceneProxy() ]
[2020.08.03-08.22.42:077][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b3b4b1f UE4Game.exe!UPaperFlipbookComponent::CalculateCurrentFrame() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b3b73c1 UE4Game.exe!UPaperFlipbookComponent::CreateSceneProxy() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60d660d69 UE4Game.exe!?AddPrimitive@FScene@@UEAAXPEAVUPrimitiveComponent@@@Z() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60d660d69 UE4Game.exe!FScene::AddPrimitive() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60ef3d0d4 UE4Game.exe!operator<<() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60ef3d0d4 UE4Game.exe!operator<<() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b406cb3 UE4Game.exe!ParallelForImpl::TParallelForData<TFunctionRef<void __cdecl(int)> >::Process() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b406cb3 UE4Game.exe!ParallelForImpl::TParallelForData<TFunctionRef<void __cdecl(int)> >::Process() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b404fdd UE4Game.exe!TGraphTask<ParallelForImpl::TParallelForTask<TFunctionRef<void __cdecl(int)> > >::ExecuteTask() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60b404fdd UE4Game.exe!TGraphTask<ParallelForImpl::TParallelForTask<TFunctionRef<void __cdecl(int)> > >::ExecuteTask() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf95346 UE4Game.exe!FTaskThreadAnyThread::ProcessTasks() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf95346 UE4Game.exe!FTaskThreadAnyThread::ProcessTasks() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf962ed UE4Game.exe!FTaskThreadAnyThread::ProcessTasksUntilQuit() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf962ed UE4Game.exe!FTaskThreadAnyThread::ProcessTasksUntilQuit() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf9ceeb UE4Game.exe!FTaskThreadAnyThread::Run() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60bf9ceeb UE4Game.exe!FTaskThreadAnyThread::Run() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60c41386f UE4Game.exe!FRunnableThreadWin::Run() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60c41386f UE4Game.exe!FRunnableThreadWin::Run() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60c40a990 UE4Game.exe!FRunnableThreadWin::GuardedRun() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ff60c40a990 UE4Game.exe!FRunnableThreadWin::GuardedRun() ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ffa7df97bd4 KERNEL32.DLL!UnknownFunction ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ffa7f40ce51 ntdll.dll!UnknownFunction ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ffa7df97bd4 KERNEL32.DLL!UnknownFunction ]
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error:
[2020.08.03-08.22.42:078][511]LogOutputDevice: Error: [Callstack] 0x00007ffa7f40ce51 ntdll.dll!UnknownFunction ]

If you need any more information I’ll be happy to give it (I’m kind of a noob with this sort of thing)

Thank you for any help, it’s greatly appreciated!

2 Likes