Description

This is not a regression. Tested in //UE5/Release-5.0 CL20379098

Editor crashes with an assertion after executing the command r.RHIThread.Enable 2

Steps to Reproduce
  1. Create or open any project
  2. Execute the command r.RHIThread.Enable 2

Expected Results:
A warning to prevent the command since 1 or 0 is expected, or RHIThread would start running on that dedicated thread.

Actual Results:
The editor crashes with an assertion:

Assertion failed: GRHICommandList.OutstandingCmdListCount.GetValue() == 1 [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h] [Line: 5221] Expected only 1 outstanding RHI command list. Outstanding: 2
Callstack
Assertion failed: GRHICommandList.OutstandingCmdListCount.GetValue() == 1 [File:D:\build\++UE5\Sync\Engine\Source\Runtime\RHI\Public\RHICommandList.h] [Line: 5221] Expected only 1 outstanding RHI command list. Outstanding: 2
UnrealEditor-RHI!7fffbdd10000  + 4a03d
UnrealEditor-RHI!7fffbdd10000  + 8d283
UnrealEditor!7ff712140000  + 180af
UnrealEditor!7ff712140000  + 1bf31
UnrealEditor!7ff712140000  + 1e55a
UnrealEditor-Core!FNamedTaskThread::ProcessTasksNamedThread(int,bool) [TaskGraph.cpp:760]
UnrealEditor-Core!FNamedTaskThread::ProcessTasksUntilQuit(int) [TaskGraph.cpp:649]
UnrealEditor-RenderCore!7fff68b70000  + 18f0f4
UnrealEditor-RenderCore!7fff68b70000  + 193444
UnrealEditor-Core!FRunnableThreadWin::Run() [WindowsRunnableThread.cpp:149]
UnrealEditor-Core!FRunnableThreadWin::GuardedRun() [WindowsRunnableThread.cpp:79]
KERNEL32!7fffe6900000  + 17614
ntdll!7fffe7b30000  + 526a1

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Rendering Architecture - RHI
Affects Versions5.1
Target Fix5.4
Fix Commit29402538
CreatedJan 19, 2023
ResolvedNov 15, 2023
UpdatedFeb 29, 2024
View Jira Issue