Description

A crash occurs when creating a Render Target 2d and setting the texture target at runtime.

After running some more tests, the crash seems to occur when setting the texture target, as the creation of the Render Target 2D seems to function as expected. It is the combination of creating and setting at runtime which seems to be the culprit.

This crash occurs in the binary releases:
4.13.2 - 3172292
4.14.3 - 3249277
4.15 Preview 3 - 3278667

Steps to Reproduce

1. Open attached project.
2. Press PIE

Outcome A crash occurs.

Expected The texture target should be set based on the view direction scene capture component of the dynamically created render target 2d texture.

Callstack

UE4Editor_Engine!FSceneView::FSceneView() sceneview.cpp:623
UE4Editor_Renderer!CreateSceneRendererForSceneCapture() scenecapturerendering.cpp:378
UE4Editor_Renderer!CreateSceneRendererForSceneCapture() scenecapturerendering.cpp:477
UE4Editor_Renderer!FScene::UpdateSceneCaptureContents() scenecapturerendering.cpp:506
UE4Editor_Engine!USceneCaptureComponent2D::UpdateDeferredCaptures() scenecapturecomponent.cpp:409
UE4Editor_Renderer!FRendererModule::BeginRenderingViewFamily() scenerendering.cpp:1794
UE4Editor_Engine!UGameViewportClient::Draw() gameviewportclient.cpp:1129
UE4Editor_Engine!FViewport::Draw() unrealclient.cpp:1163
UE4Editor_UnrealEd!UEditorEngine::Tick() editorengine.cpp:1615
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() unrealedengine.cpp:371
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2859
UE4Editor!GuardedMain() launch.cpp:152
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126
UE4Editor!WinMain() launchwindows.cpp:202
UE4Editor!__scrt_common_main_seh() exe_common.inl:264
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

4
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.13.24.14.34.154.21
CreatedFeb 2, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021