Your stream test passed with a warning: the app crashed the first time it started, and ran when it was started again. Your app works — but its first start on a fresh machine is heavy enough to fall over. This page explains what an Unreal app does when it first starts, why that can crash on a streaming machine, what our system does about it, and how to make the first start smooth.
| Stream test result | What it means | What to do |
|---|---|---|
| Passed | The app started and streamed on the first try | Nothing |
| Passed with a warning: crashed on launch 1 (or 1 and 2), ran on the next | The first start on a fresh machine is too heavy. Viewers who are first on a machine can hit the same crash | Package your shader pipeline cache with the build (How to fix it) |
| Failed: crashed on all 3 launches | The app does not start on our machines at all | A different problem: see the crash details in the test result, or test it on your own PC |
A shader is a small program that runs on the graphics card and decides how every surface, light and effect looks. A game has thousands of them. When you package your project, Unreal compiles them into a shader library that ships with the build.
That is not the end of the work. Before the graphics card can draw with a shader, the graphics driver has to turn it into a pipeline state (PSO) for that exact graphics card and driver. On DirectX 12 and Vulkan this happens while the app runs, and the driver keeps the result in a cache on the machine. The first start on a machine has an empty cache, so the app creates hundreds or thousands of pipeline states at once: the processor, the graphics card and memory are all working hard for the first seconds or minutes. From the second start on, the driver reads them from its cache and the start is much lighter.
On your own PC you rarely notice: you started the game many times, your cache is warm. A streaming machine that has never run your build starts cold.
The second start has less to do, which is why it works.
So your viewers do get the stream — but the one who is first on a machine waits through a crash and a restart. It works, and it is an unpleasant first impression. Each streaming machine starts cold the first time it runs your build, so this can happen more than once.
-logPSO, play through your main levels and views, and close the app. Unreal writes recorded .rec.upipelinecache files in the project's Saved/CollectedPSOs folder.ShaderPipelineCacheTools commandlet (expand) with the shader info files from the cook, and put the resulting .spc file in Build/Windows/PipelineCaches in your project.r.PSOPrecaching=1, default in recent versions); it creates pipeline states while assets load instead of on first use.Unreal's documentation calls this "PSO caching" (bundled PSO cache and PSO precaching); search for those terms for your engine version — the exact steps differ slightly between versions.
DXCache folder under %LOCALAPPDATA%\NVIDIA; Windows Disk Cleanup also offers "DirectX Shader Cache").Send us the stream test result from the upload window, and we will look at the crash details from each launch with you.
Last updated