# UE5.4 NavmeshRecast crash on package build

**URL:** <https://forums.unrealengine.com/t/ue5-4-navmeshrecast-crash-on-package-build/2622598>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** Navigation, memory-usage, unreal-engine, memory, navmesh\
**Created:** [July 29, 2025, 3:11pm UTC](https://forums.unrealengine.com/t/ue5-4-navmeshrecast-crash-on-package-build/2622598 "2025-07-29T15:11:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![me\_HiDE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@me\_HiDE](https://forums.unrealengine.com/u/me_HiDE)\
**Post date:** [July 29, 2025, 3:11pm UTC](https://forums.unrealengine.com/t/ue5-4-navmeshrecast-crash-on-package-build/2622598/1 "2025-07-29T15:11:01Z")

</div>

Hi!

I stumble upon a memory problem regarding the NavmeshRecast.

Somehow, whenever I load a level, there will be a memory allocation of ~4GBs for NavmeshRecast (got this from LLM). It only occurs on the first 3-5mins after loading the level (it just gone after that).  
However, this leads to a problem on the mid-end device because whenever the game load to another level there will always be a spike of memory usage, which cause crash OutOfMemory.

Any suggestion where I should begin to optimize?

Thx
