Description

Running a project with the RenderOffscreen flag in the DebugGame configuration applied causes the debugger to crash.

 

Tested in 4.21.2 (CL - 4753647), 4.22.1 (CL - 6063286), 4.23 (CL - 6674923)

Steps to Reproduce
  1. Enable [UnrealVS|https://docs.unrealengine.com/en-US/Programming/Development/VisualStudioSetup/UnrealVS/index.html] for Visual Studio
  2. Download the attached [Link Removed]
  3. In the Visual Studio Solution run the project in DebugGame, with the "-game -RenderOffscreen" flags applied

Expected: The project runs the executable and exits on play

Result: The executable crashes on load

Callstack

> RenderOffscreenBS422-Win64-DebugGame.exe!FD3D11Viewport::~FD3D11Viewport() Line 199 C++
[External Code]
[Inline Frame] RenderOffscreenBS422-Win64-DebugGame.exe!FRHIResource::Release() Line 55 C++
RenderOffscreenBS422-Win64-DebugGame.exe!TRefCountPtr<FRHIViewport>::operator=(FRHIViewport * InReference) Line 110 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FRenderResource::ReleaseResource() Line 111 C++
[Inline Frame] RenderOffscreenBS422-Win64-DebugGame.exe!BeginReleaseResource::__l2::<lambda_1d2869826b142d9fb65ce65852e2912a>::operator()(FRHICommandList &) Line 286 C++
[Inline Frame] RenderOffscreenBS422-Win64-DebugGame.exe!TEnqueueUniqueRenderCommandType<`BeginReleaseResource'::`2'::ReleaseCommandName,<lambda_1d2869826b142d9fb65ce65852e2912a> >::DoTask(ENamedThreads::Type) Line 190 C++
RenderOffscreenBS422-Win64-DebugGame.exe!TGraphTask<TEnqueueUniqueRenderCommandType<`BeginReleaseResource'::`2'::ReleaseCommandName,<lambda_1d2869826b142d9fb65ce65852e2912a> > >::ExecuteTask(TArray<FBaseGraphTask *,FDefaultAllocator> & NewTasks, ENamedThreads::Type CurrentThread) Line 850 C++
[Inline Frame] RenderOffscreenBS422-Win64-DebugGame.exe!FBaseGraphTask::Execute(TArray<FBaseGraphTask *,FDefaultAllocator> & CurrentThread, ENamedThreads::Type) Line 514 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FNamedTaskThread::ProcessTasksNamedThread(int QueueIndex, bool bAllowStall) Line 685 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FNamedTaskThread::ProcessTasksUntilQuit(int QueueIndex) Line 582 C++
RenderOffscreenBS422-Win64-DebugGame.exe!RenderingThreadMain(FEvent * TaskGraphBoundSyncEvent) Line 339 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FRenderingThread::Run() Line 489 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FRunnableThreadWin::Run() Line 96 C++
RenderOffscreenBS422-Win64-DebugGame.exe!FRunnableThreadWin::GuardedRun() Line 45 C++
[External Code]

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-75386 in the post.

0
Login to Vote

Fixed
ComponentRendering
Affects Versions4.224.234.21.2
Target Fix4.23
Fix Commit6676503
Main Commit6838042
Release Commit6955818
CreatedMay 30, 2019
ResolvedMay 30, 2019
UpdatedJul 25, 2019