Description

This JIRA was created from crash reports submitted by users due to it being one of the top crashes occurring in 4.12.4

This might be a regression because the crash has only just started in 4.12.4. Repro steps currently unknown, so unable to confirm.

Error message:

Access violation - code c0000005 (first/second chance not available)

Source Context:

  119       	
  120       	template<typename ShaderRHIParamRef, typename TRHICmdList>
  121       	void SetParameters(TRHICmdList& RHICmdList, const ShaderRHIParamRef ShaderRHI, const FSceneView& View)
  122       	{
  123       		const auto& ViewUniformBufferParameter = GetUniformBufferParameter<FViewUniformShaderParameters>();
  124       		const auto& FrameUniformBufferParameter = GetUniformBufferParameter<FFrameUniformShaderParameters>();
  125       		const auto& BuiltinSamplersUBParameter = GetUniformBufferParameter<FBuiltinSamplersParameters>();
  126       		CheckShaderIsValid();
  127       		SetUniformBufferParameter(RHICmdList, ShaderRHI, ViewUniformBufferParameter, View.ViewUniformBuffer);
  128       		SetUniformBufferParameter(RHICmdList, ShaderRHI, FrameUniformBufferParameter, View.FrameUniformBuffer);
  129       #if USE_GBuiltinSamplersUniformBuffer
  130       		SetUniformBufferParameter(RHICmdList, ShaderRHI, BuiltinSamplersUBParameter, GBuiltinSamplersUniformBuffer.GetUniformBufferRHI());
  131       #endif
  132       		// Skip if instanced stereo is not enabled
  133 ***** 		if (View.bIsInstancedStereoEnabled && View.Family->Views.Num() > 0)
  134       		{
  135       			// When drawing the left eye in a stereo scene, copy the right eye view values into the instanced view uniform buffer.
  136       			const EStereoscopicPass StereoPassIndex = (View.StereoPass != eSSP_FULL) ? eSSP_RIGHT_EYE : eSSP_FULL;
  137       
  138       			const FSceneView& InstancedView = View.Family->GetStereoEyeView(StereoPassIndex);
  139       			const auto& InstancedViewUniformBufferParameter = GetUniformBufferParameter<FInstancedViewUniformShaderParameters>();
  140       			SetUniformBufferParameter(RHICmdList, ShaderRHI, InstancedViewUniformBufferParameter, InstancedView.ViewUniformBuffer);
  141       		}
  142       	}
  143       
  144       	typedef void (*ModifyCompilationEnvironmentType)(EShaderPlatform, FShaderCompilerEnvironment&);
  145       
  146       	// FShader interface.
  147       	ENGINE_API static void ModifyCompilationEnvironment(EShaderPlatform Platform, FShaderCompilerEnvironment& OutEnvironment) {}
  148       };

Most recent user affected CL: 3028348

Logs:
[Link Removed]
[Link Removed]
[Link Removed]

Steps to Reproduce

Start QA Game.
Enable "Use Instanced Stereo" in the project's VR rendering options.
Restart as prompted.
Type "SynthBenchmark" into the console.
Crash with the attached callstack is seen.

Callstack
UE4Editor_Renderer!FGlobalShader::SetParameters<FRHIPixelShader * __ptr64,FRHICommandList>() [globalshader.h:134]
UE4Editor_Renderer!FPostProcessBenchmarkPS<0>::SetParameters() [gpubenchmark.cpp:64]
UE4Editor_Renderer!RunBenchmarkShader<0>() [gpubenchmark.cpp:139]
UE4Editor_Renderer!RunBenchmarkShader() [gpubenchmark.cpp:172]
UE4Editor_Renderer!RendererGPUBenchmark() [gpubenchmark.cpp:452]
UE4Editor_Renderer!TGraphTask<`FRendererModule::GPUBenchmark'::`2'::EURCMacro_RendererGPUBenchmarkCommand>::ExecuteTask() [taskgraphinterfaces.h:999]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [taskgraph.cpp:932]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [taskgraph.cpp:679]
UE4Editor_RenderCore!RenderingThreadMain() [renderingthread.cpp:319]
UE4Editor_RenderCore!FRenderingThread::Run() [renderingthread.cpp:440]
UE4Editor_Core!FRunnableThreadWin::Run() [windowsrunnablethread.cpp:74]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-32621 in the post.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.12.4
Target Fix4.12.5
Fix Commit3038063
CreatedJun 29, 2016
ResolvedJul 5, 2016
UpdatedSep 16, 2019
View Jira Issue