# Anyone know how to fix an SM5 error when compiling in UE 4.27.2?

**URL:** <https://forums.unrealengine.com/t/anyone-know-how-to-fix-an-sm5-error-when-compiling-in-ue-4-27-2/2703346>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [March 3, 2026, 6:46am UTC](https://forums.unrealengine.com/t/anyone-know-how-to-fix-an-sm5-error-when-compiling-in-ue-4-27-2/2703346 "2026-03-03T06:46:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrooperManiac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrooperManiac](https://forums.unrealengine.com/u/TrooperManiac)\
**Post date:** [March 3, 2026, 6:46am UTC](https://forums.unrealengine.com/t/anyone-know-how-to-fix-an-sm5-error-when-compiling-in-ue-4-27-2/2703346/1 "2026-03-03T06:46:17Z")

</div>

Heres my log IDK why but I cant get the materials to cook.

UATHelper: Cooking (Windows (64-bit)): LogMaterial: Display: Missing cached shadermap for leopard-2a4-hull\_11 in PCD3D\_SM5, Default, SM5 (DDC key hash: E913AD87DD2C94CEA0A8AC13AE042E5927BDD33B), compiling.  
UATHelper: Cooking (Windows (64-bit)): LogMaterial: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM\_CommunityEditor\Content\ConZ\_MOD\NewFolder\leopard-2a4-hull\_11.uasset: Failed to compile Material for platform PCD3D\_SM5, Default Material will be used in game.  
PackagingResults: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM\_CommunityEditor\Content\ConZ\_MOD\NewFolder\leopard-2a4-hull\_11.uasset: Failed to compile Material for platform PCD3D\_SM5, Default Material will be used in game.  
UATHelper: Cooking (Windows (64-bit)): LogMaterial: Warning: Cooking a material resource (in leopard-2a4-hull\_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.  
PackagingResults: Warning: Cooking a material resource (in leopard-2a4-hull\_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.  
UATHelper: Cooking (Windows (64-bit)): LogInit: Display: LogMaterial: Warning: [AssetLog] C:\Users\Troop\OneDrive\Documents\Unreal Projects\SCUM\_CommunityEditor\Content\ConZ\_MOD\NewFolder\leopard-2a4-hull\_11.uasset: Failed to compile Material for platform PCD3D\_SM5, Default Material will be used in game.  
UATHelper: Cooking (Windows (64-bit)): LogInit: Display: LogMaterial: Warning: Cooking a material resource (in leopard-2a4-hull\_11 hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [March 3, 2026, 9:48am UTC](https://forums.unrealengine.com/t/anyone-know-how-to-fix-an-sm5-error-when-compiling-in-ue-4-27-2/2703346/2 "2026-03-03T09:48:40Z")

</div>

Hey there @TrooperManiac!

From what I can tell, primarily one material is causing issues, which is the `leopard-2a4-hull_11` material. The first thing I would recommend to do is back up your project somewhere safe. Next is to open the material in engine, and verify there are no errors in the material console on compilation and saving. If there are some, reply with them here and I can help you with fixing them.

If there are none, it’s possible that this is a data sync or caching issue. I noticed the project is in a subfolder of Onedrive, I would recommend disabling Onedrive’s sync on project folders as lots of Unreal Engine files are binary and can be corrupted easily with the sporadic syncing of Onedrive.

After any fix, I would also recommend deleting the `Intermediate`, `Saved`, and `DerivedDataCache` folders from the project directory. These will be regenerated upon next project launch.

Let me know how it goes!
