Summary
With Substrate enabled, the editor hangs forever as soon as a Material Function’s preview material needs to compile. It happens even with a brand-new Material Function containing only a Constant node. With Substrate disabled, everything works normally.
What Type of Bug are you experiencing?
Editor
Steps to Reproduce
- Open a project with Substrate enabled (Project Settings > Engine > Rendering > Substrate Materials = enabled).
- In the Content Browser, right-click > Materials > Material Function to create a new Material Function.
- Open it in the Material Function editor.
- Add a Constant node.
- Connect the Constant node to the Function Output.
Expected Result
The preview material compiles and the editor stays responsive.
Observed Result
The editor freezes indefinitely, and CPU usage of UnrealEditor stays near 0%. The editor never recovers and has to be killed from Task Manager.
Affects Versions
5.7
Platform(s)
Windows
Upload an image
For crash reports, include your callstack
FWindowsPlatformProcess::SleepNoStats
FWindowsPlatformProcess::Sleep(float)
FShaderCompilingManager::BlockOnShaderMapCompletion
FShaderCompilingManager::HandlePotentialRetryOnError
FShaderCompilingManager::ProcessAsyncResults
FAssetCompilingManager::ProcessAsyncTasks
FEngineLoop::Tick()
EngineTick()
GuardedMain
LaunchWindowsStartup
WinMain
Additional Notes
- No freeze when Substrate is disabled (tested on the same project and machine).
- Regular Materials compile fine with Substrate enabled. Only Material Function previews hang.
- The same freeze happens when opening an existing Material Function whose output is already connected.
- No error is printed in the output log or in the debugger output before or during the freeze. The last log lines are only the Material Function editor opening.
- Shader compilation works normally otherwise: shaders compile fine at editor startup.
Platform: Windows, DX12, SM6
Hardware: NVIDIA RTX 3080, 32 GB RAM
