Description

This is a trending crash coming out of the 4.18 release. Users have not provided any descriptions of their actions when the crash occurred.

Source Context

 1760       template<typename BaseResourceType>
 1761       TD3D11Texture2D<BaseResourceType>* FD3D11DynamicRHI::CreateTextureFromResource(bool bTextureArray, bool bCubeTexture, EPixelFormat Format, uint32 TexCreateFlags, const FClearValueBinding& ClearValueBinding, ID3D11Texture2D* TextureResource)
 1762       {
 1763       	D3D11_TEXTURE2D_DESC TextureDesc;
 1764 ***** 	TextureResource->GetDesc(&TextureDesc);
 1765       
 1766       	const bool bSRGB = (TexCreateFlags & TexCreate_SRGB) != 0;
 1767       
 1768       	const DXGI_FORMAT PlatformResourceFormat = FD3D11DynamicRHI::GetPlatformTextureResourceFormat((DXGI_FORMAT)GPixelFormats[Format].PlatformFormat, TexCreateFlags);
 1769       	const DXGI_FORMAT PlatformShaderResourceFormat = FindShaderResourceDXGIFormat(PlatformResourceFormat, bSRGB);
 1770       	const DXGI_FORMAT PlatformRenderTargetFormat = FindShaderResourceDXGIFormat(PlatformResourceFormat, bSRGB);
Steps to Reproduce

repro steps currently unknown

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

UE4Editor_D3D11RHI!FD3D11DynamicRHI::CreateTextureFromResource<FD3D11BaseTexture2D>() [d3d11texture.cpp:1765]
UE4Editor_D3D11RHI!FD3D11DynamicRHI::RHICreateTexture2DFromResource() [d3d11texture.cpp:1949]
UE4Editor_OculusHMD!OculusHMD::FD3D11CustomPresent::CreateTexture_RenderThread() [oculushmd_custompresent_d3d11.cpp:88]
UE4Editor_OculusHMD!OculusHMD::FCustomPresent::CreateTextureSetProxy_RenderThread() [oculushmd_custompresent.cpp:273]
UE4Editor_OculusHMD!OculusHMD::FLayer::Initialize_RenderThread() [oculushmd_layer.cpp:325]
UE4Editor_OculusHMD!OculusHMD::FOculusHMD::InitializeEyeLayer_RenderThread() [oculushmd.cpp:2410]
UE4Editor_OculusHMD!TGraphTask<`OculusHMD::ExecuteOnRenderThread'::`5'::EURCMacro_ExecuteOnRenderThread>::ExecuteTask() [taskgraphinterfaces.h:785]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [taskgraph.cpp:651]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [taskgraph.cpp:560]
UE4Editor_RenderCore!RenderingThreadMain() [renderingthread.cpp:327]
UE4Editor_RenderCore!FRenderingThread::Run() [renderingthread.cpp:461]
UE4Editor_Core!FRunnableThreadWin::Run() [windowsrunnablethread.cpp:76]

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Platform - XR
Affects Versions4.184.19
Target Fix4.19
Fix Commit3828727
Main Commit3856245
Release Commit3828727
CreatedNov 10, 2017
ResolvedJan 9, 2018
UpdatedApr 27, 2018