Two ensures fire when opening the TM-ShaderModels Map in QAGame with the -onethread argument. The callstacks look identical with the exception that one is for a pixel shader and the other is for a vertex shader.
Example:
[2017.01.20-17.24.25:048][250]LogOutputDevice:Error: Ensure condition failed: CachedShader == PixelShader->Resource [File:D:\Main\Main_Stream\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 39] [2017.01.20-17.24.25:048][250]LogOutputDevice:Error: Parameters are being set for a PixelShader which is not currently bound [2017.01.20-17.24.25:409][250]LogOutputDevice:Error: Ensure condition failed: CachedShader == VertexShader->Resource [File:D:\Main\Main_Stream\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 38] [2017.01.20-17.24.25:410][250]LogOutputDevice:Error: Parameters are being set for a VertexShader which is not currently bound
Result:
Observe two ensure in the log before a crash occurs (crash tracked with [Link Removed])
[2017.01.20-17.24.25:048][250]LogOutputDevice:Error: Ensure condition failed: CachedShader == PixelShader->Resource [File:D:\Main\Main_Stream\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 39] [2017.01.20-17.24.25:048][250]LogOutputDevice:Error: Parameters are being set for a PixelShader which is not currently bound [2017.01.20-17.24.25:049][250]LogOutputDevice:Error: Stack: [2017.01.20-17.24.25:049][250]LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\main\main_stream\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:200] [2017.01.20-17.24.25:050][250]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\main\main_stream\engine\source\runtime\core\private\misc\assertionmacros.cpp:233] [2017.01.20-17.24.25:050][250]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\main\main_stream\engine\source\runtime\core\private\misc\assertionmacros.cpp:360] [2017.01.20-17.24.25:051][250]LogOutputDevice:Error: UE4Editor-D3D11RHI.dll!ValidateBoundShader() [d:\main\main_stream\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:39] [2017.01.20-17.24.25:051][250]LogOutputDevice:Error: UE4Editor-D3D11RHI.dll!FD3D11DynamicRHI::RHISetShaderUniformBuffer() [d:\main\main_stream\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:716] [2017.01.20-17.24.25:052][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!SetUniformBufferParameterImmediate<FRHIPixelShader * __ptr64,FDeferredLightUniformStruct>() [d:\main\main_stream\engine\source\runtime\shadercore\public\shaderparameterutils.h:480] [2017.01.20-17.24.25:053][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!SetDeferredLightParameters<FRHIPixelShader * __ptr64>() [d:\main\main_stream\engine\source\runtime\renderer\private\shadowrendering.h:148] [2017.01.20-17.24.25:053][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FTranslucentInjectParameters::Set<FRHIPixelShader * __ptr64>() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:701] [2017.01.20-17.24.25:054][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!TTranslucentLightingInjectPS<1,0,0,1>::SetParameters() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:921] [2017.01.20-17.24.25:054][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!SetInjectionShader<1,0>() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:1522] [2017.01.20-17.24.25:055][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!InjectTranslucentLightArray() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:1666] [2017.01.20-17.24.25:055][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::InjectTranslucentVolumeLighting() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:1694] [2017.01.20-17.24.25:056][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::RenderLights() [d:\main\main_stream\engine\source\runtime\renderer\private\lightrendering.cpp:654] [2017.01.20-17.24.25:056][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::Render() [d:\main\main_stream\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:1068] [2017.01.20-17.24.25:057][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!UpdatePlanarReflectionContents_RenderThread() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:266] [2017.01.20-17.24.25:058][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!`FScene::UpdatePlanarReflectionContents'::`10'::EURCMacro_CaptureCommand::DoTask() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:407] [2017.01.20-17.24.25:058][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FScene::UpdatePlanarReflectionContents() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:407] [2017.01.20-17.24.25:059][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FRendererModule::BeginRenderingViewFamily() [d:\main\main_stream\engine\source\runtime\renderer\private\scenerendering.cpp:1887] [2017.01.20-17.24.25:059][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameViewportClient::Draw() [d:\main\main_stream\engine\source\runtime\engine\private\gameviewportclient.cpp:1172] [2017.01.20-17.24.25:060][250]LogOutputDevice:Error: UE4Editor-Engine.dll!FViewport::Draw() [d:\main\main_stream\engine\source\runtime\engine\private\unrealclient.cpp:1185] [2017.01.20-17.24.25:060][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameEngine::RedrawViewports() [d:\main\main_stream\engine\source\runtime\engine\private\gameengine.cpp:486] [2017.01.20-17.24.25:061][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameEngine::Tick() [d:\main\main_stream\engine\source\runtime\engine\private\gameengine.cpp:1230] [2017.01.20-17.24.25:062][250]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::Tick() [d:\main\main_stream\engine\source\runtime\launch\private\launchengineloop.cpp:3019] [2017.01.20-17.24.25:062][250]LogOutputDevice:Error: UE4Editor.exe!GuardedMain() [d:\main\main_stream\engine\source\runtime\launch\private\launch.cpp:166] [2017.01.20-17.24.25:063][250]LogOutputDevice:Error: UE4Editor.exe!GuardedMainWrapper() [d:\main\main_stream\engine\source\runtime\launch\private\windows\launchwindows.cpp:130] [2017.01.20-17.24.25:063][250]LogOutputDevice:Error: UE4Editor.exe!WinMain() [d:\main\main_stream\engine\source\runtime\launch\private\windows\launchwindows.cpp:206] [2017.01.20-17.24.25:064][250]LogOutputDevice:Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253] [2017.01.20-17.24.25:064][250]LogOutputDevice:Error: kernel32.dll!0x00000000773B59BD [2017.01.20-17.24.25:065][250]LogOutputDevice:Error: ntdll.dll!0x00000000774EA2E1 [2017.01.20-17.24.25:066][250]LogOutputDevice:Error:
[2017.01.20-17.24.25:409][250]LogOutputDevice:Error: Ensure condition failed: CachedShader == VertexShader->Resource [File:D:\Main\Main_Stream\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 38] [2017.01.20-17.24.25:410][250]LogOutputDevice:Error: Parameters are being set for a VertexShader which is not currently bound [2017.01.20-17.24.25:411][250]LogOutputDevice:Error: Stack: [2017.01.20-17.24.25:411][250]LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\main\main_stream\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:200] [2017.01.20-17.24.25:412][250]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\main\main_stream\engine\source\runtime\core\private\misc\assertionmacros.cpp:233] [2017.01.20-17.24.25:413][250]LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\main\main_stream\engine\source\runtime\core\private\misc\assertionmacros.cpp:360] [2017.01.20-17.24.25:413][250]LogOutputDevice:Error: UE4Editor-D3D11RHI.dll!ValidateBoundShader() [d:\main\main_stream\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:38] [2017.01.20-17.24.25:418][250]LogOutputDevice:Error: UE4Editor-D3D11RHI.dll!FD3D11DynamicRHI::RHISetShaderParameter() [d:\main\main_stream\engine\source\runtime\windows\d3d11rhi\private\d3d11commands.cpp:755] [2017.01.20-17.24.25:420][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!SetShaderValue<FRHIVertexShader * __ptr64,FVector4,FRHICommandList>() [d:\main\main_stream\engine\source\runtime\shadercore\public\shaderparameterutils.h:43] [2017.01.20-17.24.25:421][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FWriteToSliceVS::SetParameters() [d:\main\main_stream\engine\source\runtime\renderer\public\volumerendering.h:78] [2017.01.20-17.24.25:422][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!InjectTranslucentLightArray() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:1667] [2017.01.20-17.24.25:422][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::InjectTranslucentVolumeLighting() [d:\main\main_stream\engine\source\runtime\renderer\private\translucentlighting.cpp:1694] [2017.01.20-17.24.25:423][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::RenderLights() [d:\main\main_stream\engine\source\runtime\renderer\private\lightrendering.cpp:654] [2017.01.20-17.24.25:424][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::Render() [d:\main\main_stream\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:1068] [2017.01.20-17.24.25:424][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!UpdatePlanarReflectionContents_RenderThread() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:266] [2017.01.20-17.24.25:425][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!`FScene::UpdatePlanarReflectionContents'::`10'::EURCMacro_CaptureCommand::DoTask() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:407] [2017.01.20-17.24.25:425][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FScene::UpdatePlanarReflectionContents() [d:\main\main_stream\engine\source\runtime\renderer\private\planarreflectionrendering.cpp:407] [2017.01.20-17.24.25:426][250]LogOutputDevice:Error: UE4Editor-Renderer.dll!FRendererModule::BeginRenderingViewFamily() [d:\main\main_stream\engine\source\runtime\renderer\private\scenerendering.cpp:1887] [2017.01.20-17.24.25:427][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameViewportClient::Draw() [d:\main\main_stream\engine\source\runtime\engine\private\gameviewportclient.cpp:1172] [2017.01.20-17.24.25:427][250]LogOutputDevice:Error: UE4Editor-Engine.dll!FViewport::Draw() [d:\main\main_stream\engine\source\runtime\engine\private\unrealclient.cpp:1185] [2017.01.20-17.24.25:428][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameEngine::RedrawViewports() [d:\main\main_stream\engine\source\runtime\engine\private\gameengine.cpp:486] [2017.01.20-17.24.25:429][250]LogOutputDevice:Error: UE4Editor-Engine.dll!UGameEngine::Tick() [d:\main\main_stream\engine\source\runtime\engine\private\gameengine.cpp:1230] [2017.01.20-17.24.25:429][250]LogOutputDevice:Error: UE4Editor.exe!FEngineLoop::Tick() [d:\main\main_stream\engine\source\runtime\launch\private\launchengineloop.cpp:3019] [2017.01.20-17.24.25:430][250]LogOutputDevice:Error: UE4Editor.exe!GuardedMain() [d:\main\main_stream\engine\source\runtime\launch\private\launch.cpp:166] [2017.01.20-17.24.25:433][250]LogOutputDevice:Error: UE4Editor.exe!GuardedMainWrapper() [d:\main\main_stream\engine\source\runtime\launch\private\windows\launchwindows.cpp:130] [2017.01.20-17.24.25:433][250]LogOutputDevice:Error: UE4Editor.exe!WinMain() [d:\main\main_stream\engine\source\runtime\launch\private\windows\launchwindows.cpp:206] [2017.01.20-17.24.25:434][250]LogOutputDevice:Error: UE4Editor.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253] [2017.01.20-17.24.25:434][250]LogOutputDevice:Error: kernel32.dll!0x00000000773B59BD [2017.01.20-17.24.25:434][250]LogOutputDevice:Error: ntdll.dll!0x00000000774EA2E1
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-40941 in the post.
1 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.15, 4.16 |
Target Fix | 4.17 |
Fix Commit | 3474934 |
---|---|
Main Commit | 3617655 |
Created | Jan 20, 2017 |
---|---|
Resolved | Jun 6, 2017 |
Updated | Apr 27, 2018 |