In binary 4.8 at a certain part of game loop I started getting following errors:
Ensure condition failed: CurrentDepthTexture [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 650]
Stack:
UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() {0x000007fede8fa846} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FDebug::EnsureFailed() {0x000007fede794071} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FDebug::EnsureNotFalse_OptionallyLogFormattedEnsureMessageReturningFalse() {0x000007fede794323} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-D3D11RHI.dll!FD3D11DynamicRHI::ValidateExclusiveDepthStencilAccess() {0x000007fed498c379} + 53 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-D3D11RHI.dll!FD3D11DynamicRHI::RHISetDepthStencilState() {0x000007fed497fc94} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Renderer.dll!FTranslucencyDrawingPolicyFactory::DrawMesh() {0x000007fedc6ff9ce} + 42 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Renderer.dll!FTranslucencyDrawingPolicyFactory::DrawDynamicMesh() {0x000007fedc6feb95} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Renderer.dll!FRendererModule::DrawTileMesh() {0x000007fedc5d6040} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Engine.dll!FTileRenderer::DrawTile() {0x000007fed8120a4b} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Engine.dll!`FCanvasTileRendererItem::Render_GameThread'::`5'::EURCMacro_DrawTileCommand::DoTask() {0x000007fed811899d} + 413 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Engine.dll!TGraphTask<`FCanvasTileRendererItem::Render_GameThread'::`5'::EURCMacro_DrawTileCommand>::ExecuteTask() {0x000007fed8128dd1} + 18 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FTaskThread::ProcessTasks() {0x000007fede6363be} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FTaskThread::ProcessTasksUntilQuit() {0x000007fede6365ed} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-RenderCore.dll!RenderingThreadMain() {0x000007fee8065d3b} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-RenderCore.dll!FRenderingThread::Run() {0x000007fee806624f} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FRunnableThreadWin::Run() {0x000007fede8f65f8} + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() {0x000007fede8e14ad} + 8 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\sou
kernel32.dll {0x00000000772059cd} + 0 bytes
ntdll.dll {0x000000007743b981} + 0 bytes
ntdll.dll {0x000000007743b981} + 0 bytes
So many of them that sudden log dump freezes both PIE window and editor for a good minute. Then game resumes like nothing happened. I tried to find exact location of problem by setting blueprint breakpoints but I wasn’t able to pinpoint a specific node: with breakpoints freezing does not happen (a variable amount of log prints do) and I couldn’t find a node which executes instantly after freeze. Sometimes I get only a single instance of error message above when I stop simulation.
This is what is happening up to freeze: I take away input from pawn and disable collisions on it. Then a timeline adjusts a few material parameters so a post process material covers up screen. timeline also has a few events which control when I teleport pawn to a new location. timeline finishes with removing cover effect from screen, pawn gets input and collision. And around this time freeze occurs.
I’m not sure where to keep digging, there are a quite a few things happening in game at that point.