[Crash] When enabling GBuffer Hints

In the editor 4.3
Show->Developer->Show GBuffer Hints triggers an assert in SceneRenderTargets.h

/** Get the uniform buffer containing GBuffer resources. */
FUniformBufferRHIParamRef GetGBufferResourcesUniformBuffer() const 
{ 
	check(IsValidRef(GBufferResourcesUniformBuffer));
	return GBufferResourcesUniformBuffer; 
}

What ever is causing this issue is also blocking some work on our custom postprocess passes as well. Any love on the issue would be appreciated.

Thanks

/ Kyle

Hi ,

I have submitted a report about this issue to our development team, and they will further investigate the cause. We apologize for any inconvenience this may cause and hope to have it corrected soon.

Thanks,

I’ve hit the same issue and fixed it by adding a ref count inc where I add my custom PostProcess and a ref count dec in the PostProcess::Process() function.

// Called from PostProcessing.cpp
AddCustomPostProcess()
{
    // <snip>
    GSceneRenderTargets.AdjustGBufferRefCount(1);
}

// In CustomPostProcess.cpp
CustomPostProcess::Process()
{
    // <snip>
    GSceneRenderTargets.AdjustGBufferRefCount(-1);
}

Though I am not sure if this is the correct solution…