# Crash when PSO precache + cache occurs while Insights tracing 

**URL:** <https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004>\
**Category:** Rendering\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [October 22, 2025, 9:57am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004 "2025-10-22T09:57:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 22, 2025, 9:57am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/1 "2025-10-22T09:57:10Z")

</div>

This question was created in reference to: [Crash when compiling bundled PSOs with Insights [Content removed]

Hi,

We are on UE5.6 (so it contains CL 41715756) however we are experiencing this same crash only while insights tracing is enabled.

The repro is to launch a Development build with `-tracefile=trace` and the crash occurs on the first frame (or quickly following) when PSO caching is resumed (and PSO precache is enabled).

Note: PSO cache startup mode is 0, and pso precache is disabled in the .ini. They are manually resumed / enabled through CVar once the loading screen appears. **The crash started occurring after doing that change to our code**.

Thanks in advance,

Hugo

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [October 22, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/2 "2025-10-22T13:11:45Z")

</div>

Hi Hugo,

Thanks for reaching out. Just to confirm, do you also encounter this crash when running your development build with the RHI breadcrumbs support compiled out ( **WITH\_RHI\_BREADCRUMBS 0** )? If you can run your build without the breadcrumb code, this can indicate whether or not the CL you pointed out actually fixed the PSO compilation race condition. Would you happen to have more information about the crash, such as log statements, dump files, etc.? Unfortunately, that call stack you provided does not reveal much about why the crash occurred.

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [October 23, 2025, 5:29am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/3 "2025-10-23T05:29:07Z")

</div>

Hi Hugo,

Okay, if you can repro this in a sample project, that would be hugely helpful. Please let me know once you have this available.

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [October 29, 2025, 11:01am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/4 "2025-10-29T11:01:46Z")

</div>

Hi Hugo,

It looks like that change could be useful. Would you mind trying it out and reporting back here if it fixes your crash? I could then look into getting this merged into our codebase.

---

<div class="post-metadata">

**Author:** ![TimStullich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimStullich](https://forums.unrealengine.com/u/TimStullich)\
**Post date:** [October 30, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/5 "2025-10-30T13:57:03Z")

</div>

Ok, thanks for letting me know. I let the team know that the fix should be considered for acceptance, as you were to confirm that it works for you. Our team is still reviewing the PR, but I hope to have an update on the PR by the end of next week. Please let me know if you have any further questions, though.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 22, 2025, 3:44pm UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/6 "2025-10-22T15:44:46Z")

</div>

Hi Tim,

Tweaking WITH\_RHI\_BREADCRUMBS in Engine\Source\Runtime\RHI\Public\RHIBreadcrumbs.h to the following

```auto
#ifndef WITH_RHI_BREADCRUMBS
#define WITH_RHI_BREADCRUMBS 0
#endif

```

unfortunately I encounter a lot of compilation errors. Locally we have fixed the crash like so if that helps:

```auto
FGraphicsPipelineState* PipelineStateCache::GetAndOrCreateGraphicsPipelineState(FRHICommandList& RHICmdList, const FGraphicsPipelineStateInitializer& Initializer, EApplyRendertargetOption ApplyFlags)
{
...
		FPSOCompilationDebugData PSOCompilationDebugData;
#if WITH_RHI_BREADCRUMBS
		if (DoAsyncCompile && false) // <---
		{
			PSOCompilationDebugData.BreadcrumbRoot = FRHIBreadcrumbNode::GetNonNullRoot(RHICmdList.GetCurrentBreadcrumbRef());
			PSOCompilationDebugData.BreadcrumbNode = PSOCompilationDebugData.BreadcrumbRoot
				? RHICmdList.GetCurrentBreadcrumbRef()
				: nullptr;
		}
#endif // WITH_RHI_BREADCRUMBS
...
}

```

and the same for PipelineStateCache::GetAndOrCreateComputePipelineState().

I will try to repro in a simpler project so hopefully I can send a sample project.

Best,

Hugo

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 29, 2025, 9:02am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/7 "2025-10-29T09:02:49Z")

</div>

Hi Tim,

I unfortunately couldn’t reply in Lyra with a similar setup, however I stumbled this PR: [https://github.com/EpicGames/UnrealEngine/pull/13754](https://github.com/EpicGames/UnrealEngine/pull/13754)

Does it make sense to you ?

Thanks,

Hugo

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 29, 2025, 11:35am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/8 "2025-10-29T11:35:58Z")

</div>

Hi Tim,

I can confirm the crash is gone with that change applied (replacing the ` && false` we had instead).

Best,

Hugo

---

<div class="post-metadata">

**Author:** ![hzFishy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hzfishy/32/1009709_2.png) [@hzFishy](https://forums.unrealengine.com/u/hzFishy)\
**Post date:** [August 10, 2026, 9:47am UTC](https://forums.unrealengine.com/t/crash-when-pso-precache-cache-occurs-while-insights-tracing/2680004/9 "2026-08-10T09:47:15Z")

</div>

Hello, as for 5.6.1 this crash still happens, is there any way to solve it without engine changes ?
