Virtual shader source file name should be absolute in Unreal Engine

The shader compiler was asked to compile a shader file with an invalid virtual path. In the reported case this came from compiling shaders for Shader Model 5 while Virtual Textures or Substrate were enabled, a combination SM5 does not support.

  • Blocking: the package fails
  • Cook stage: ExitCode=25
  • From user reports, not yet reproduced in our lab

Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.

Common causes

  • Shader Model 5 (SM5) is enabled for Windows together with Virtual Textures or Substrate.
  • A plugin ships shaders with a wrong virtual shader path mapping.

How to fix it

  1. Open Project Settings > Platforms > Windows and look at Targeted RHIs.
  2. Uncheck the DirectX 11 / SM5 shader format if your project relies on Virtual Textures or Substrate.
  3. Alternatively disable Substrate (Project Settings > Rendering) if you need SM5.
  4. If the path in the error points to a plugin, update or disable that plugin.
  5. Restart the editor (shaders will recompile) and cook again.

Questions

Can it be caught before cooking?

Yes, it can be checked before you start a cook: Detect SM5 enabled together with Virtual Textures or Substrate in the project settings.

Reports and sources

Decode your log

Paste your packaging log, or drop Log.txt with Cook-*.txt / UBA-*.txt. The analysis runs in your browser: the log is never uploaded.

Get notified when the in-editor plugin launches

The same decoder inside the Unreal Editor, with checks that catch these errors before you cook.