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 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.
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.
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.