# UE5.3 PackagingResults: Error: Unknown Cook Failure

**URL:** <https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [November 30, 2023, 8:11pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820 "2023-11-30T20:11:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SgtFlexxx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sgtflexxx/32/1194634_2.png) [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Post date:** [November 30, 2023, 8:11pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/1 "2023-11-30T20:11:41Z")

</div>

Hi all,

I migrated my project a few times before between versions (4.27 → 5.2 → 5.3) (I also moved it from my D drive to my C drive at one point during 5.3), and I no longer seem to be able to package the project due to a cook error. Is anyone able to decipher the error?

```auto
LogInit: Display: Warning/Error Summary (Unique only)
LogInit: Display: -----------------------------------
LogInit: Display: LogShaders: Error: Virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl" should be absolute from the virtual root directory "/".
LogInit: Display: LogShaders: Error: Backslashes are not permitted in virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl"
LogInit: Display: LogShaders: Error: Extension on virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl" is wrong. Only .usf or .ush allowed.

```

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [November 30, 2023, 9:47pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/2 "2023-11-30T21:47:27Z")

</div>

> [@SgtFlexxx](#):
>
> ```auto
> LogShaderCompilers: Warning: Failed to compile Material /Interchange/gltf/M_SpecularGlossiness.M_SpecularGlossiness (MI:/Interchange/gltf/MaterialInstances/MI_SpecularGlossiness_Blend.MI_SpecularGlossiness_Blend) for platform PCD3D_SM5, Default Material will be used in game.
> err0r X8000: Validation Error: source component 0 in temp r2 not initialized. Opcode #54 (count is 1-based)
> 
> LogMaterial: Warning: Cooking a material resource (in M_SpecularGlossiness hierarchy) that doesn't have a valid ShaderMap! Shadermap pointer is null.
> LogCook: Display: Cooked packages 4356 Packages Remain 2 Total 4358
> LogCook: Display: Cooked packages 4357 Packages Remain 1 Total 4358
> 
> ```

hi @SgtFlexxx  
Shader failure  
(MI:/Interchange/gltf/MaterialInstances/MI\_SpecularGlossiness\_Blend.MI\_SpecularGlossiness\_Blend)  
its a broken material  
MI\_SpecularGlossiness\_Blend is corrupt and cannot be built

---

<div class="post-metadata">

**Author:** ![SgtFlexxx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sgtflexxx/32/1194634_2.png) [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Post date:** [November 30, 2023, 10:08pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/3 "2023-11-30T22:08:49Z")

</div>

I think those warnings are worth noting, but I don’t think what’s stopping my project from cooking, as it just sounds like it’ll use the default material in that material’s place. I think the actual errors that are stopping the cook are further down in the log (but I don’t know what they mean or how to fix them)

```auto
LogInit: Display: Warning/Error Summary (Unique only)
LogInit: Display: -----------------------------------
LogInit: Display: LogShaders: Error: Virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl" should be absolute from the virtual root directory "/".
LogInit: Display: LogShaders: Error: Backslashes are not permitted in virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl"
LogInit: Display: LogShaders: Error: Extension on virtual shader source file name "C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl" is wrong. Only .usf or .ush allowed.

```

Why all the interchange materials are broken is beyond me, but perhaps its linked to those 3 errors.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [December 1, 2023, 4:16pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/4 "2023-12-01T16:16:03Z")

</div>

> [@SgtFlexxx](#):
>
> `C:\Engine\Private\BasePassPixelShader.usf.intermediate.hlsl" is wrong. Only .usf or .ush allowed.`

The conversion from DirectX shader .hlsl to unreal virtual shader source file .usf  
should be Possibly rename to

C:\Engine\Private\BasePassPixelShader.usf

---

<div class="post-metadata">

**Author:** ![SgtFlexxx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sgtflexxx/32/1194634_2.png) [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Post date:** [December 3, 2023, 6:02am UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/5 "2023-12-03T06:02:32Z")

</div>

The file name is correct, but the file path is not. Im not sure why it’s setup this way and how to fix it. I already reinstalled 5.3

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/d/c6d554b6f4146bf854269d75bbafc2dcb832eb91.png)

---

<div class="post-metadata">

**Author:** ![MarGon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/margon/32/551044_2.png) [@MarGon](https://forums.unrealengine.com/u/MarGon)\
**Post date:** [December 9, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/6 "2023-12-09T15:50:07Z")

</div>

I just transitioned from Unreal Engine 5.1 to 5.3 and encountered the exact same issue. After spending too many hours troubleshooting, I pinpointed the problem to having Shader Model 5 enabled while also using virtual textures. Apparently, virtual textures require Shader Model 6, and not disabling Shader Model 5 leads to these nerve-wracking and time-consuming packaging errors. To resolve this, you need to uncheck all SM5 in the project settings (Project Settings → Platforms → Windows). I hope this solves it for you too.

---

<div class="post-metadata">

**Author:** ![SgtFlexxx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sgtflexxx/32/1194634_2.png) [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Post date:** [December 12, 2023, 4:12pm UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/7 "2023-12-12T16:12:52Z")

</div>

Wow, I had spent a lot of time trying to figure out this error. I had ended up disabling substrate which similarly resolved my issue, but I think I prefer just disabling SM5 (as converting shaders back from substrate is a lot of pain).

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 3, 2024, 11:50am UTC](https://forums.unrealengine.com/t/ue5-3-packagingresults-error-unknown-cook-failure/1439820/9 "2024-02-03T11:50:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
