Lyra [LyraStarterGame] RHI DirectX 11 crashing

Hello mates :wink:

I got LyraSampleStarter and I made some changes…with that said I noticed if you set RHI to DirectX 11 it crashes (build). So at this time I could do only DirectX 12, which is little bit nah. Our game project should be even for DirectX 11 only devices portable.

I mean, there are already some questions about the same topic, but nobody seems to find any way to fix.

Thank you for your answers :3

Feedback from build:

Assertion failed: !ActivePrecachingTasks.Contains(PrecachePSOHash) [File:D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Private\PipelineStateCache.cpp] [Line: 942] 



0x00007ff756b37f53 LivingHell.exe!FPrecacheGraphicsPipelineCache::TryAddNewState() []
0x00007ff756b05173 LivingHell.exe!PipelineStateCache::PrecacheGraphicsPipelineState() []
0x00007ff758b10618 LivingHell.exe!PrecachePSOs() []
0x00007ff7586d4017 LivingHell.exe!FMaterialShaderMap::CollectPSOs() []
0x00007ff7586db99c LivingHell.exe!FMaterialPSOPrecacheCollectionTask::DoTask() []
0x00007ff7586e3d2a LivingHell.exe!TGraphTask<FMaterialPSOPrecacheCollectionTask>::ExecuteTask() []
0x00007ff753494a80 LivingHell.exe!<lambda_17c904c32264d0348d15245fba0e1bff>::operator()() []
0x00007ff75349bc13 LivingHell.exe!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * ptr64 cdecl(bool),48>::TTaskDelegateImpl<<lambda_17c904c32264d0348d15245fba0e1bff>,0>::CallAndMove() []
0x00007ff7534a8e45 LivingHell.exe!LowLevelTasks::FTask::ExecuteTask() []
0x00007ff7534a8cf2 LivingHell.exe!LowLevelTasks::FScheduler::ExecuteTask() []
0x00007ff75348f438 LivingHell.exe!LowLevelTasks::FScheduler::TryExecuteTaskFrom<&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>() []
0x00007ff7534c9972 LivingHell.exe!LowLevelTasks::FScheduler::WorkerMain() []
0x00007ff75349a880 LivingHell.exe!UE::Core::Private::Function::TFunctionRefCaller<FUniqueBuffer cdecl(unsigned int64),FUniqueBuffer cdecl(unsigned int64)>::Call() []
0x00007ff753609729 LivingHell.exe!FThreadImpl::Run() []
0x00007ff753b3e3b2 LivingHell.exe!FRunnableThreadWin::Run() []
0x00007ff753b361b0 LivingHell.exe!FRunnableThreadWin::GuardedRun() []
0x00007ff87894269d KERNEL32.DLL!UnknownFunction []
0x00007ff878e0a9f8 ntdll.dll!UnknownFunction []

Crash in runnable thread Background Worker #10f

My specs:

GPU: AMD Radeon RX 6800 XT
CPU: AMD Ryzen 7 5700X 8-Core
RAM: 64 GB 3200 Mhz Kingston fury
MB: ASUS TUF GAMING B550 - PLUS

Just found out, that Nanite does not support DirectX 11…

Oh, I didn’t know, thanks for letting me know!

Found this on twitter from @StrangerGwenn:

“Nanite DX11 support is deprecated, and will be deleted in UE 5.1” - things I did not want to read today…"

This technically means that you should be able to use Unreal Engine 5.0.3 to create the project.

Well, as far I know right now I am trying to do different builds with different settings

For example:

  • VULKAN_RayTracing_Off
  • VULKAN_RayTracing_On_NANITE - Crashes engine
  • DirectX11_RayTracing_On_NANITE
  • DirectX12_RayTracing_Off
    etc…

So I could know what to do next.

Without knowing much of the specifics of your project, you should be fine with only DX12. Here is from the steam hardware survey:

NOV DEC JAN MAR
DirectX 12 GPUs 90.68% 90.26% 90.37% 94.47%
DirectX 11 GPUs 1.61% 1.65% 1.66% 0.85%
DirectX 10 GPUs 0.94% 0.96% 0.95% 0.51%
DX 9 Shader Model 2b and 3.0 GPUs 0.02% 0.02% 0.02% 0.01%
DX 9 Shader Model 2.0 GPUs 0.00% 0.00% 0.00% 0.00%
DirectX 8 GPUs and below 6.75% 7.11% 7.00% 4.16%

Ohh okay, thank you for these hardware survey. I will let you know if I found out something good to fix it or atleast make it work :smiley:

Sounds great! Best of luck with your project!

Sorry to disturb. Have you found the solution to run Lyra build with d3d11?

Hi…not at all.
I did one thing and thats = remove Lyra completely (like new project without Lyra)

1 Like